Package org.openhab.core.thing.firmware
Class FirmwareStatusInfoEvent
java.lang.Object
org.openhab.core.events.AbstractEvent
org.openhab.core.thing.firmware.FirmwareStatusInfoEvent
- All Implemented Interfaces:
Event
The
FirmwareStatusInfoEvent
is sent if the FirmwareStatusInfo
of a Thing
has been changed.
It is created by the FirmwareEventFactory
.- Author:
- Thomas Höfer - Initial contribution, Dimitar Ivanov - Removed thing UID from the event
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
FirmwareStatusInfoEvent
(String topic, String payload, FirmwareStatusInfo firmwareStatusInfo) Creates a newFirmwareStatusInfoEvent
. -
Method Summary
Methods inherited from class org.openhab.core.events.AbstractEvent
getPayload, getSource, getTopic
-
Field Details
-
TYPE
Constant for the firmware status info event type.
-
-
Constructor Details
-
FirmwareStatusInfoEvent
protected FirmwareStatusInfoEvent(String topic, String payload, FirmwareStatusInfo firmwareStatusInfo) Creates a newFirmwareStatusInfoEvent
.- Parameters:
topic
- the topic of the eventpayload
- the payload of the eventfirmwareStatusInfo
- the firmware status info to be sent with the event
-
-
Method Details
-
getFirmwareStatusInfo
Returns the firmware status info.- Returns:
- the firmware status info
-
getType
Description copied from interface:Event
Gets the event type.- Returns:
- the event type
-
hashCode
public int hashCode()- Overrides:
hashCode
in classAbstractEvent
-
equals
- Overrides:
equals
in classAbstractEvent
-
toString
-