通过


你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

MessageReceipt Class

  • java.lang.Object
    • com.azure.communication.messages.models.MessageReceipt

Implements

public final class MessageReceipt
implements JsonSerializable<MessageReceipt>

Receipt of the sending one message.

Method Summary

Modifier and Type Method and Description
static MessageReceipt fromJson(JsonReader jsonReader)

Reads an instance of MessageReceipt from the JsonReader.

String getMessageId()

Get the messageId property: The message id.

String getTo()

Get the to property: The native external platform user identifier of the recipient.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

fromJson

public static MessageReceipt fromJson(JsonReader jsonReader)

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:

IOException

- If the deserialized JSON object was missing any required properties.

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 JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to