Interface InboundMessageBuilder
- All Known Implementing Classes:
InboundMessageBuilderImpl
public interface InboundMessageBuilder
Builder for sending inbound messages (messages from external adapters) to the engage platform.
- Author:
- Filip Hrisafov
-
Method Summary
Modifier and TypeMethodDescriptionbusinessAccountId
(String businessAccountId) The id of the business account that has received the message.The content of the messagecontentType
(String contentType) The type of the content for the message.dynamicProperties
(Map<String, Object> dynamicProperties) possible extra information about the message.externalId
(String externalId) The optional external id of the message in the external system.externalMediaId
(String externalMediaId) The id of the external media.externalMediaMimeType
(String externalMediaMimeType) The mime type of the external media.externalMediaName
(String externalMediaName) The name of the external media.externalSenderId
(String externalSenderId) The external id of the user that send the messageexternalSenderName
(String externalSenderName) externalSystemId
(String externalSystemId) The id of the system that the message originates from.interactiveOutcome
(String interactiveOutcome) An interactive event outcome value.messageSubType
(String messageSubType) messageType
(String messageType) replyToExternalId
(String replyToExternalId) The optional reply to external id of the message in the external system.void
send()
Perform the actual message send to the engage platformvoid
Perform sending the message as an unsupported type.
-
Method Details
-
externalSenderName
-
externalSenderId
The external id of the user that send the message- Parameters:
externalSenderId
- the external id of the sender
-
externalSystemId
The id of the system that the message originates from.- Parameters:
externalSystemId
- the system id- See Also:
-
businessAccountId
The id of the business account that has received the message. (e.g. WhatsApp business number, WeChat official account, etc)- Parameters:
businessAccountId
- the id of the business account
-
externalId
The optional external id of the message in the external system.- Parameters:
externalId
- the external id
-
replyToExternalId
The optional reply to external id of the message in the external system. This would be used to create a reply to message in the engage system- Parameters:
replyToExternalId
- the external id
-
messageType
-
messageSubType
-
content
The content of the message- Parameters:
content
- the message content
-
contentType
The type of the content for the message.- Parameters:
contentType
- the message content type
-
externalMediaId
The id of the external media.- Parameters:
externalMediaId
- the external media id
-
externalMediaName
The name of the external media.- Parameters:
externalMediaName
- the external media name
-
externalMediaMimeType
The mime type of the external media.- Parameters:
externalMediaMimeType
- the external media mime type
-
interactiveOutcome
An interactive event outcome value. If this is set then an event registry event might be sent out when the message is routed to the conversation.- Parameters:
interactiveOutcome
- the interactive outcome value
-
dynamicProperties
possible extra information about the message.- Parameters:
dynamicProperties
- possible extra information about the message
-
send
void send()Perform the actual message send to the engage platform -
sendUnsupported
void sendUnsupported()Perform sending the message as an unsupported type. This is usually decided by the invokers of the builders.
-