Package com.restfb.types.whatsapp
Class WhatsAppMessageTemplateComponent.Button
java.lang.Object
com.restfb.types.whatsapp.WhatsAppMessageTemplateComponent.Button
- Enclosing class:
- WhatsAppMessageTemplateComponent
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSingle element list with the strings to copy to the device's clipboard if the type is 'COPY_CODE', or sample URL if the type is 'URL' and has a parameter.Action to define the Flow behavior.Unique identifier of the Flow provided by WhatsApp.JSON string specifying the layout of the Flow.The name of the Flow, supported in Cloud API only.ID of the entry screen in the Flow if flow_action is 'navigate'.getText()
Button label text.getType()
Button type.getUrl()
URL of website.void
setExample
(List<String> example) Single element list with the strings to copy to the device's clipboard if the type is 'COPY_CODE', or sample URL if the type is 'URL' and has a parameter.void
setFlowAction
(String flowAction) Action to define the Flow behavior.void
Unique identifier of the Flow provided by WhatsApp.void
setFlowJson
(String flowJson) JSON string specifying the layout of the Flow.void
setFlowName
(String flowName) The name of the Flow, supported in Cloud API only.void
setNavigateScreen
(String navigateScreen) ID of the entry screen in the Flow if flow_action is 'navigate'.void
setPhoneNumber
(String phoneNumber) void
Button label text.void
Button type.void
URL of website.
-
Constructor Details
-
Button
public Button()
-
-
Method Details
-
getType
Button type. -
setType
Button type. -
getText
Button label text. -
setText
Button label text. -
getUrl
URL of website. Supports 1 variable. -
setUrl
URL of website. Supports 1 variable. -
getPhoneNumber
-
setPhoneNumber
-
getExample
Single element list with the strings to copy to the device's clipboard if the type is 'COPY_CODE', or sample URL if the type is 'URL' and has a parameter. -
setExample
Single element list with the strings to copy to the device's clipboard if the type is 'COPY_CODE', or sample URL if the type is 'URL' and has a parameter. -
getFlowId
Unique identifier of the Flow provided by WhatsApp. The Flow must be published. -
setFlowId
Unique identifier of the Flow provided by WhatsApp. The Flow must be published. -
getFlowName
The name of the Flow, supported in Cloud API only. Cannot be used with flow_id or flow_json. -
setFlowName
The name of the Flow, supported in Cloud API only. Cannot be used with flow_id or flow_json. -
getFlowJson
JSON string specifying the layout of the Flow. Cannot be used with flow_id or flow_name. -
setFlowJson
JSON string specifying the layout of the Flow. Cannot be used with flow_id or flow_name. -
getFlowAction
Action to define the Flow behavior. Can be 'navigate' for predefined screens or 'data_exchange' for dynamic screens. -
setFlowAction
Action to define the Flow behavior. Can be 'navigate' for predefined screens or 'data_exchange' for dynamic screens.
-