Class LightChangeOnEvent


public class LightChangeOnEvent extends LightChangeEvent
The class that represents a light on / off state changed event that occurred to an IKEA TRÃ…DFRI light
  • Constructor Details

    • LightChangeOnEvent

      public LightChangeOnEvent(Light light, LightProperties oldProperties, LightProperties newProperties)
      Construct the LightChangeOnEvent 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

    • getOldOn

      public boolean getOldOn()
      Get the old on / off state of the light (from before the event occurred)
      Returns:
      The old on / off state of the light (true for on, false for off)
    • getNewOn

      public boolean getNewOn()
      Get the new on / off state of the light (from after the event occurred)
      Returns:
      The new on / off state of the light (true for on, false for off)