Skip to content

SRRoomAdmin

Ju Liaoyuan edited this page Dec 20, 2022 · 1 revision

SRRoomAdmin Class Reference

  Inherits from NSObject
  Declared in SRRoomAdmin.h

SRRoomAdmin.m

Tasks

– muteMsgUserWithModel:

– muteMsgCancelUserWithModel:

– blockUserWithModel:

– blockCancelUserWithModel:

– kickUserWithModel:

– adminUserWithModel:

– adminCancelUserWithModel:

– getOnlineNumWithRoomId:

– getOnlineListWithModel:

– modifyPassword:

– updateConfigWithModel:

Instance Methods

adminCancelUserWithModel:

取消用户管理权限

- (RACSignal *)adminCancelUserWithModel:(SRAdminCancelModel *)*model*

Parameters

model
   参数model

Discussion

取消用户管理权限

Declared In

  • SRRoomAdmin.h

adminUserWithModel:

添加用户管理权限

- (RACSignal *)adminUserWithModel:(SRAdminSetModel *)*model*

Parameters

model
   参数model

Discussion

添加用户管理权限

Declared In

  • SRRoomAdmin.h

blockCancelUserWithModel:

取消拉黑

- (RACSignal *)blockCancelUserWithModel:(SRBlockCancelUserModel *)*model*

Parameters

model
   参数model

Discussion

取消拉黑

Declared In

  • SRRoomAdmin.h

blockUserWithModel:

拉黑用户

- (RACSignal *)blockUserWithModel:(SRBlockUserModel *)*model*

Parameters

model
   参数model

Discussion

拉黑用户

Declared In

  • SRRoomAdmin.h

getOnlineListWithModel:

获取房间人员列表

- (RACSignal *)getOnlineListWithModel:(SROnlineListReqModel *)*model*

Parameters

model
   参数model

Return Value

SROnlineListResItemModel 成员列表模型

Discussion

获取房间人员列表

Declared In

  • SRRoomAdmin.h

getOnlineNumWithRoomId:

获取房间内人数

- (RACSignal *)getOnlineNumWithRoomId:(NSString *)*roomId*

Parameters

roomId
   房间 Id

Return Value

integer

Discussion

获取房间内人数

Declared In

  • SRRoomAdmin.h

kickUserWithModel:

从房间内踢出用户

- (RACSignal *)kickUserWithModel:(SRKickUserModel *)*model*

Parameters

model
   参数model

Discussion

从房间内踢出用户

Declared In

  • SRRoomAdmin.h

modifyPassword:

修改房间密码

- (RACSignal *)modifyPassword:(SRModifyPasswordModel *)*model*

Parameters

model
   参数 model

Return Value

true or false

Discussion

修改房间密码

Declared In

  • SRRoomAdmin.h

muteMsgCancelUserWithModel:

取消禁止用户发消息

- (RACSignal *)muteMsgCancelUserWithModel:(SRMuteMsgCancelUserModel *)*model*

Parameters

model
   参数model

Discussion

取消禁止用户发消息

Declared In

  • SRRoomAdmin.h

muteMsgUserWithModel:

禁止用户发消息

- (RACSignal *)muteMsgUserWithModel:(SRMuteMsgUserModel *)*model*

Parameters

model
   参数model

Discussion

禁止用户发消息

Declared In

  • SRRoomAdmin.h

updateConfigWithModel:

更新配置

- (void)updateConfigWithModel:(SNConfigModel *)*model*

Discussion

更新配置

Declared In

  • SRRoomAdmin.h
Clone this wiki locally