Interface ExternalMessageBuilder
- All Known Implementing Classes:
BaseExternalMessageBuilder
,LineExternalMessageBuilder
,WeChatExternalMessageBuilder
,WhatsAppExternalMessageBuilder
public interface ExternalMessageBuilder
Builder that can be used for sending external messages
- Author:
- Filip Hrisafov
-
Method Summary
Modifier and TypeMethodDescriptionbusinessAccountId
(String businessAccountId) The id of the business account for the external userexternalUserId
(String externalUserId) The id of the external user to which the message should be send toThe contents of the message that needs to be sendThe id of the message being send (can be used for logging purposes)void
sendMediaMessage
(String mediaId) Perform sending of media messagevoid
Perform sending a normal text message
-
Method Details
-
externalUserId
The id of the external user to which the message should be send to- Parameters:
externalUserId
- the external user id
-
businessAccountId
The id of the business account for the external user- Parameters:
businessAccountId
- the bussiness account id
-
messageId
The id of the message being send (can be used for logging purposes)- Parameters:
messageId
- the message id
-
message
The contents of the message that needs to be send- Parameters:
message
- the message content
-
sendMessage
void sendMessage()Perform sending a normal text message -
sendMediaMessage
Perform sending of media message- Parameters:
mediaId
- the id of the media that is being sent
-