ChatMessageReadReceipt

public struct ChatMessageReadReceipt : Codable

A read receipt indicates the time a message was read by a recipient.

Properties

  • The user who read the message.

    Declaration

    Swift

    public let sender: CommunicationIdentifier
  • Id of the message that has been read. This id is generated by the server.

    Declaration

    Swift

    public let chatMessageId: String
  • The time at which the message was read. The timestamp is in RFC3339 format: yyyy-MM-ddTHH:mm:ssZ.

    Declaration

    Swift

    public let readOn: Iso8601Date

Initializers

  • Initialize a ChatMessageReadReceipt structure.

    Declaration

    Swift

    public init(
        sender: CommunicationIdentifier,
        chatMessageId: String,
        readOn: Iso8601Date
    )

    Parameters

    sender

    The participant who read the message.

    chatMessageId

    Id of the chat message that has been read. This id is generated by the server.

    readOn

    The time at which the message was read. The timestamp is in RFC3339 format: yyyy-MM-ddTHH:mm:ssZ.

Codable

  • Initialize a ChatMessageReadReceipt structure from decoder

    Declaration

    Swift

    public init(from decoder: Decoder) throws
  • Encode a ChatMessageReadReceipt structure

    Declaration

    Swift

    public func encode(to encoder: Encoder) throws