Message
public class Message : Activity
Message you send to Flow.ai
-
Used to keep track of the message
Declaration
Swift
public var traceId:Int? -
The text to send
Declaration
Swift
public var speech:String! -
Direction is outbound
Declaration
Swift
private(set) public var direction:Direction = .outbound -
Attachment to send along with the Message
Declaration
Swift
private(set) public var attachment:Attachment? = nil -
Initializes a new Message
- speech: Text tot send
- originator: The sender of the message
- traceId: Optional data to keep track of the Message
- threadId: Optional threadId to send the message to
Declaration
Swift
public init(speech:String, originator:Originator, traceId:Int? = nil, threadId:String? = nil)Return Value
Message instance
-
Initializes a new Message
- attachment: Attachment to send
- originator: The sender of the message
- traceId: Optional data to keep track of the Message
- threadId: Optional threadId to send the message to
Declaration
Swift
public init(attachment:AttachmentPayload, originator:Originator, traceId:Int? = nil, threadId:String? = nil)Return Value
Message instance
-
Undocumented
Declaration
Swift
public class Message : Activity
View on GitHub
Install in Dash
Message Class Reference