public class DeviceCommandResponseWithAsset extends DeviceEventWithAsset implements IDeviceCommandResponse
DeviceCommandResponse
so that information about the asset
associated with its assignment is available.asset, UNASSOCIATED_ASSET_NAME, wrapped
Constructor and Description |
---|
DeviceCommandResponseWithAsset(IDeviceCommandResponse wrapped,
IAssetModuleManager assets) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getOriginatingEventId()
Get id of
IDeviceCommandInvocation that triggered the response. |
java.lang.String |
getResponse()
Get response payload.
|
java.lang.String |
getResponseEventId()
Get id of event sent as a response.
|
addOrReplaceMetadata, clearMetadata, compareTo, getAssetId, getAssetModuleId, getAssetName, getAssignmentType, getDeviceAssignmentToken, getEventDate, getEventType, getId, getMetadata, getMetadata, getReceivedDate, getSiteToken, getWrapped, removeMetadata
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAssetId, getAssetModuleId, getAssignmentType, getDeviceAssignmentToken, getEventDate, getEventType, getId, getReceivedDate, getSiteToken
addOrReplaceMetadata, clearMetadata, getMetadata, getMetadata, removeMetadata
public DeviceCommandResponseWithAsset(IDeviceCommandResponse wrapped, IAssetModuleManager assets) throws SiteWhereException
SiteWhereException
public java.lang.String getOriginatingEventId()
IDeviceCommandResponse
IDeviceCommandInvocation
that triggered the response.getOriginatingEventId
in interface IDeviceCommandResponse
public java.lang.String getResponseEventId()
IDeviceCommandResponse
getResponseEventId
in interface IDeviceCommandResponse
public java.lang.String getResponse()
IDeviceCommandResponse
getResponse
in interface IDeviceCommandResponse