Class ButtonComponent
java.lang.Object
com.whatsapp.api.domain.templates.Component<ButtonComponent>
com.whatsapp.api.domain.templates.ButtonComponent
The type Button component.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAdd button button component.Gets buttons.setButtons
(List<Button> buttons) Sets buttons.Methods inherited from class com.whatsapp.api.domain.templates.Component
getExample, getText, getType, setExample, setText, setType
-
Constructor Details
-
ButtonComponent
public ButtonComponent()Instantiates a new Button component.
-
-
Method Details
-
getButtons
Gets buttons.- Returns:
- the buttons
-
setButtons
Sets buttons.- Parameters:
buttons
- the buttons- Returns:
- the buttons
-
addButton
Add button button component.- Parameters:
button
- the button- Returns:
- the button component
-