Class LightChangeEvent

Direct Known Subclasses:
LightChangeBrightnessEvent, LightChangeColourEvent, LightChangeColourTemperatureEvent, LightChangeOnEvent

public class LightChangeEvent extends LightEvent
The class that represents a light changed event that occurred to an IKEA TRÃ…DFRI light
  • Constructor Details

    • LightChangeEvent

      public LightChangeEvent(Light light, LightProperties oldProperties, LightProperties newProperties)
      Construct the LightChangeEvent class
      Parameters:
      light - The light for which the event occurred
      oldProperties - The old properties of the light (from before the event occurred)
      newProperties - The new properties of the light (from after the event occurred)
  • Method Details

    • getOldProperties

      public LightProperties getOldProperties()
      Get the old properties of the light (from before the event occurred)
      Returns:
      The old properties of the light
    • getNewProperties

      public LightProperties getNewProperties()
      Get the new properties of the light (from after the event occurred)
      Returns:
      The new properties of the light