Package com.whatsapp.api.domain.messages
Class Button
java.lang.Object
com.whatsapp.api.domain.messages.Button
Required for Reply Buttons.
A button object can contain the following parameters:
- type: only supported type is reply
- reply: required for Reply Buttons
You can have up to 3 buttons. You cannot have leading or trailing spaces when setting the ID.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetReply()
Gets reply.getType()
Gets type.Sets reply.setType
(ButtonType type) Sets type.
-
Field Details
-
type
The Type. -
reply
The Reply.
-
-
Constructor Details
-
Button
public Button()
-
-
Method Details
-
getType
Gets type.- Returns:
- the type
-
setType
Sets type.- Parameters:
type
- the type- Returns:
- the type
-
getReply
Gets reply.- Returns:
- the reply
-
setReply
Sets reply.- Parameters:
reply
- the reply- Returns:
- the reply
-