NIMSDK-iOS
|
#import <NIMSession.h>
类方法 | |
(instancetype) | + session:type: |
(instancetype) | + sessionForQChat:qchatServerId: |
(nullable instancetype) | + sessionFromString: |
属性 | |
NSString * | sessionId |
NIMSessionType | sessionType |
unsigned long long | qchatChannelId |
unsigned long long | qchatServerId |
会话对象
+ (instancetype) session: | (NSString *) | sessionId | |
type: | (NIMSessionType) | sessionType | |
通过id和type构造会话对象
sessionId | 会话ID |
sessionType | 会话类型 |
+ (instancetype) sessionForQChat: | (long long) | qchatChannelId | |
qchatServerId: | (long long) | qchatServerId | |
通过圈组频道ID和圈组服务器ID构造会话对象
qchatChannelId | 圈组频道ID |
qchatServerId | 圈组服务器ID |
+ (nullable instancetype) sessionFromString: | (NSString *) | sessionString |
|
readnonatomicassign |
圈组频道ID
|
readnonatomicassign |
圈组服务器ID
|
readnonatomiccopy |
会话ID,如果当前session为team,则sessionId为teamId,如果是P2P则为对方帐号
|
readnonatomicassign |
会话类型,当前仅支持P2P,Team和Chatroom