Class Conversation

All Implemented Interfaces:
Jsonable
Direct Known Subclasses:
UserConversation

public class Conversation extends BaseConversation
Represents a Conversation (request and response).
  • Constructor Details

  • Method Details

    • getState

      The state the conversation is in.
      Returns:
      The conversation state as an enum, or null if unknown.
    • getSequenceNumber

      The last Event ID in this conversation. This ID can be used to retrieve a specific event.
      Returns:
      The last event ID as an integer, or null if unknown.
    • getProperties

      Properties for this conversation.
      Returns:
      The conversation properties object, or null if not applicable.
    • getNumbers

      public Collection<? extends Channel> getNumbers()
      Channels containing the contact numbers for this conversation. Currently, only Pstn (Phone) type is supported.
      Returns:
      The channels associated with this conversation, or null if unspecified.
    • getCallback

      Specifies callback parameters for webhooks.
      Returns:
      The callback properties, or null if unspecified.
    • builder

      public static Conversation.Builder builder()
      Entry point for constructing an instance of this class.
      Returns:
      A new Builder.