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 Type Method Description InboundMessageBuilder
businessAccountId(java.lang.String businessAccountId)
The id of the business account that has received the message.InboundMessageBuilder
content(java.lang.String content)
The content of the messageInboundMessageBuilder
contentType(java.lang.String contentType)
The type of the content for the message.InboundMessageBuilder
externalId(java.lang.String externalId)
The optional external id of the message in the external system.InboundMessageBuilder
externalMediaId(java.lang.String externalMediaId)
The id of the external media.InboundMessageBuilder
externalMediaMimeType(java.lang.String externalMediaMimeType)
The mime type of the external media.InboundMessageBuilder
externalMediaName(java.lang.String externalMediaName)
The name of the external media.InboundMessageBuilder
externalSenderId(java.lang.String externalSenderId)
The external id of the user that send the messageInboundMessageBuilder
externalSenderName(java.lang.String externalSenderName)
InboundMessageBuilder
externalSystemId(java.lang.String externalSystemId)
The id of the system that the message originates from.InboundMessageBuilder
messageSubType(java.lang.String messageSubType)
InboundMessageBuilder
messageType(java.lang.String messageType)
InboundMessageBuilder
replyToExternalId(java.lang.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
sendUnsupported()
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:
ExternalSystemIds
-
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
-
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.
-