Interface MessageInboundEventMessage
public interface MessageInboundEventMessage
MessageInboundEventMessage
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Dedicated Builderstatic class
The direction of the message, it's always TO_APP for contact messages. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Getting builderTimestamp marking when the channel callback was received by the Conversation API.Get channelIdentityThe ID of the contact.Get contactMessageThe ID of the conversation this message is part of.The direction of the message, it's always TO_APP for contact messages.getId()
The message ID.Flag for whether this message was injected.Usually, metadata specific to the underlying channel is provided in this field.Get processingModeThe sender ID to which the contact sent the message, if applicable.
-
Method Details
-
getId
String getId()The message ID.- Returns:
- id
-
getDirection
MessageInboundEventMessage.DirectionEnum getDirection()The direction of the message, it's always TO_APP for contact messages.- Returns:
- direction
-
getContactMessage
ContactMessage getContactMessage()Get contactMessage- Returns:
- contactMessage
-
getChannelIdentity
ChannelIdentity getChannelIdentity()Get channelIdentity- Returns:
- channelIdentity
-
getConversationId
String getConversationId()The ID of the conversation this message is part of. Will be empty if processing_mode is DISPATCH.- Returns:
- conversationId
-
getContactId
String getContactId()The ID of the contact. Will be empty if processing_mode is DISPATCH.- Returns:
- contactId
-
getMetadata
String getMetadata()Usually, metadata specific to the underlying channel is provided in this field. Refer to the individual channels' documentation for more information (for example, SMS delivery receipts). Note that, for Choice message responses, this field is populated with the value of the message_metadata field of the corresponding Send message request.- Returns:
- metadata
-
getAcceptTime
Instant getAcceptTime()Timestamp marking when the channel callback was received by the Conversation API.- Returns:
- acceptTime
-
getSenderId
String getSenderId()The sender ID to which the contact sent the message, if applicable. For example, originator msisdn/short code for SMS and MMS.- Returns:
- senderId
-
getProcessingMode
ProcessingMode getProcessingMode()Get processingMode- Returns:
- processingMode
-
getInjected
Boolean getInjected()Flag for whether this message was injected.- Returns:
- injected
-
builder
Getting builder- Returns:
- New Builder instance
-