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

@NonNullByDefault public abstract class ConversationEvent extends AbstractEvent
Abstract implementation of a conversation event which will be posted for conversation changes.
Author:
Miguel Álvarez Díez - Initial contribution
  • 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 topic
      payload - the payload
      source - the source
      conversationId - the unique ID of the conversation
  • Method Details

    • getType

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

      public String getConversationId()