Package com.vonage.client.messages
Class MessageResponse
java.lang.Object
com.vonage.client.JsonableBaseObject
com.vonage.client.messages.MessageResponse
- All Implemented Interfaces:
Jsonable
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 Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedProtected to prevent users from explicitly creating this object. -
Method Summary
Modifier and TypeMethodDescriptionstatic MessageResponseCreates an instance of this class from a JSON payload.Returns the UUID of the message that was sent.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
-
Field Details
-
messageUuid
-
-
Constructor Details
-
MessageResponse
protected MessageResponse()Protected to prevent users from explicitly creating this object.
-
-
Method Details
-
getMessageUuid
Returns the UUID of the message that was sent.- Returns:
- The unique message ID.
-
fromJson
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.
-