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
ChatThreadItemstructure.Declaration
Swift
public init( id: String, topic: String, deletedOn: Iso8601Date? = nil, lastMessageReceivedOn: Iso8601Date? = nil )Parameters
idChat thread id.
topicChat thread topic.
deletedOnThe timestamp when the chat thread was deleted. The timestamp is in RFC3339 format:
yyyy-MM-ddTHH:mm:ssZ.lastMessageReceivedOnThe timestamp when the last message arrived at the server. The timestamp is in RFC3339 format:
yyyy-MM-ddTHH:mm:ssZ.
-
Initialize a
ChatThreadItemstructure from decoderDeclaration
Swift
public init(from decoder: Decoder) throws -
Encode a
ChatThreadItemstructureDeclaration
Swift
public func encode(to encoder: Encoder) throws
View on GitHub
ChatThreadItem Structure Reference