NIMSession Class Reference

Inherits from NSObject
Conforms to NSCopying
Declared in NIMSession.h

Overview

会话对象

  sessionId

会话ID,如果当前session为team,则sessionId为teamId,如果是P2P则为对方帐号

@property (nonatomic, copy, readonly) NSString *sessionId

Discussion

会话ID,如果当前session为team,则sessionId为teamId,如果是P2P则为对方帐号

Declared In

NIMSession.h

  sessionType

会话类型,当前仅支持P2P,Team和Chatroom

@property (nonatomic, assign, readonly) NIMSessionType sessionType

Discussion

会话类型,当前仅支持P2P,Team和Chatroom

Declared In

NIMSession.h

  qchatChannelId

圈组频道ID

@property (nonatomic, readonly) unsigned long long qchatChannelId

Discussion

圈组频道ID

Declared In

NIMSession.h

  qchatServerId

圈组服务器ID

@property (nonatomic, readonly) unsigned long long qchatServerId

Discussion

圈组服务器ID

Declared In

NIMSession.h

+ session:type:

通过id和type构造会话对象

+ (instancetype)session:(NSString *)sessionId type:(NIMSessionType)sessionType

Parameters

sessionId

会话ID

sessionType

会话类型

Return Value

会话对象实例

Discussion

通过id和type构造会话对象

Declared In

NIMSession.h

+ sessionForQChat:qchatServerId:

通过圈组频道ID和圈组服务器ID构造会话对象

+ (instancetype)sessionForQChat:(long long)qchatChannelId qchatServerId:(long long)qchatServerId

Parameters

qchatChannelId

圈组频道ID

qchatServerId

圈组服务器ID

Return Value

会话对象实例

Discussion

通过圈组频道ID和圈组服务器ID构造会话对象

Declared In

NIMSession.h