Class WhatsAppInteractiveMessageBuilderImpl
- java.lang.Object
-
- com.flowable.engage.external.system.whatsapp.WhatsAppInteractiveMessageBuilderImpl
-
- All Implemented Interfaces:
WhatsAppInteractiveMessageBuilder
public class WhatsAppInteractiveMessageBuilderImpl extends Object implements WhatsAppInteractiveMessageBuilder
- Author:
- Filip Hrisafov
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classWhatsAppInteractiveMessageBuilderImpl.ButtonMessageBuilderImplclassWhatsAppInteractiveMessageBuilderImpl.ListMessageBuilderImplstatic classWhatsAppInteractiveMessageBuilderImpl.SectionBuilderImplstatic classWhatsAppInteractiveMessageBuilderImpl.SectionRowBuilderImpl-
Nested classes/interfaces inherited from interface com.flowable.engage.external.system.whatsapp.api.WhatsAppInteractiveMessageBuilder
WhatsAppInteractiveMessageBuilder.ButtonMessageBuilder, WhatsAppInteractiveMessageBuilder.ListMessageBuilder, WhatsAppInteractiveMessageBuilder.SectionBuilder, WhatsAppInteractiveMessageBuilder.SectionRowBuilder
-
-
Field Summary
Fields Modifier and Type Field Description protected WhatsAppInteractiveMessageDtointeractiveMessageprotected WhatsAppJmsExternalConversationSystemAdapterwhatsAppJmsExternalConversationSystemAdapter
-
Constructor Summary
Constructors Constructor Description WhatsAppInteractiveMessageBuilderImpl(WhatsAppJmsExternalConversationSystemAdapter whatsAppJmsExternalConversationSystemAdapter)
-
Method Summary
All Methods Instance Methods Concrete 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.
-
-
-
Field Detail
-
whatsAppJmsExternalConversationSystemAdapter
protected final WhatsAppJmsExternalConversationSystemAdapter whatsAppJmsExternalConversationSystemAdapter
-
interactiveMessage
protected final WhatsAppInteractiveMessageDto interactiveMessage
-
-
Constructor Detail
-
WhatsAppInteractiveMessageBuilderImpl
public WhatsAppInteractiveMessageBuilderImpl(WhatsAppJmsExternalConversationSystemAdapter whatsAppJmsExternalConversationSystemAdapter)
-
-
Method Detail
-
externalUserId
public WhatsAppInteractiveMessageBuilder externalUserId(String externalUserId)
Description copied from interface:WhatsAppInteractiveMessageBuilderThe ID of the external user to which the message should be sent to- Specified by:
externalUserIdin interfaceWhatsAppInteractiveMessageBuilder- Parameters:
externalUserId- the external user ID
-
businessAccountId
public WhatsAppInteractiveMessageBuilder businessAccountId(String businessAccountId)
Description copied from interface:WhatsAppInteractiveMessageBuilderThe ID of the business account for the external user- Specified by:
businessAccountIdin interfaceWhatsAppInteractiveMessageBuilder- Parameters:
businessAccountId- the business account ID
-
messageId
public WhatsAppInteractiveMessageBuilder messageId(String messageId)
Description copied from interface:WhatsAppInteractiveMessageBuilderThe ID of the message being sent (can be used for logging purposes)- Specified by:
messageIdin interfaceWhatsAppInteractiveMessageBuilder- Parameters:
messageId- the message ID
-
textHeader
public WhatsAppInteractiveMessageBuilder textHeader(String headerText)
Description copied from interface:WhatsAppInteractiveMessageBuilderThe header text that would be visible to the user.- Specified by:
textHeaderin interfaceWhatsAppInteractiveMessageBuilder- Parameters:
headerText- the header text
-
mediaHeader
public WhatsAppInteractiveMessageBuilder mediaHeader(String mediaId)
Description copied from interface:WhatsAppInteractiveMessageBuilderThe content item ID for the media header.- Specified by:
mediaHeaderin interfaceWhatsAppInteractiveMessageBuilder- Parameters:
mediaId- the media header
-
body
public WhatsAppInteractiveMessageBuilder body(String bodyText)
Description copied from interface:WhatsAppInteractiveMessageBuilderThe main content of the interactive message body- Specified by:
bodyin interfaceWhatsAppInteractiveMessageBuilder- Parameters:
bodyText- the main content
-
footer
public WhatsAppInteractiveMessageBuilder footer(String footerText)
Description copied from interface:WhatsAppInteractiveMessageBuilderThe footer text that would be visible to the user- Specified by:
footerin interfaceWhatsAppInteractiveMessageBuilder- Parameters:
footerText- the footer content
-
button
public WhatsAppInteractiveMessageBuilder.ButtonMessageBuilder button()
Description copied from interface:WhatsAppInteractiveMessageBuilderCreate a button message. UseWhatsAppInteractiveMessageBuilder.ButtonMessageBuilder.send()to actually send the message.- Specified by:
buttonin interfaceWhatsAppInteractiveMessageBuilder
-
list
public WhatsAppInteractiveMessageBuilder.ListMessageBuilder list(String actionContent)
Description copied from interface:WhatsAppInteractiveMessageBuilderCreate a List message with the action content visible to the user. UseWhatsAppInteractiveMessageBuilder.ListMessageBuilder.send()to actually send the message.- Specified by:
listin interfaceWhatsAppInteractiveMessageBuilder- Parameters:
actionContent- the content of the button visible ot the user
-
-