CAIResponseMessageData
public struct CAIResponseMessageData : Decodable, Identifiable
extension CAIResponseMessageData: Equatable
extension CAIResponseMessageData: MessageData
Data Model structure for messages returned by CAI platform
-
Declaration
Swift
public var id: String
-
Undocumented
Declaration
Swift
public var participant: CAIResponseParticipantData
-
Undocumented
Declaration
Swift
public var attachment: UIModelData
-
Undocumented
Declaration
Swift
public var conversation: String
-
Undocumented
Declaration
Swift
public var receivedAt: Date?
-
Undocumented
Declaration
Swift
public init(id: String, participant: CAIResponseParticipantData, attachment: UIModelData, conversation: String, receivedAt: Date?)
-
Declaration
Swift
public init(from decoder: Decoder) throws
-
Declaration
Swift
public static func == (lhs: `Self`, rhs: `Self`) -> Bool
-
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 }
-
Undocumented
Declaration
Swift
init(text: String, _ isBot: Bool = true, markdown: Bool = false)
-
Undocumented
Declaration
Swift
init(text: String, _ inlineButtons: [UIModelDataAction]?, buttonType: VisualizationType, _ isBot: Bool = true)
-
Undocumented
Declaration
Swift
init(_ title: String, _ subtitle: String, _ headerImageName: String? = nil, // e.g. image in object card _ contentPictureName: String? = nil, // e.g. image for carousel card _ description: String? = nil, _ inlineButtons: [UIModelDataAction]? = nil, _ sections: [UIModelDataSection]? = nil, _ status1: String? = nil, _ status2: String? = nil, _ status3: String? = nil, _ isBot: Bool = true)
-
init(title:
subtitle: headerImageName: featuredImageName: description: inlineButtons: sections: status1: status1_state: status2: status2_state: status3: status3_state: isBot: ) Undocumented
Declaration
Swift
init(title: String, subtitle: String, headerImageName: String? = nil, // e.g. image in object card featuredImageName: String? = nil, // e.g. image for carousel card description: String? = nil, inlineButtons: [UIModelDataAction]? = nil, sections: [UIModelDataSection]? = nil, status1: String? = nil, status1_state: UIModelData.ValueState? = nil, status2: String? = nil, status2_state: UIModelData.ValueState? = nil, status3: String? = nil, status3_state: UIModelData.ValueState? = nil, isBot: Bool = true)
-
Undocumented
Declaration
Swift
init(imageName: String, _ isBot: Bool = true)
-
Undocumented
Declaration
Swift
init(videoUrl: String, _ isBot: Bool = true)
-
Undocumented
Declaration
Swift
init(_ mockData: [UIModelDataContent], _ inlineButtons: [UIModelDataAction]? = nil, _ title: String, _ subtitle: String, _ description: String? = nil, _ isBot: Bool = true)
-
Undocumented
Declaration
Swift
init(_ mockData: [UIModelDataContent], _ isBot: Bool = true)