KindlyEventMessage
public struct KindlyEventMessage
Message data for events
-
Message ID
Declaration
Swift
public let id: String -
Message text content
Declaration
Swift
public let text: String? -
Message sender type
Declaration
Swift
public let sender: KindlyEventMessageSender -
Message creation timestamp
Declaration
Swift
public let created: Date? -
Whether the message is from the user
Declaration
Swift
public let isFromUser: Bool -
Exchange ID if applicable
Declaration
Swift
public let exchangeID: String? -
Video source URL if applicable
Declaration
Swift
public let videoSource: String? -
Exchange type if applicable
Declaration
Swift
public let exchangeType: KindlyEventExchangeType? -
Message buttons if any
Declaration
Swift
public let buttons: [KindlyEventButton] -
Message images if any
Declaration
Swift
public let images: [KindlyEventImage] -
Message attachments if any
Declaration
Swift
public let attachments: [KindlyEventAttachment] -
init(id:text: sender: created: isFromUser: exchangeID: videoSource: exchangeType: buttons: images: attachments: ) Undocumented
Declaration
Swift
public init( id: String, text: String? = nil, sender: KindlyEventMessageSender, created: Date? = nil, isFromUser: Bool, exchangeID: String? = nil, videoSource: String? = nil, exchangeType: KindlyEventExchangeType? = nil, buttons: [KindlyEventButton] = [], images: [KindlyEventImage] = [], attachments: [KindlyEventAttachment] = [] )
View on GitHub