Package org.openhab.core.thing.firmware
Class FirmwareUpdateProgressInfoEvent
java.lang.Object
org.openhab.core.events.AbstractEvent
org.openhab.core.thing.firmware.FirmwareUpdateProgressInfoEvent
- All Implemented Interfaces:
Event
The
FirmwareUpdateProgressInfoEvent is sent if there is a new progress step for a firmware update. It is
created by the FirmwareEventFactory.- Author:
- Thomas Höfer - Initial contribution, Dimitar Ivanov - Removed thing UID from the event
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedFirmwareUpdateProgressInfoEvent(String topic, String payload, FirmwareUpdateProgressInfo progressInfo) Creates a newFirmwareUpdateProgressInfoEvent. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns theFirmwareUpdateProgressInfo.getType()Gets the event type.inthashCode()toString()Methods inherited from class org.openhab.core.events.AbstractEvent
getPayload, getSource, getTopic
-
Field Details
-
TYPE
Constant for the firmware update progress info event type.
-
-
Constructor Details
-
FirmwareUpdateProgressInfoEvent
protected FirmwareUpdateProgressInfoEvent(String topic, String payload, FirmwareUpdateProgressInfo progressInfo) Creates a newFirmwareUpdateProgressInfoEvent.- Parameters:
topic- the topic of the eventpayload- the payload of the eventprogressInfo- the progress info to be sent with the event
-
-
Method Details
-
getProgressInfo
Returns theFirmwareUpdateProgressInfo.- Returns:
- the firmware update progress 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
-