Class AddonEvent

java.lang.Object
org.openhab.core.events.AbstractEvent
org.openhab.core.addon.AddonEvent
All Implemented Interfaces:
Event

@NonNullByDefault public class AddonEvent extends AbstractEvent
This is an Event that is sent on add-on operations, such as installing and uninstalling.
Author:
Kai Kreuzer - Initial contribution
  • Field Details

    • TYPE

      public static final String TYPE
      The add-on event type.
  • Constructor Details

    • AddonEvent

      public AddonEvent(String topic, String payload, String id, @Nullable String msg)
      Constructs a new add-on event object.
      Parameters:
      topic - the topic
      payload - the payload
      id - the id of the add-on
      msg - the message text
    • AddonEvent

      public AddonEvent(String topic, String payload, String id)
      Constructs a new add-on event object.
      Parameters:
      topic - the topic
      payload - the payload
      id - the id of the add-on
  • Method Details

    • getType

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

      public String toString()
      Overrides:
      toString in class Object