Package com.whatsapp.api.domain.messages
Class ButtonPayloadParameter
java.lang.Object
com.whatsapp.api.domain.messages.Parameter
com.whatsapp.api.domain.messages.ButtonPayloadParameter
The type Button payload parameter.
- See Also:
-
Constructor Summary
ConstructorDescriptionInstantiates a new Button payload parameter.ButtonPayloadParameter
(String payload) Instantiates a new Button payload parameter. -
Method Summary
-
Constructor Details
-
ButtonPayloadParameter
public ButtonPayloadParameter()Instantiates a new Button payload parameter. -
ButtonPayloadParameter
Instantiates a new Button payload parameter.- Parameters:
payload
- the payload - Required for quick_reply buttons. Developer-defined payload that is returned when the button is clicked in addition to the display text on the button.
-
-
Method Details
-
getPayload
Gets payload.- Returns:
- the payload
-
setPayload
Sets payload. Required for quick_reply buttons. Developer-defined payload that is returned when the button is clicked in addition to the display text on the button.- Parameters:
payload
- the payload- Returns:
- the payload
-