Class MessageReceipt
java.lang.Object
com.azure.communication.messages.models.MessageReceipt
- All Implemented Interfaces:
com.azure.json.JsonSerializable<MessageReceipt>
public final class MessageReceipt
extends Object
implements com.azure.json.JsonSerializable<MessageReceipt>
Receipt of the sending one message.
-
Method Summary
Modifier and TypeMethodDescriptionstatic MessageReceipt
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of MessageReceipt from the JsonReader.Get the messageId property: The message id.getTo()
Get the to property: The native external platform user identifier of the recipient.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Method Details
-
getMessageId
Get the messageId property: The message id.- Returns:
- the messageId value.
-
getTo
Get the to property: The native external platform user identifier of the recipient.- Returns:
- the to value.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<MessageReceipt>
- Throws:
IOException
-
fromJson
Reads an instance of MessageReceipt from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of MessageReceipt if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException
- If the deserialized JSON object was missing any required properties.IOException
- If an error occurs while reading the MessageReceipt.
-