Class ThingStatusInfoEvent

java.lang.Object
org.openhab.core.events.AbstractEvent
org.openhab.core.thing.events.ThingStatusInfoEvent
All Implemented Interfaces:
Event

@NonNullByDefault public class ThingStatusInfoEvent extends AbstractEvent
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 Details

    • TYPE

      public static final String 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 topic
      payload - the payload
      thingUID - the thing UID
      thingStatusInfo - the thing status info object
  • Method Details

    • getType

      public String getType()
      Description copied from interface: Event
      Gets the event type.
      Returns:
      the event type
    • getThingUID

      public ThingUID getThingUID()
      Gets the thing UID.
      Returns:
      the thing UID
    • getStatusInfo

      public ThingStatusInfo getStatusInfo()
      Gets the thing status info.
      Returns:
      the thing status info
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(@Nullable Object o)
      Overrides:
      equals in class AbstractEvent
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class AbstractEvent