Interface ConversationMessage
public interface ConversationMessage
Message originating from a Conversation
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Dedicated Builder -
Method Summary
Modifier and TypeMethodDescriptionstatic ConversationMessage.Builder
builder()
Getting builderThe time Conversation API processed the message.getBody()
Get channelIdentityThe ID of the contact.The ID of the conversation.Get directiongetId()
The ID of the message.Flag for whether this message was injected.Optional.Get processingModeFor Contact Messages the sender ID is the contact sent the message to.
-
Method Details
-
getBody
ConversationMessageBody getBody() -
getAcceptTime
Instant getAcceptTime()The time Conversation API processed the message.- Returns:
- acceptTime
-
getChannelIdentity
ChannelIdentity getChannelIdentity()Get channelIdentity- Returns:
- channelIdentity
-
getContactId
String getContactId()The ID of the contact.- Returns:
- contactId
-
getConversationId
String getConversationId()The ID of the conversation.- Returns:
- conversationId
-
getDirection
ConversationDirection getDirection()Get direction- Returns:
- direction
-
getId
String getId()The ID of the message.- Returns:
- id
-
getMetadata
String getMetadata()Optional. Metadata associated with the contact. Up to 1024 characters long.- Returns:
- metadata
-
getInjected
Boolean getInjected()Flag for whether this message was injected.- Returns:
- injected
-
getSenderId
String getSenderId()For Contact Messages the sender ID is the contact sent the message to. For App Messages the sender that was used to send the message, if applicable.- Returns:
- senderId
-
getProcessingMode
ProcessingMode getProcessingMode()Get processingMode- Returns:
- processingMode
-
builder
Getting builder- Returns:
- New Builder instance
-