ChatThreadProperties
public struct ChatThreadProperties : Codable
Chat thread properties.
-
Thread id.
Declaration
Swift
public let id: String
-
Thread topic.
Declaration
Swift
public let topic: String
-
The timestamp when the thread was created. The timestamp is in RFC3339 format:
yyyy-MM-ddTHH:mm:ssZ
.Declaration
Swift
public let createdOn: Iso8601Date
-
CommunicationIdentifier of the thread owner.
Declaration
Swift
public let createdBy: CommunicationIdentifier
-
The timestamp when the thread was deleted. The timestamp is in RFC3339 format:
yyyy-MM-ddTHH:mm:ssZ
.Declaration
Swift
public let deletedOn: Iso8601Date?
-
Initialize a
ChatThreadProperties
structure.Declaration
Swift
public init( id: String, topic: String, createdOn: Iso8601Date, createdBy: CommunicationIdentifier, deletedOn: Iso8601Date? = nil )
Parameters
id
Thread id.
topic
Thread topic.
createdOn
The timestamp when the thread was created. The timestamp is in RFC3339 format:
yyyy-MM-ddTHH:mm:ssZ
.createdBy
The thread owner.
deletedOn
The timestamp when the thread was deleted. The timestamp is in RFC3339 format:
yyyy-MM-ddTHH:mm:ssZ
.
-
Initialize a
ChatThreadProperties
structure from decoderDeclaration
Swift
public init(from decoder: Decoder) throws
-
Encode a
ChatThreadProperties
structureDeclaration
Swift
public func encode(to encoder: Encoder) throws