Package org.openhab.core.thing.events
Class ThingStatusInfoEvent
java.lang.Object
org.openhab.core.events.AbstractEvent
org.openhab.core.thing.events.ThingStatusInfoEvent
- All Implemented Interfaces:
Event
ThingStatusInfoEvents will be delivered through the openHAB event bus if the status of a thing has
been updated. Thing status info objects must be created with the ThingEventFactory.- Author:
- Stefan Bußweiler - Initial contribution
-
Field Summary
FieldsFields inherited from class org.openhab.core.events.AbstractEvent
ACTOR_SEPARATOR, DELEGATION_SEPARATOR -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedThingStatusInfoEvent(String topic, String payload, ThingUID thingUID, ThingStatusInfo thingStatusInfo) Creates a new thing status event object. -
Method Summary
Methods inherited from class org.openhab.core.events.AbstractEvent
buildDelegatedSource, buildDelegatedSource, buildSource, getPayload, getSource, getTopic
-
Field Details
-
TYPE
The thing status event type.
-
-
Constructor Details
-
ThingStatusInfoEvent
protected ThingStatusInfoEvent(String topic, String payload, ThingUID thingUID, ThingStatusInfo thingStatusInfo) Creates a new thing status event object.- Parameters:
topic- the topicpayload- the payloadthingUID- the thing UIDthingStatusInfo- the thing status info object
-
-
Method Details
-
getType
Description copied from interface:EventGets the event type.- Returns:
- the event type
-
getThingUID
Gets the thing UID.- Returns:
- the thing UID
-
getStatusInfo
Gets the thing status info.- Returns:
- the thing status info
-
toString
-
equals
- Overrides:
equalsin classAbstractEvent
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractEvent
-