Class WhatsAppInteractiveMessageBuilderImpl.ButtonMessageBuilderImpl
java.lang.Object
com.flowable.engage.external.system.whatsapp.WhatsAppInteractiveMessageBuilderImpl.ButtonMessageBuilderImpl
- All Implemented Interfaces:
WhatsAppInteractiveMessageBuilder.ButtonMessageBuilder
- Enclosing class:
- WhatsAppInteractiveMessageBuilderImpl
public class WhatsAppInteractiveMessageBuilderImpl.ButtonMessageBuilderImpl
extends Object
implements WhatsAppInteractiveMessageBuilder.ButtonMessageBuilder
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdd the previously configured button.The unique identifier of the button.void
send()
Perform the sending of the interactive message to the WhatsApp Adapter.The user visible text on the button.
-
Field Details
-
action
-
button
-
-
Constructor Details
-
ButtonMessageBuilderImpl
-
-
Method Details
-
id
Description copied from interface:WhatsAppInteractiveMessageBuilder.ButtonMessageBuilder
The unique identifier of the button. This will be returned by WhatsApp when the user clicks on the button.- Specified by:
id
in interfaceWhatsAppInteractiveMessageBuilder.ButtonMessageBuilder
- Parameters:
id
- the button unique identifier- See Also:
-
title
Description copied from interface:WhatsAppInteractiveMessageBuilder.ButtonMessageBuilder
The user visible text on the button.- Specified by:
title
in interfaceWhatsAppInteractiveMessageBuilder.ButtonMessageBuilder
- Parameters:
title
- the button content- See Also:
-
addButton
Description copied from interface:WhatsAppInteractiveMessageBuilder.ButtonMessageBuilder
Add the previously configured button. If not invoked then theWhatsAppInteractiveMessageBuilder.ButtonMessageBuilder.id(String)
andWhatsAppInteractiveMessageBuilder.ButtonMessageBuilder.title(String)
operations or noop- Specified by:
addButton
in interfaceWhatsAppInteractiveMessageBuilder.ButtonMessageBuilder
-
send
public void send()Description copied from interface:WhatsAppInteractiveMessageBuilder.ButtonMessageBuilder
Perform the sending of the interactive message to the WhatsApp Adapter.- Specified by:
send
in interfaceWhatsAppInteractiveMessageBuilder.ButtonMessageBuilder
-