Conforms to NSObject
Declared in ECLiveChatRoomManager.h

Instance Methods

dfriendLiveChatRoomMember:completion:

拉黑聊天室成员

- (void)dfriendLiveChatRoomMember:(ECDefriendLiveChatRoomMemberRequest *)request completion:(void ( ^ ) ( ECError *error , ECLiveChatRoomMember *member ))completion

Parameters

request

拉黑聊天室成员请求类

completion

回调

Declared In

ECLiveChatRoomManager.h

exitLiveChatRoom:completion:

退出聊天室

- (void)exitLiveChatRoom:(ECExitLiveChatRoomRequest *)request completion:(void ( ^ ) ( ECError *error , NSString *roomId ))completion

Parameters

request

退出聊天室请求类

completion

回调

Declared In

ECLiveChatRoomManager.h

forbidLiveChatRoomMember:completion:

禁言聊天室成员

- (void)forbidLiveChatRoomMember:(ECForbidLiveChatRoomMemberRequest *)request completion:(void ( ^ ) ( ECError *error , ECLiveChatRoomMember *member ))completion

Parameters

request

禁言聊天室成员请求类

completion

回调

Declared In

ECLiveChatRoomManager.h

joinLiveChatRoom:completion:

加入聊天室

- (void)joinLiveChatRoom:(ECJoinLiveChatRoomRequest *)request completion:(void ( ^ ) ( ECError *error , ECLiveChatRoomInfo *roomInfo , ECLiveChatRoomMember *member ))completion

Parameters

request

加入聊天室请求类

completion

回调

Declared In

ECLiveChatRoomManager.h

kickLiveChatRoomMember:completion:

踢出聊天室

- (void)kickLiveChatRoomMember:(ECKickLiveChatRoomMemberRequest *)request completion:(void ( ^ ) ( ECError *error , NSString *userId ))completion

Parameters

request

踢出聊天室请求类

completion

回调

Declared In

ECLiveChatRoomManager.h

modifyLiveChatRoomInfo:completion:

修改聊天室信息

- (void)modifyLiveChatRoomInfo:(ECModifyLiveChatRoomInfoRequest *)request completion:(void ( ^ ) ( ECError *error , ECLiveChatRoomInfo *roomInfo ))completion

Parameters

request

修改聊天室请求类

completion

回调

Declared In

ECLiveChatRoomManager.h

modifyLiveChatRoomMemberRole:completion:

修改聊天室成员角色

- (void)modifyLiveChatRoomMemberRole:(ECModifyLiveChatRoomMemberRoleRequest *)request completion:(void ( ^ ) ( ECError *error , ECLiveChatRoomMember *member ))completion

Parameters

request

修改聊天室成员角色请求类

completion

回调

Declared In

ECLiveChatRoomManager.h

modifyLiveChatRoomSelfInfo:completion:

修改聊天室成员信息

- (void)modifyLiveChatRoomSelfInfo:(ECModifyLiveChatRoomMemberInfoRequest *)request completion:(void ( ^ ) ( ECError *error , ECLiveChatRoomMember *member ))completion

Parameters

request

修改聊天室成员信息请求类

completion

回调

Declared In

ECLiveChatRoomManager.h

queryLiveChatRoomInfo:completion:

查询聊天室信息

- (void)queryLiveChatRoomInfo:(NSString *)roomId completion:(void ( ^ ) ( ECError *error , ECLiveChatRoomInfo *roomInfo ))completion

Parameters

roomId

聊天室id

completion

回调

Declared In

ECLiveChatRoomManager.h

queryLiveChatRoomMember:userId:completion:

查询聊天室单个成员

- (void)queryLiveChatRoomMember:(NSString *)roomId userId:(NSString *)userId completion:(void ( ^ ) ( ECError *error , ECLiveChatRoomMember *member ))completion

Parameters

roomId

聊天室id

userId

成员id

completion

回调

Declared In

ECLiveChatRoomManager.h

queryLiveChatRoomMembers:userId:pageSize:completion:

查询聊天室成员列表

- (void)queryLiveChatRoomMembers:(NSString *)roomId userId:(NSString *)userId pageSize:(NSInteger)pageSize completion:(void ( ^ ) ( ECError *error , NSArray<ECLiveChatRoomMember*> *userArray ))completion

Parameters

roomId

聊天室id

userId

成员id,默认nil(为第一页)

pageSize

页数

completion

回调

Declared In

ECLiveChatRoomManager.h

sendLiveChatRoomMessage:progress:completion:

发送聊天室消息

- (NSString *)sendLiveChatRoomMessage:(ECMessage *)message progress:(id<ECProgressDelegate>)progress completion:(void ( ^ ) ( ECError *error , ECMessage *message ))completion

Parameters

message

发送的消息

progress

发送进度代理

completion

执行结果回调block

Return Value

函数调用成功返回消息id,失败返回nil

Discussion

发送文本消息时,进度不生效;发送附件消息时,进度代理生效

Declared In

ECLiveChatRoomManager.h