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
-
Constructor Summary
ModifierConstructorDescriptionprotected
FirmwareUpdateProgressInfoEvent
(String topic, String payload, FirmwareUpdateProgressInfo progressInfo) Creates a newFirmwareUpdateProgressInfoEvent
. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns theFirmwareUpdateProgressInfo
.getType()
Gets the event type.int
hashCode()
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:Event
Gets the event type.- Returns:
- the event type
-
hashCode
public int hashCode()- Overrides:
hashCode
in classAbstractEvent
-
equals
- Overrides:
equals
in classAbstractEvent
-
toString
-