HyphenateSDK
3.6.1
|
#import <EMMessage.h>
构造函数 | |
(id) | - initWithConversationID:from:to:body:ext: |
属性 | |
NSString * | messageId |
NSString * | conversationId |
EMMessageDirection | direction |
NSString * | from |
NSString * | to |
long long | timestamp |
long long | localTime |
EMChatType | chatType |
EMMessageStatus | status |
BOOL | isReadAcked |
BOOL | isDeliverAcked |
BOOL | isRead |
EMMessageBody * | body |
NSDictionary * | ext |
聊天消息
- (id) initWithConversationID: | (NSString *) | aConversationId | |
from: | (NSString *) | aFrom | |
to: | (NSString *) | aTo | |
body: | (EMMessageBody *) | aBody | |
ext: | (NSDictionary *) | aExt | |
初始化消息实例
aConversationId | 会话ID |
aFrom | 发送方 |
aTo | 接收方 |
aBody | 消息体实例 |
aExt | 扩展信息 |
|
readwritenonatomicstrong |
消息体
|
readwritenonatomicassign |
消息类型
|
readwritenonatomiccopy |
所属会话的唯一标识符
|
readwritenonatomicassign |
消息的方向
|
readwritenonatomiccopy |
消息扩展
Key值类型必须是NSString, Value值类型必须是NSString或者 NSNumber类型的 BOOL, int, unsigned in, long long, double.
|
readwritenonatomiccopy |
发送方
|
readwritenonatomicassign |
送达回执是否已发送/收到,对于发送方表示是否已经收到送达回执,对于接收方表示是否已经发送送达回执,如果EMOptions设置了enableDeliveryAck,SDK收到消息后会自动发送送达回执
|
readwritenonatomicassign |
是否已读
|
readwritenonatomicassign |
已读回执是否已发送/收到, 对于发送方表示是否已经收到已读回执,对于接收方表示是否已经发送已读回执
|
readwritenonatomicassign |
客户端发送/收到此消息的时间
|
readwritenonatomiccopy |
消息的唯一标识符
|
readwritenonatomicassign |
消息状态
|
readwritenonatomicassign |
时间戳,服务器收到此消息的时间
|
readwritenonatomiccopy |
接收方