Class Context

java.lang.Object
com.vonage.client.JsonableBaseObject
com.vonage.client.messages.whatsapp.Context
All Implemented Interfaces:
Jsonable

public final class Context extends JsonableBaseObject
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 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

      public UUID 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 null if not applicable.