NIMSession Class Reference
| Inherits from | NSObject |
|---|---|
| Conforms to | NSCopying |
| Declared in | NIMSession.h |
sessionId
会话ID,如果当前session为team,则sessionId为teamId,如果是P2P则为对方帐号
@property (nonatomic, copy, readonly) NSString *sessionIdDiscussion
会话ID,如果当前session为team,则sessionId为teamId,如果是P2P则为对方帐号
Declared In
NIMSession.h
sessionType
会话类型,当前仅支持P2P,Team和Chatroom
@property (nonatomic, assign, readonly) NIMSessionType sessionTypeDiscussion
会话类型,当前仅支持P2P,Team和Chatroom
Declared In
NIMSession.h
qchatChannelId
圈组频道ID
@property (nonatomic, readonly) unsigned long long qchatChannelIdDiscussion
圈组频道ID
Declared In
NIMSession.h
qchatServerId
圈组服务器ID
@property (nonatomic, readonly) unsigned long long qchatServerIdDiscussion
圈组服务器ID
Declared In
NIMSession.h
+ session:type:
通过id和type构造会话对象
+ (instancetype)session:(NSString *)sessionId type:(NIMSessionType)sessionTypeParameters
sessionId |
会话ID |
|---|---|
sessionType |
会话类型 |
Return Value
会话对象实例
Discussion
通过id和type构造会话对象
Declared In
NIMSession.h
+ sessionForQChat:qchatServerId:
通过圈组频道ID和圈组服务器ID构造会话对象
+ (instancetype)sessionForQChat:(long long)qchatChannelId qchatServerId:(long long)qchatServerIdParameters
qchatChannelId |
圈组频道ID |
|---|---|
qchatServerId |
圈组服务器ID |
Return Value
会话对象实例
Discussion
通过圈组频道ID和圈组服务器ID构造会话对象
Declared In
NIMSession.h