Class AbstractInboxEvent

java.lang.Object
org.openhab.core.events.AbstractEvent
org.openhab.core.config.discovery.inbox.events.AbstractInboxEvent
All Implemented Interfaces:
Event
Direct Known Subclasses:
InboxAddedEvent, InboxRemovedEvent, InboxUpdatedEvent

@NonNullByDefault public abstract class AbstractInboxEvent extends AbstractEvent
Abstract implementation of an inbox event which will be posted by the Inbox for added, removed and updated discovery results.
Author:
Stefan Bußweiler - Initial contribution
  • Constructor Details

    • AbstractInboxEvent

      protected AbstractInboxEvent(String topic, String payload, DiscoveryResultDTO discoveryResult)
      Must be called in subclass constructor to create an inbox event.
      Parameters:
      topic - the topic
      payload - the payload
      discoveryResult - the discovery-result data transfer object
  • Method Details

    • getDiscoveryResult

      public DiscoveryResultDTO getDiscoveryResult()
      Gets the discovery result as data transfer object.
      Returns:
      the discoveryResult