Class PlugChangeEvent
java.lang.Object
org.openremote.agent.protocol.tradfri.device.event.DeviceEvent
org.openremote.agent.protocol.tradfri.device.event.PlugEvent
org.openremote.agent.protocol.tradfri.device.event.PlugChangeEvent
- Direct Known Subclasses:
PlugChangeOnEvent
The class that represents a change event that occurred to an IKEA TRÅDFRI plug
-
Constructor Summary
ConstructorsConstructorDescriptionPlugChangeEvent
(Plug plug, PlugProperties oldProperties, PlugProperties newProperties) Construct the PlugChangeEvent class -
Method Summary
Modifier and TypeMethodDescriptionGet the new properties of the plug (from after the event occurred)Get the old properties of the plug (from before the event occurred)Methods inherited from class org.openremote.agent.protocol.tradfri.device.event.DeviceEvent
getDevice
-
Constructor Details
-
PlugChangeEvent
Construct the PlugChangeEvent class- Parameters:
plug
- The plug for which the event occurredoldProperties
- 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
Get the old properties of the plug (from before the event occurred)- Returns:
- The old properties of the plug
-
getNewProperties
Get the new properties of the plug (from after the event occurred)- Returns:
- The new properties of the plug
-