Package com.vonage.client.conversations
Class Conversation
java.lang.Object
com.vonage.client.JsonableBaseObject
com.vonage.client.conversations.BaseConversation
com.vonage.client.conversations.Conversation
- All Implemented Interfaces:
Jsonable
- Direct Known Subclasses:
UserConversation
Represents a Conversation (request and response).
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for creating or updating a Conversation. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Conversation.Builderbuilder()Entry point for constructing an instance of this class.Specifies callback parameters for webhooks.Collection<? extends Channel> Channels containing the contact numbers for this conversation.Properties for this conversation.The last Event ID in this conversation.getState()The state the conversation is in.Methods inherited from class com.vonage.client.conversations.BaseConversation
getDisplayName, getId, getImageUrl, getName, getTimestampMethods inherited from class com.vonage.client.JsonableBaseObject
createJsonObjectMapper, equals, hashCode, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.vonage.client.Jsonable
toJson, updateFromJson
-
Constructor Details
-
Conversation
protected Conversation()
-
-
Method Details
-
getState
The state the conversation is in.- Returns:
- The conversation state as an enum, or
nullif 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
nullif unknown.
-
getProperties
Properties for this conversation.- Returns:
- The conversation properties object, or
nullif not applicable.
-
getNumbers
Channels containing the contact numbers for this conversation. Currently, onlyPstn(Phone) type is supported.- Returns:
- The channels associated with this conversation, or
nullif unspecified.
-
getCallback
Specifies callback parameters for webhooks.- Returns:
- The callback properties, or
nullif unspecified.
-
builder
Entry point for constructing an instance of this class.- Returns:
- A new Builder.
-