Class PlugChangeOnEvent


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

    • PlugChangeOnEvent

      public PlugChangeOnEvent(Plug plug, PlugProperties oldProperties, PlugProperties newProperties)
      Construct the PlugChangeOnEvent class
      Parameters:
      plug - The plug for which the event occurred
      oldProperties - The old properties of the plug (from before the event occurred)
      newProperties - The new properties of the plug (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)