Class InvalidStateTransitionResponse
java.lang.Object
com.clover.remote.client.messages.BaseResponse
com.clover.remote.client.messages.InvalidStateTransitionResponse
Response object for a retrieve device status request
-
Constructor Summary
ConstructorsConstructorDescriptionInvalidStateTransitionResponse(boolean result, ResultCode code, String reason, String requestedTransition, com.clover.remote.ExternalDeviceState state, com.clover.remote.ExternalDeviceStateData data) Constructor -
Method Summary
Methods inherited from class com.clover.remote.client.messages.BaseResponse
getMessage, getReason, getResult, isSuccess, setMessage, setReason, setResult, setSuccess
-
Constructor Details
-
InvalidStateTransitionResponse
public InvalidStateTransitionResponse(boolean result, ResultCode code, String reason, String requestedTransition, com.clover.remote.ExternalDeviceState state, com.clover.remote.ExternalDeviceStateData data) Constructor- Parameters:
result- If true then the requested operation succeededcode- The result of the requested operationstate- The state of the devicedata- Additional optional relevant information for the state
-
-
Method Details
-
getRequestedTransition
Get the field value- Returns:
- the state of the device
-
getState
public com.clover.remote.ExternalDeviceState getState()Get the field value- Returns:
- the state of the device
-
getData
public com.clover.remote.ExternalDeviceStateData getData()Get the field value- Returns:
- optionally contains relevant information for the state
-