Class DeviceResponse

java.lang.Object
org.openremote.agent.protocol.tradfri.payload.DeviceResponse

public class DeviceResponse extends Object
The class that contains the payload for a response of an IKEA TRÅDFRI device
  • Constructor Details

    • DeviceResponse

      public DeviceResponse()
      Construct the DeviceResponse class
  • Method Details

    • getName

      public String getName()
      Get the name of the device
      Returns:
      The name of the device
    • getCreationDate

      public Long getCreationDate()
      Get the creation date of the device
      Returns:
      The creation date of the device
    • getInstanceId

      public Integer getInstanceId()
      Get the instance id of the device
      Returns:
      The instance id of the device
    • getDeviceInfo

      public DeviceInfo getDeviceInfo()
      Get the information of the device
      Returns:
      The instance id of the device
    • getLightProperties

      public LightProperties[] getLightProperties()
      Get the properties of the light (if the device is a light)
      Returns:
      The properties of the light
    • getPlugProperties

      public PlugProperties[] getPlugProperties()
      Get the properties of the plug (if the device is a plug)
      Returns:
      The properties of the plug
    • setName

      public void setName(String name)
      Set the name of the device
      Parameters:
      name - The name of the device
    • setCreationDate

      public void setCreationDate(Long creationDate)
      Set the creation date of the device
      Parameters:
      creationDate - The creation date of the device
    • setInstanceId

      public void setInstanceId(Integer instanceId)
      Set the instance id of the device
      Parameters:
      instanceId - The instance id of the device
    • setDeviceInfo

      public void setDeviceInfo(DeviceInfo deviceInfo)
      Set the information of the device
      Parameters:
      deviceInfo - The information of the device
    • setLightProperties

      public void setLightProperties(LightProperties[] lightProperties)
      Set the properties of the light (if the device is a light)
      Parameters:
      lightProperties - The new properties of the light
    • setPlugProperties

      public void setPlugProperties(PlugProperties[] plugProperties)
      Set the properties of the plug (if the device is a plug)
      Parameters:
      plugProperties - The new properties of the plug