Class LightChangeColourTemperatureEvent


public class LightChangeColourTemperatureEvent extends LightChangeEvent
The class that represents a light colour temperature changed event that occurred to an IKEA TRÅDFRI light
  • Constructor Details

    • LightChangeColourTemperatureEvent

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

    • getOldColourTemperature

      public int getOldColourTemperature()
      Get the old colour temperature of the light (from before the event occurred)
      Returns:
      The old colour temperature of the light
    • getNewColourTemperature

      public int getNewColourTemperature()
      Get the new colour temperature of the light (from after the event occurred)
      Returns:
      The new colour temperature of the light