ReadReceipt.java
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.communication.chat.implementation.models;
import com.azure.core.annotation.Immutable;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
/** The ReadReceipt model. */
@Immutable
public final class ReadReceipt {
/*
* Read receipt sender id.
*/
@JsonProperty(value = "senderId", access = JsonProperty.Access.WRITE_ONLY)
private String senderId;
/*
* Id for the chat message that has been read. This id is generated by the
* server.
*/
@JsonProperty(value = "chatMessageId", access = JsonProperty.Access.WRITE_ONLY)
private String chatMessageId;
/*
* Read receipt timestamp. The timestamp is in ISO8601 format:
* `yyyy-MM-ddTHH:mm:ssZ`.
*/
@JsonProperty(value = "readOn", access = JsonProperty.Access.WRITE_ONLY)
private OffsetDateTime readOn;
/**
* Get the senderId property: Read receipt sender id.
*
* @return the senderId value.
*/
public String getSenderId() {
return this.senderId;
}
/**
* Get the chatMessageId property: Id for the chat message that has been read. This id is generated by the server.
*
* @return the chatMessageId value.
*/
public String getChatMessageId() {
return this.chatMessageId;
}
/**
* Get the readOn property: Read receipt timestamp. The timestamp is in ISO8601 format: `yyyy-MM-ddTHH:mm:ssZ`.
*
* @return the readOn value.
*/
public OffsetDateTime getReadOn() {
return this.readOn;
}
}