ChatMessagesCollection

public struct ChatMessagesCollection : Codable

Collection of chat messages for a particular chat thread.

Properties

  • Collection of chat messages.

    Declaration

    Swift

    public let value: [ChatMessage]
  • If there are more chat messages that can be retrieved, the next link will be populated.

    Declaration

    Swift

    public let nextLink: String?

Initializers

  • Initialize a ChatMessagesCollection structure.

    Declaration

    Swift

    public init(
        value: [ChatMessage], nextLink: String? = nil
    )

    Parameters

    value

    Collection of chat messages.

    nextLink

    If there are more chat messages that can be retrieved, the next link will be populated.

Codable

  • Initialize a ChatMessagesCollection structure from decoder

    Declaration

    Swift

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

    Declaration

    Swift

    public func encode(to encoder: Encoder) throws