Class ConversationMessageAddedEvent
java.lang.Object
org.openhab.core.events.AbstractEvent
org.openhab.core.voice.text.conversation.events.ConversationEvent
org.openhab.core.voice.text.conversation.events.ConversationMessageAddedEvent
- All Implemented Interfaces:
Event
The
ConversationMessageAddedEvent defines a Event implementation that emits
on addition of a message to a conversation.- Author:
- Miguel Álvarez Díez - Initial contribution
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classNested classes/interfaces inherited from class org.openhab.core.voice.text.conversation.events.ConversationEvent
ConversationEvent.ConversationDTO -
Field Summary
FieldsFields inherited from class org.openhab.core.events.AbstractEvent
ACTOR_SEPARATOR, DELEGATION_ESCAPE, DELEGATION_SEPARATOR -
Constructor Summary
ConstructorsConstructorDescriptionConversationMessageAddedEvent(String topic, String payload, @Nullable String source, String conversationId, int messageId, ConversationRole role, String text) -
Method Summary
Methods inherited from class org.openhab.core.voice.text.conversation.events.ConversationEvent
getConversationIdMethods inherited from class org.openhab.core.events.AbstractEvent
buildDelegatedSource, buildDelegatedSource, buildSource, equals, getPayload, getSource, getTopic, hashCode
-
Field Details
-
TYPE
The conversation message added event type.
-
-
Constructor Details
-
ConversationMessageAddedEvent
-
-
Method Details
-
getType
Description copied from interface:EventGets the event type.- Specified by:
getTypein interfaceEvent- Specified by:
getTypein classConversationEvent- Returns:
- the event type
-
getMessageId
public int getMessageId() -
getRole
-
getText
-