Interface InjectMessageRequestBase
- All Known Subinterfaces:
InjectMessageRequest
public interface InjectMessageRequestBase
A message on a particular channel.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceDedicated Builder -
Method Summary
Modifier and TypeMethodDescriptionThe processed time of the message in UTC timezone.Get channelIdentityThe ID of the contact registered in the conversation provided.The ID of the conversation.Get directionOptional.Get processingModeFor Contact Messages (MO messages), the sender ID represents the recipient to which the message was sent.
-
Method Details
-
getAcceptTime
Instant getAcceptTime()The processed time of the message in UTC timezone. Must be less than current_time and greater than (current_time - 30 days)Field is required
- Returns:
- acceptTime
-
getChannelIdentity
ChannelIdentity getChannelIdentity()Get channelIdentityField is required
- Returns:
- channelIdentity
-
getContactId
String getContactId()The ID of the contact registered in the conversation provided.Field is required
- Returns:
- contactId
-
getDirection
ConversationDirection getDirection()Get directionField is required
- Returns:
- direction
-
getConversationId
String getConversationId()The ID of the conversation.- Returns:
- conversationId
-
getSenderId
String getSenderId()For Contact Messages (MO messages), the sender ID represents the recipient to which the message was sent. This may be a phone number (in the case of SMS and MMS) or a unique ID (in the case of WhatsApp). This is field is not supported on all channels, nor is it supported for MT messages.- Returns:
- senderId
-
getProcessingMode
ProcessingMode getProcessingMode()Get processingMode- Returns:
- processingMode
-
getMetadata
String getMetadata()Optional. Metadata associated with the contact. Up to 1024 characters long.- Returns:
- metadata
-