Skip to content

Instantly share code, notes, and snippets.

@kajornsakp
Last active April 16, 2019 17:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kajornsakp/624d8b0f76541f0df4a67f28b26a273e to your computer and use it in GitHub Desktop.
Save kajornsakp/624d8b0f76541f0df4a67f28b26a273e to your computer and use it in GitHub Desktop.
/**
* A single chat message, to be used as an array element for input to Smart Reply.
*/
NS_SWIFT_NAME(TextMessage)
@interface FIRTextMessage : NSObject
/**
* Text of the chat message.
*/
@property(nonatomic, readonly) NSString *text;
/**
* Timestamp of the chat message.
*/
@property(nonatomic, readonly) NSTimeInterval timestamp;
/**
* User id of the message sender.
*/
@property(nonatomic, readonly) NSString *userID;
/**
* Indicates whether this message is from the user that the suggestions are generated for.
*/
@property(nonatomic, readonly) BOOL isLocalUser;
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment