Class LightChangeBrightnessEvent


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

    • LightChangeBrightnessEvent

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

    • getOldBrightness

      public int getOldBrightness()
      Get the old brightness of the light (from before the event occurred)
      Returns:
      The old brightness of the light
    • getNewBrightness

      public int getNewBrightness()
      Get the new brightness of the light (from after the event occurred)
      Returns:
      The new brightness of the light