Class DeviceResponse
java.lang.Object
org.openremote.agent.protocol.tradfri.payload.DeviceResponse
The class that contains the payload for a response of an IKEA TRÅDFRI device
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the creation date of the deviceGet the information of the deviceGet the instance id of the deviceGet the properties of the light (if the device is a light)getName()
Get the name of the deviceGet the properties of the plug (if the device is a plug)void
setCreationDate
(Long creationDate) Set the creation date of the devicevoid
setDeviceInfo
(DeviceInfo deviceInfo) Set the information of the devicevoid
setInstanceId
(Integer instanceId) Set the instance id of the devicevoid
setLightProperties
(LightProperties[] lightProperties) Set the properties of the light (if the device is a light)void
Set the name of the devicevoid
setPlugProperties
(PlugProperties[] plugProperties) Set the properties of the plug (if the device is a plug)
-
Constructor Details
-
DeviceResponse
public DeviceResponse()Construct the DeviceResponse class
-
-
Method Details
-
getName
Get the name of the device- Returns:
- The name of the device
-
getCreationDate
Get the creation date of the device- Returns:
- The creation date of the device
-
getInstanceId
Get the instance id of the device- Returns:
- The instance id of the device
-
getDeviceInfo
Get the information of the device- Returns:
- The instance id of the device
-
getLightProperties
Get the properties of the light (if the device is a light)- Returns:
- The properties of the light
-
getPlugProperties
Get the properties of the plug (if the device is a plug)- Returns:
- The properties of the plug
-
setName
Set the name of the device- Parameters:
name
- The name of the device
-
setCreationDate
Set the creation date of the device- Parameters:
creationDate
- The creation date of the device
-
setInstanceId
Set the instance id of the device- Parameters:
instanceId
- The instance id of the device
-
setDeviceInfo
Set the information of the device- Parameters:
deviceInfo
- The information of the device
-
setLightProperties
Set the properties of the light (if the device is a light)- Parameters:
lightProperties
- The new properties of the light
-
setPlugProperties
Set the properties of the plug (if the device is a plug)- Parameters:
plugProperties
- The new properties of the plug
-