java.lang.Object
it.auties.whatsapp.model.button.base.Button.ButtonBuilder
- Enclosing class:
- Button
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate NativeFlowInfo
private ButtonText
private ButtonBodyType
private String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbodyNativeFlow
(NativeFlowInfo bodyNativeFlow) The native flow content of this button.bodyText
(ButtonText bodyText) The text content of this button.bodyType
(ButtonBodyType bodyType) The type of this messagebuild()
The id of this buttontoString()
-
Field Details
-
id
-
bodyText
-
bodyNativeFlow
-
bodyType
-
-
Constructor Details
-
ButtonBuilder
ButtonBuilder()
-
-
Method Details
-
id
The id of this button- Returns:
this
.
-
bodyText
The text content of this button. This property is defined only ifButton.bodyType()
==ButtonBodyType.TEXT
.- Returns:
this
.
-
bodyNativeFlow
The native flow content of this button. This property is defined only ifButton.bodyType()
==ButtonBodyType.NATIVE_FLOW
.- Returns:
this
.
-
bodyType
The type of this message- Returns:
this
.
-
build
-
toString
-