Class ConversationEvent
java.lang.Object
org.openhab.core.events.AbstractEvent
org.openhab.core.voice.text.conversation.events.ConversationEvent
- All Implemented Interfaces:
Event
- Direct Known Subclasses:
ConversationCreatedEvent,ConversationMessageAddedEvent,ConversationMessagesRemovedEvent,ConversationRemovedEvent
Abstract implementation of a conversation event which will be posted for conversation changes.
- Author:
- Miguel Álvarez Díez - Initial contribution
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class org.openhab.core.events.AbstractEvent
ACTOR_SEPARATOR, DELEGATION_ESCAPE, DELEGATION_SEPARATOR -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConversationEvent(String topic, String payload, @Nullable String source, String conversationId) Must be called in subclass constructor to create a new event. -
Method Summary
Methods inherited from class org.openhab.core.events.AbstractEvent
buildDelegatedSource, buildDelegatedSource, buildSource, equals, getPayload, getSource, getTopic, hashCode
-
Constructor Details
-
ConversationEvent
protected ConversationEvent(String topic, String payload, @Nullable String source, String conversationId) Must be called in subclass constructor to create a new event.- Parameters:
topic- the topicpayload- the payloadsource- the sourceconversationId- the unique ID of the conversation
-
-
Method Details
-
getType
Description copied from interface:EventGets the event type.- Returns:
- the event type
-
getConversationId
-