ChatMessageReadReceipt
public struct ChatMessageReadReceipt : Codable
A read receipt indicates the time a message was read by a recipient.
-
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
-
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
.
-
Initialize a
ChatMessageReadReceipt
structure from decoderDeclaration
Swift
public init(from decoder: Decoder) throws
-
Encode a
ChatMessageReadReceipt
structureDeclaration
Swift
public func encode(to encoder: Encoder) throws