Class Context
java.lang.Object
com.vonage.client.JsonableBaseObject
com.vonage.client.messages.whatsapp.Context
- All Implemented Interfaces:
Jsonable
This is only present for the Inbound Message where the user is quoting another message.
It provides information about the quoted message and/or the product message being responded to.
- Since:
- 7.2.0
-
Method Summary
Modifier and TypeMethodDescriptionThe phone number of the original sender of the message being quoted.The UUID of the message being quoted.Deprecated.This will be moved in a future release.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
-
getMessageFrom
The phone number of the original sender of the message being quoted.- Returns:
- The original sender's phone number in E.164 format.
-
getMessageUuid
The UUID of the message being quoted.- Returns:
- The message ID.
-
getReferredProduct
Deprecated.This will be moved in a future release.Only applies to Order messages.- Returns:
- The referred product details, or
nullif not applicable.
-