Interface WhatsAppInteractiveMessageBuilder
-
- All Known Implementing Classes:
WhatsAppInteractiveMessageBuilderImpl
public interface WhatsAppInteractiveMessageBuilderIn order to understand this API better you need to be familiar with the WhatsApp Sending Interactive Messages.- Author:
- Filip Hrisafov
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceWhatsAppInteractiveMessageBuilder.ButtonMessageBuilderBuilder for finishing building the Button message details and sending the message.static interfaceWhatsAppInteractiveMessageBuilder.ListMessageBuilderBuilder for finishing building the List message details and sending the message.static interfaceWhatsAppInteractiveMessageBuilder.SectionBuilderBuilder for building a list message section.static interfaceWhatsAppInteractiveMessageBuilder.SectionRowBuilderBuilder for building a row in a section for list interactive messages.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description WhatsAppInteractiveMessageBuilderbody(String bodyText)The main content of the interactive message bodyWhatsAppInteractiveMessageBuilderbusinessAccountId(String businessAccountId)The ID of the business account for the external userWhatsAppInteractiveMessageBuilder.ButtonMessageBuilderbutton()Create a button message.WhatsAppInteractiveMessageBuilderexternalUserId(String externalUserId)The ID of the external user to which the message should be sent toWhatsAppInteractiveMessageBuilderfooter(String footerText)The footer text that would be visible to the userWhatsAppInteractiveMessageBuilder.ListMessageBuilderlist(String actionContent)Create a List message with the action content visible to the user.WhatsAppInteractiveMessageBuildermediaHeader(String mediaId)The content item ID for the media header.WhatsAppInteractiveMessageBuildermessageId(String messageId)The ID of the message being sent (can be used for logging purposes)WhatsAppInteractiveMessageBuildertextHeader(String headerText)The header text that would be visible to the user.
-
-
-
Method Detail
-
externalUserId
WhatsAppInteractiveMessageBuilder externalUserId(String externalUserId)
The ID of the external user to which the message should be sent to- Parameters:
externalUserId- the external user ID
-
businessAccountId
WhatsAppInteractiveMessageBuilder businessAccountId(String businessAccountId)
The ID of the business account for the external user- Parameters:
businessAccountId- the business account ID
-
messageId
WhatsAppInteractiveMessageBuilder messageId(String messageId)
The ID of the message being sent (can be used for logging purposes)- Parameters:
messageId- the message ID
-
textHeader
WhatsAppInteractiveMessageBuilder textHeader(String headerText)
The header text that would be visible to the user.- Parameters:
headerText- the header text
-
mediaHeader
WhatsAppInteractiveMessageBuilder mediaHeader(String mediaId)
The content item ID for the media header.- Parameters:
mediaId- the media header
-
body
WhatsAppInteractiveMessageBuilder body(String bodyText)
The main content of the interactive message body- Parameters:
bodyText- the main content
-
footer
WhatsAppInteractiveMessageBuilder footer(String footerText)
The footer text that would be visible to the user- Parameters:
footerText- the footer content
-
button
WhatsAppInteractiveMessageBuilder.ButtonMessageBuilder button()
Create a button message. UseWhatsAppInteractiveMessageBuilder.ButtonMessageBuilder.send()to actually send the message.
-
list
WhatsAppInteractiveMessageBuilder.ListMessageBuilder list(String actionContent)
Create a List message with the action content visible to the user. UseWhatsAppInteractiveMessageBuilder.ListMessageBuilder.send()to actually send the message.- Parameters:
actionContent- the content of the button visible ot the user
-
-