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
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 Summary
ConstructorDescriptionAbstractInboxEvent
(String topic, String payload, DiscoveryResultDTO discoveryResult) Must be called in subclass constructor to create an inbox event. -
Method Summary
Modifier and TypeMethodDescriptionGets the discovery result as data transfer object.Methods inherited from class org.openhab.core.events.AbstractEvent
equals, getPayload, getSource, getTopic, hashCode
-
Constructor Details
-
AbstractInboxEvent
Must be called in subclass constructor to create an inbox event.- Parameters:
topic
- the topicpayload
- the payloaddiscoveryResult
- the discovery-result data transfer object
-
-
Method Details
-
getDiscoveryResult
Gets the discovery result as data transfer object.- Returns:
- the discoveryResult
-