Class Button
java.lang.Object
com.whatsapp.api.domain.templates.Button
- Direct Known Subclasses:
PhoneNumberButton
,QuickReplyButton
,UrlButton
,VoiceCallButton
The type Button.
-
Constructor Summary
ModifierConstructorDescriptionprotected
Button()
Instantiates a new Button.Button
(ButtonType buttonType) Instantiates a new Button.protected
Button
(ButtonType type, String text) Instantiates a new Button. -
Method Summary
Modifier and TypeMethodDescriptiongetText()
Gets text.getType()
Gets type.Sets text.setType
(ButtonType type) Sets type.
-
Constructor Details
-
Button
protected Button()Instantiates a new Button. -
Button
Instantiates a new Button.- Parameters:
type
- the typetext
- the text
-
Button
Instantiates a new Button.- Parameters:
buttonType
- the button type
-
-
Method Details
-
getType
Gets type.- Returns:
- the type
-
setType
Sets type.- Parameters:
type
- the type- Returns:
- the type
-
getText
Gets text.- Returns:
- the text
-
setText
Sets text.- Parameters:
text
- the text- Returns:
- the text
-