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 Type
    Method
    Description
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of MessageReceipt from the JsonReader.
    Get the messageId property: The message id.
    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

      public String getMessageId()
      Get the messageId property: The message id.
      Returns:
      the messageId value.
    • getTo

      public String getTo()
      Get the to property: The native external platform user identifier of the recipient.
      Returns:
      the to value.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<MessageReceipt>
      Throws:
      IOException
    • fromJson

      public static MessageReceipt fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.