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 ClassesModifier and TypeClassDescriptionclassclassstatic classstatic classNested classes/interfaces inherited from interface com.flowable.engage.external.system.whatsapp.api.WhatsAppInteractiveMessageBuilder
WhatsAppInteractiveMessageBuilder.ButtonMessageBuilder, WhatsAppInteractiveMessageBuilder.ListMessageBuilder, WhatsAppInteractiveMessageBuilder.SectionBuilder, WhatsAppInteractiveMessageBuilder.SectionRowBuilder -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final WhatsAppInteractiveMessageDtoprotected final WhatsAppJmsExternalConversationSystemAdapter -
Constructor Summary
ConstructorsConstructorDescriptionWhatsAppInteractiveMessageBuilderImpl(WhatsAppJmsExternalConversationSystemAdapter whatsAppJmsExternalConversationSystemAdapter) -
Method Summary
Modifier and TypeMethodDescriptionThe main content of the interactive message bodybusinessAccountId(String businessAccountId) The ID of the business account for the external userbutton()Create a button message.externalUserId(String externalUserId) The ID of the external user to which the message should be sent toThe footer text that would be visible to the userCreate a List message with the action content visible to the user.mediaHeader(String mediaId) The content item ID for the media header.The ID of the message being sent (can be used for logging purposes)textHeader(String headerText) The header text that would be visible to the user.
-
Field Details
-
whatsAppJmsExternalConversationSystemAdapter
protected final WhatsAppJmsExternalConversationSystemAdapter whatsAppJmsExternalConversationSystemAdapter -
interactiveMessage
-
-
Constructor Details
-
WhatsAppInteractiveMessageBuilderImpl
public WhatsAppInteractiveMessageBuilderImpl(WhatsAppJmsExternalConversationSystemAdapter whatsAppJmsExternalConversationSystemAdapter)
-
-
Method Details
-
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
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
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
Description copied from interface:WhatsAppInteractiveMessageBuilderThe header text that would be visible to the user.- Specified by:
textHeaderin interfaceWhatsAppInteractiveMessageBuilder- Parameters:
headerText- the header text
-
mediaHeader
Description copied from interface:WhatsAppInteractiveMessageBuilderThe content item ID for the media header.- Specified by:
mediaHeaderin interfaceWhatsAppInteractiveMessageBuilder- Parameters:
mediaId- the media header
-
body
Description copied from interface:WhatsAppInteractiveMessageBuilderThe main content of the interactive message body- Specified by:
bodyin interfaceWhatsAppInteractiveMessageBuilder- Parameters:
bodyText- the main content
-
button
Description copied from interface:WhatsAppInteractiveMessageBuilderCreate a button message. UseWhatsAppInteractiveMessageBuilder.ButtonMessageBuilder.send()to actually send the message.- Specified by:
buttonin interfaceWhatsAppInteractiveMessageBuilder
-
list
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
-