ChatThreadItem
public struct ChatThreadItem : Codable
Summary information of a chat thread.
-
Chat thread id.
Declaration
Swift
public let id: String
-
Chat thread topic.
Declaration
Swift
public let topic: String
-
The timestamp when the chat thread was deleted. The timestamp is in RFC3339 format:
yyyy-MM-ddTHH:mm:ssZ
.Declaration
Swift
public let deletedOn: Iso8601Date?
-
The timestamp when the last message arrived at the server. The timestamp is in RFC3339 format:
yyyy-MM-ddTHH:mm:ssZ
.Declaration
Swift
public let lastMessageReceivedOn: Iso8601Date?
-
Initialize a
ChatThreadItem
structure.Declaration
Swift
public init( id: String, topic: String, deletedOn: Iso8601Date? = nil, lastMessageReceivedOn: Iso8601Date? = nil )
Parameters
id
Chat thread id.
topic
Chat thread topic.
deletedOn
The timestamp when the chat thread was deleted. The timestamp is in RFC3339 format:
yyyy-MM-ddTHH:mm:ssZ
.lastMessageReceivedOn
The timestamp when the last message arrived at the server. The timestamp is in RFC3339 format:
yyyy-MM-ddTHH:mm:ssZ
.
-
Initialize a
ChatThreadItem
structure from decoderDeclaration
Swift
public init(from decoder: Decoder) throws
-
Encode a
ChatThreadItem
structureDeclaration
Swift
public func encode(to encoder: Encoder) throws