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 class
WhatsAppInteractiveMessageBuilderImpl.ButtonMessageBuilderImpl
class
WhatsAppInteractiveMessageBuilderImpl.ListMessageBuilderImpl
static class
WhatsAppInteractiveMessageBuilderImpl.SectionBuilderImpl
static class
WhatsAppInteractiveMessageBuilderImpl.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 WhatsAppInteractiveMessageDto
interactiveMessage
protected WhatsAppJmsExternalConversationSystemAdapter
whatsAppJmsExternalConversationSystemAdapter
-
Constructor Summary
Constructors Constructor Description WhatsAppInteractiveMessageBuilderImpl(WhatsAppJmsExternalConversationSystemAdapter whatsAppJmsExternalConversationSystemAdapter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WhatsAppInteractiveMessageBuilder
body(String bodyText)
The main content of the interactive message bodyWhatsAppInteractiveMessageBuilder
businessAccountId(String businessAccountId)
The ID of the business account for the external userWhatsAppInteractiveMessageBuilder.ButtonMessageBuilder
button()
Create a button message.WhatsAppInteractiveMessageBuilder
externalUserId(String externalUserId)
The ID of the external user to which the message should be sent toWhatsAppInteractiveMessageBuilder
footer(String footerText)
The footer text that would be visible to the userWhatsAppInteractiveMessageBuilder.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.
-
-
-
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: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
public WhatsAppInteractiveMessageBuilder businessAccountId(String 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
public WhatsAppInteractiveMessageBuilder messageId(String 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
public WhatsAppInteractiveMessageBuilder textHeader(String headerText)
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
public WhatsAppInteractiveMessageBuilder mediaHeader(String mediaId)
Description copied from interface:WhatsAppInteractiveMessageBuilder
The content item ID for the media header.- Specified by:
mediaHeader
in interfaceWhatsAppInteractiveMessageBuilder
- Parameters:
mediaId
- the media header
-
body
public WhatsAppInteractiveMessageBuilder body(String bodyText)
Description copied from interface:WhatsAppInteractiveMessageBuilder
The main content of the interactive message body- Specified by:
body
in interfaceWhatsAppInteractiveMessageBuilder
- Parameters:
bodyText
- the main content
-
footer
public WhatsAppInteractiveMessageBuilder footer(String footerText)
Description copied from interface:WhatsAppInteractiveMessageBuilder
The footer text that would be visible to the user- Specified by:
footer
in interfaceWhatsAppInteractiveMessageBuilder
- Parameters:
footerText
- the footer content
-
button
public WhatsAppInteractiveMessageBuilder.ButtonMessageBuilder button()
Description copied from interface:WhatsAppInteractiveMessageBuilder
Create a button message. UseWhatsAppInteractiveMessageBuilder.ButtonMessageBuilder.send()
to actually send the message.- Specified by:
button
in interfaceWhatsAppInteractiveMessageBuilder
-
list
public WhatsAppInteractiveMessageBuilder.ListMessageBuilder list(String actionContent)
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
-
-