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
FieldsModifier and TypeFieldDescriptionstatic final StringConstant for the firmware status info event type.Fields inherited from class org.openhab.core.events.AbstractEvent
ACTOR_SEPARATOR, DELEGATION_SEPARATOR -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedFirmwareStatusInfoEvent(String topic, String payload, FirmwareStatusInfo firmwareStatusInfo) Creates a newFirmwareStatusInfoEvent. -
Method Summary
Methods inherited from class org.openhab.core.events.AbstractEvent
buildDelegatedSource, buildDelegatedSource, buildSource, 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:EventGets the event type.- Returns:
- the event type
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractEvent
-
equals
- Overrides:
equalsin classAbstractEvent
-
toString
-