Class MessageResponse

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

public class MessageResponse extends JsonableBaseObject
Response returned when sending a message. Regardless of the channel or message type, the returned response (HTTP 202 payload) is always the same format.
  • Field Details

  • Constructor Details

    • MessageResponse

      protected MessageResponse()
      Protected to prevent users from explicitly creating this object.
  • Method Details

    • getMessageUuid

      public UUID getMessageUuid()
      Returns the UUID of the message that was sent.
      Returns:
      The unique message ID.
    • fromJson

      public static MessageResponse fromJson(String json)
      Creates an instance of this class from a JSON payload.
      Parameters:
      json - The JSON string to parse.
      Returns:
      An instance of this class with the fields populated, if present.