STSChatMessage
@interface STSChatMessage : LHDataObject
Chat room message model
-
Message Id.
Declaration
Objective-C
@property (nonatomic, readonly) NSString *_Nonnull messageId;Swift
var messageId: UnsafeMutablePointer<Int32>! { get } -
Message text. It may be the normal text or rawData text.
Declaration
Objective-C
@property (nonatomic, readonly) NSString *_Nonnull text;Swift
var text: UnsafeMutablePointer<Int32>! { get } -
Message RawData, only valid when recieves data chanenl RawData.
Declaration
Objective-C
@property (nonatomic, readonly, nullable) id rawData;Swift
var rawData: Any? { get } -
Chat message type.
Declaration
Objective-C
@property (nonatomic, readonly) STSChatMesssageType type;Swift
var type: Int32 { get } -
Message create time.
Declaration
Objective-C
@property (nonatomic, readonly) NSString *_Nonnull createdDate;Swift
var createdDate: UnsafeMutablePointer<Int32>! { get } -
String represent where this message is sent from.
Declaration
Objective-C
@property (nonatomic, readonly) NSString *_Nonnull sourceType;Swift
var sourceType: UnsafeMutablePointer<Int32>! { get } -
Chat user who create this message.
Declaration
Objective-C
@property (nonatomic, readonly) STSChatUser *_Nonnull creator;Swift
var creator: STSChatUser! { get } -
Using new to create a STSChatMessage instance is unavailable.
Declaration
Objective-C
+ (nonnull instancetype)new;Swift
class func new() -> Self! -
Using int to create a STSChatMessage instance is unavailable.
Declaration
Objective-C
- (nonnull instancetype)init;Swift
init!()
-
The sticker image url.
Declaration
Objective-C
@property (nonatomic, readonly) NSURL *_Nonnull stickerURL;Swift
var stickerURL: UnsafeMutablePointer<Int32>! { get }
View on GitHub
Install in Dash
STSChatMessage Class Reference