Class FirmwareStatusInfoEvent

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

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

    • TYPE

      public static final String TYPE
      Constant for the firmware status info event type.
  • Constructor Details

    • FirmwareStatusInfoEvent

      protected FirmwareStatusInfoEvent(String topic, String payload, FirmwareStatusInfo firmwareStatusInfo)
      Parameters:
      topic - the topic of the event
      payload - the payload of the event
      firmwareStatusInfo - the firmware status info to be sent with the event
  • Method Details

    • getFirmwareStatusInfo

      public FirmwareStatusInfo getFirmwareStatusInfo()
      Returns the firmware status info.
      Returns:
      the firmware status info
    • getType

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

      public int hashCode()
      Overrides:
      hashCode in class AbstractEvent
    • equals

      public boolean equals(@Nullable Object obj)
      Overrides:
      equals in class AbstractEvent
    • toString

      public String toString()
      Overrides:
      toString in class Object