CAIResponseMessageData

public struct CAIResponseMessageData : Decodable, Identifiable
extension CAIResponseMessageData: Equatable
extension CAIResponseMessageData: MessageData

Data Model structure for messages returned by CAI platform

Conformance to MessageData protocol

  • Declaration

    Swift

    public var sender: SenderInfo { get }
  • Declaration

    Swift

    public var sentDate: Date { get }
  • Declaration

    Swift

    public var type: MessageType { get }
  • Declaration

    Swift

    public var buttons: [PostbackData]? { get }
  • Declaration

    Swift

    public var isLastMessage: Bool { get }
  • Declaration

    Swift

    public var delay: TimeInterval? { get }

Helper functions to create CAI message data objects