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 Modifier and Type Field Description protected WhatsAppInteractiveMessageDto.Action
action
protected WhatsAppInteractiveMessageDto.ButtonOrSectionRow
button
-
Constructor Summary
Constructors Constructor Description ButtonMessageBuilderImpl(WhatsAppInteractiveMessageDto.Action action)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WhatsAppInteractiveMessageBuilder.ButtonMessageBuilder
addButton()
Add the previously configured button.WhatsAppInteractiveMessageBuilder.ButtonMessageBuilder
id(String id)
The unique identifier of the button.void
send()
Perform the sending of the interactive message to the WhatsApp Adapter.WhatsAppInteractiveMessageBuilder.ButtonMessageBuilder
title(String title)
The user visible text on the button.
-
-
-
Field Detail
-
action
protected final WhatsAppInteractiveMessageDto.Action action
-
button
protected WhatsAppInteractiveMessageDto.ButtonOrSectionRow button
-
-
Constructor Detail
-
ButtonMessageBuilderImpl
public ButtonMessageBuilderImpl(WhatsAppInteractiveMessageDto.Action action)
-
-
Method Detail
-
id
public WhatsAppInteractiveMessageBuilder.ButtonMessageBuilder id(String 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:
WhatsAppInteractiveMessageBuilder.ButtonMessageBuilder.addButton()
-
title
public WhatsAppInteractiveMessageBuilder.ButtonMessageBuilder title(String 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:
WhatsAppInteractiveMessageBuilder.ButtonMessageBuilder.addButton()
-
addButton
public WhatsAppInteractiveMessageBuilder.ButtonMessageBuilder 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
-
-