Package com.vonage.client.messages
Class Button
java.lang.Object
com.vonage.client.JsonableBaseObject
com.vonage.client.messages.Button
- All Implemented Interfaces:
Jsonable
Used for inbound Button messages.
- Since:
- 8.11.0
-
Method Summary
Modifier and TypeMethodDescriptionPayload for the button.Subtype of button being received.getText()Additional context for the button.Methods inherited from class com.vonage.client.JsonableBaseObject
createJsonObjectMapper, equals, hashCode, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.vonage.client.Jsonable
toJson, updateFromJson
-
Method Details
-
getPayload
Payload for the button. Contents can be varied depending on the type of button. For WhatsApp messages, this will be a Map. For RCS, this will be a String.- Returns:
- The button payload, or
nullif absent.
-
getText
Additional context for the button.- Returns:
- The button text, or
nullif absent.
-
getSubtype
Subtype of button being received. This only applies to WhatsApp messages.- Returns:
- The button subtype, or
nullif absent / not applicable.
-