public class WhatsAppInteractiveMessageBuilderImpl extends Object implements WhatsAppInteractiveMessageBuilder
| Modifier and Type | Class and Description |
|---|---|
class |
WhatsAppInteractiveMessageBuilderImpl.ButtonMessageBuilderImpl |
class |
WhatsAppInteractiveMessageBuilderImpl.ListMessageBuilderImpl |
static class |
WhatsAppInteractiveMessageBuilderImpl.SectionBuilderImpl |
static class |
WhatsAppInteractiveMessageBuilderImpl.SectionRowBuilderImpl |
WhatsAppInteractiveMessageBuilder.ButtonMessageBuilder, WhatsAppInteractiveMessageBuilder.ListMessageBuilder, WhatsAppInteractiveMessageBuilder.SectionBuilder, WhatsAppInteractiveMessageBuilder.SectionRowBuilder| Modifier and Type | Field and Description |
|---|---|
protected WhatsAppInteractiveMessageDto |
interactiveMessage |
protected WhatsAppJmsExternalConversationSystemAdapter |
whatsAppJmsExternalConversationSystemAdapter |
| Constructor and Description |
|---|
WhatsAppInteractiveMessageBuilderImpl(WhatsAppJmsExternalConversationSystemAdapter whatsAppJmsExternalConversationSystemAdapter) |
| Modifier and Type | Method and Description |
|---|---|
WhatsAppInteractiveMessageBuilder |
body(String bodyText)
The main content of the interactive message body
|
WhatsAppInteractiveMessageBuilder |
businessAccountId(String businessAccountId)
The ID of the business account for the external user
|
WhatsAppInteractiveMessageBuilder.ButtonMessageBuilder |
button()
Create a button message.
|
WhatsAppInteractiveMessageBuilder |
externalUserId(String externalUserId)
The ID of the external user to which the message should be sent to
|
WhatsAppInteractiveMessageBuilder |
footer(String footerText)
The footer text that would be visible to the user
|
WhatsAppInteractiveMessageBuilder.ListMessageBuilder |
list(String actionContent)
Create a List message with the action content visible to the user.
|
WhatsAppInteractiveMessageBuilder |
mediaHeader(String mediaId)
The content item ID for the media header.
|
WhatsAppInteractiveMessageBuilder |
messageId(String messageId)
The ID of the message being sent (can be used for logging purposes)
|
WhatsAppInteractiveMessageBuilder |
textHeader(String headerText)
The header text that would be visible to the user.
|
protected final WhatsAppJmsExternalConversationSystemAdapter whatsAppJmsExternalConversationSystemAdapter
protected final WhatsAppInteractiveMessageDto interactiveMessage
public WhatsAppInteractiveMessageBuilderImpl(WhatsAppJmsExternalConversationSystemAdapter whatsAppJmsExternalConversationSystemAdapter)
public WhatsAppInteractiveMessageBuilder externalUserId(String externalUserId)
WhatsAppInteractiveMessageBuilderexternalUserId in interface WhatsAppInteractiveMessageBuilderexternalUserId - the external user IDpublic WhatsAppInteractiveMessageBuilder businessAccountId(String businessAccountId)
WhatsAppInteractiveMessageBuilderbusinessAccountId in interface WhatsAppInteractiveMessageBuilderbusinessAccountId - the business account IDpublic WhatsAppInteractiveMessageBuilder messageId(String messageId)
WhatsAppInteractiveMessageBuildermessageId in interface WhatsAppInteractiveMessageBuildermessageId - the message IDpublic WhatsAppInteractiveMessageBuilder textHeader(String headerText)
WhatsAppInteractiveMessageBuildertextHeader in interface WhatsAppInteractiveMessageBuilderheaderText - the header textpublic WhatsAppInteractiveMessageBuilder mediaHeader(String mediaId)
WhatsAppInteractiveMessageBuildermediaHeader in interface WhatsAppInteractiveMessageBuildermediaId - the media headerpublic WhatsAppInteractiveMessageBuilder body(String bodyText)
WhatsAppInteractiveMessageBuilderbody in interface WhatsAppInteractiveMessageBuilderbodyText - the main contentpublic WhatsAppInteractiveMessageBuilder footer(String footerText)
WhatsAppInteractiveMessageBuilderfooter in interface WhatsAppInteractiveMessageBuilderfooterText - the footer contentpublic WhatsAppInteractiveMessageBuilder.ButtonMessageBuilder button()
WhatsAppInteractiveMessageBuilderWhatsAppInteractiveMessageBuilder.ButtonMessageBuilder.send() to actually send the message.button in interface WhatsAppInteractiveMessageBuilderpublic WhatsAppInteractiveMessageBuilder.ListMessageBuilder list(String actionContent)
WhatsAppInteractiveMessageBuilderWhatsAppInteractiveMessageBuilder.ListMessageBuilder.send() to actually send the message.list in interface WhatsAppInteractiveMessageBuilderactionContent - the content of the button visible ot the user