TextMessage
class TextMessage : NSObject
A single chat message, to be used as an array element for input to Smart Reply.
-
Text of the chat message.
Declaration
Swift
var text: String { get }
-
Timestamp of the chat message.
Declaration
Swift
var timestamp: TimeInterval { get }
-
User id of the message sender.
Declaration
Swift
var userID: String { get }
-
Indicates whether this message is from the user that the suggestions are generated for.
Declaration
Swift
var isLocalUser: Bool { get }
-
Constructs a chat message.
Declaration
Swift
init(text: String, timestamp: TimeInterval, userID: String, isLocalUser: Bool)
Parameters
text
Chat message text
timestamp
Time of message in seconds calculated from Unix Time.
userID
User ID of the message sender.
isLocalUser
Whether this message is from the user that the suggestions are generated for.
-
Unavailable.