MLKTextMessage
@interface MLKTextMessage : NSObject
सिंगल चैट मैसेज, जिसे स्मार्ट जवाब में इनपुट के लिए कलेक्शन एलिमेंट के तौर पर इस्तेमाल किया जाता है.
-
चैट मैसेज का टेक्स्ट.
एलान
Objective-C
@property (nonatomic, readonly) NSString *_Nonnull text;
-
चैट मैसेज का टाइमस्टैंप.
एलान
Objective-C
@property (nonatomic, readonly) NSTimeInterval timestamp;
-
मैसेज भेजने वाले का यूज़र आईडी.
एलान
Objective-C
@property (nonatomic, readonly) NSString *_Nonnull userID;
-
इससे पता चलता है कि क्या यह मैसेज उस उपयोगकर्ता ने भेजा है जिसके लिए सुझाव जनरेट किए गए हैं.
एलान
Objective-C
@property (nonatomic, readonly) BOOL isLocalUser;
-
चैट मैसेज बनाता है.
एलान
Objective-C
- (nonnull instancetype)initWithText:(nonnull NSString *)text timestamp:(NSTimeInterval)timestamp userID:(nonnull NSString *)userID isLocalUser:(BOOL)isLocalUser;
पैरामीटर
text
चैट मैसेज का टेक्स्ट
timestamp
मैसेज का समय सेकंड में कैलकुलेट किया गया है. इसे यूनिक्स टाइम के हिसाब से कैलकुलेट किया गया है.
userID
मैसेज भेजने वाले का यूज़र आईडी.
isLocalUser
क्या यह मैसेज उस उपयोगकर्ता ने भेजा है जिसके लिए सुझाव जनरेट किए गए हैं.
-
उपलब्ध नहीं हैं.
एलान
Objective-C
- (nonnull instancetype)init;