ChatThreadItem

public struct ChatThreadItem : Codable

Summary information of a chat thread.

Properties

  • id

    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?

Initializers

  • 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.

Codable

  • Initialize a ChatThreadItem structure from decoder

    Declaration

    Swift

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

    Declaration

    Swift

    public func encode(to encoder: Encoder) throws