Direct Known Subclasses:
PlugChangeOnEvent

public class PlugChangeEvent extends PlugEvent
The class that represents a change event that occurred to an IKEA TRÅDFRI plug
  • Constructor Details

    • PlugChangeEvent

      public PlugChangeEvent(Plug plug, PlugProperties oldProperties, PlugProperties newProperties)
      Construct the PlugChangeEvent 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

    • getOldProperties

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

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