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 TypeClassDescriptionclass
class
static class
static class
Nested 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 WhatsAppInteractiveMessageDto
protected 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:WhatsAppInteractiveMessageBuilder
The ID of the external user to which the message should be sent to- Specified by:
externalUserId
in interfaceWhatsAppInteractiveMessageBuilder
- Parameters:
externalUserId
- the external user ID
-
businessAccountId
Description copied from interface:WhatsAppInteractiveMessageBuilder
The ID of the business account for the external user- Specified by:
businessAccountId
in interfaceWhatsAppInteractiveMessageBuilder
- Parameters:
businessAccountId
- the business account ID
-
messageId
Description copied from interface:WhatsAppInteractiveMessageBuilder
The ID of the message being sent (can be used for logging purposes)- Specified by:
messageId
in interfaceWhatsAppInteractiveMessageBuilder
- Parameters:
messageId
- the message ID
-
textHeader
Description copied from interface:WhatsAppInteractiveMessageBuilder
The header text that would be visible to the user.- Specified by:
textHeader
in interfaceWhatsAppInteractiveMessageBuilder
- Parameters:
headerText
- the header text
-
mediaHeader
Description copied from interface:WhatsAppInteractiveMessageBuilder
The content item ID for the media header.- Specified by:
mediaHeader
in interfaceWhatsAppInteractiveMessageBuilder
- Parameters:
mediaId
- the media header
-
body
Description copied from interface:WhatsAppInteractiveMessageBuilder
The main content of the interactive message body- Specified by:
body
in interfaceWhatsAppInteractiveMessageBuilder
- Parameters:
bodyText
- the main content
-
button
Description copied from interface:WhatsAppInteractiveMessageBuilder
Create a button message. UseWhatsAppInteractiveMessageBuilder.ButtonMessageBuilder.send()
to actually send the message.- Specified by:
button
in interfaceWhatsAppInteractiveMessageBuilder
-
list
Description copied from interface:WhatsAppInteractiveMessageBuilder
Create a List message with the action content visible to the user. UseWhatsAppInteractiveMessageBuilder.ListMessageBuilder.send()
to actually send the message.- Specified by:
list
in interfaceWhatsAppInteractiveMessageBuilder
- Parameters:
actionContent
- the content of the button visible ot the user
-