ch.loway.oss.ari4java.generated.ari_1_3_0.actions.ActionDeviceStates_impl_ari_1_3_0 Maven / Gradle / Ivy
package ch.loway.oss.ari4java.generated.ari_1_3_0.actions;
// ----------------------------------------------------
// THIS CLASS WAS GENERATED AUTOMATICALLY
// PLEASE DO NOT EDIT
// Generated on: Sat Aug 14 16:51:37 SAST 2021
// ----------------------------------------------------
import java.util.Date;
import java.util.List;
import java.util.Map;
import java.util.ArrayList;
import java.net.URLEncoder;
import ch.loway.oss.ari4java.ARI;
import ch.loway.oss.ari4java.tools.*;
import ch.loway.oss.ari4java.generated.actions.*;
import ch.loway.oss.ari4java.generated.actions.requests.*;
import ch.loway.oss.ari4java.generated.models.Module;
import ch.loway.oss.ari4java.generated.models.*;
import ch.loway.oss.ari4java.generated.ari_1_3_0.actions.requests.*;
import ch.loway.oss.ari4java.generated.ari_1_3_0.models.*;
import com.fasterxml.jackson.core.type.TypeReference;
/** Generated by: Apis */
public class ActionDeviceStates_impl_ari_1_3_0 extends BaseAriAction implements ActionDeviceStates {
/** Device states List all ARI controlled device states. */
@Override
public DeviceStatesListGetRequest list() throws RestException {
DeviceStatesListGetRequest_impl_ari_1_3_0 request =
new DeviceStatesListGetRequest_impl_ari_1_3_0();
request.setHttpClient(this.getHttpClient());
request.setWsClient(this.getWsClient());
request.setLiveActionList(this.getLiveActionList());
request.setForcedResponse(this.getForcedResponse());
return request;
}
/** Device state Retrieve the current state of a device. */
@Override
public DeviceStatesGetRequest get(String deviceName) throws RestException {
DeviceStatesGetRequest_impl_ari_1_3_0 request =
new DeviceStatesGetRequest_impl_ari_1_3_0(deviceName);
request.setHttpClient(this.getHttpClient());
request.setWsClient(this.getWsClient());
request.setLiveActionList(this.getLiveActionList());
request.setForcedResponse(this.getForcedResponse());
return request;
}
/**
* Device state Change the state of a device controlled by ARI. (Note - implicitly creates the
* device state).
*/
@Override
public DeviceStatesUpdatePutRequest update(String deviceName, String deviceState)
throws RestException {
DeviceStatesUpdatePutRequest_impl_ari_1_3_0 request =
new DeviceStatesUpdatePutRequest_impl_ari_1_3_0(deviceName, deviceState);
request.setHttpClient(this.getHttpClient());
request.setWsClient(this.getWsClient());
request.setLiveActionList(this.getLiveActionList());
request.setForcedResponse(this.getForcedResponse());
return request;
}
/** Device state Destroy a device-state controlled by ARI. */
@Override
public DeviceStatesDeleteRequest delete(String deviceName) throws RestException {
DeviceStatesDeleteRequest_impl_ari_1_3_0 request =
new DeviceStatesDeleteRequest_impl_ari_1_3_0(deviceName);
request.setHttpClient(this.getHttpClient());
request.setWsClient(this.getWsClient());
request.setLiveActionList(this.getLiveActionList());
request.setForcedResponse(this.getForcedResponse());
return request;
}
/* No missing signatures from interface */
}