41 lines
1.2 KiB
Objective-C
41 lines
1.2 KiB
Objective-C
//
|
|
// YMRoomProtocol.h
|
|
// YUMI
|
|
//
|
|
// Created by YUMI on 2021/10/18.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@class RoomInfoModel;
|
|
@class UserInfoModel, NIMChatroom, FirstChargeRoomWindowModel;
|
|
|
|
@protocol XPRoomProtocol <NSObject>
|
|
|
|
- (void)initEnterRoomSuccess:(RoomInfoModel *)roomInfo user:(UserInfoModel *)userInfo;
|
|
///开启房间成功
|
|
- (void)openRoomSuccess:(RoomInfoModel *)roomInfo;
|
|
///进入房间成功
|
|
- (void)enterRoomSuccess:(NIMChatroom *)chatRoom;
|
|
///进入房间失败(当前获取用户信息、获取房间信息、开启房间、进入云信房间失败,均会导致进房失败)
|
|
- (void)enterRoomFail:(NSInteger)code;
|
|
///获取超管成功
|
|
- (void)getRoomSuperAdminScuccess:(NSArray *)list;
|
|
///获取下一个个播房成功
|
|
- (void)getNextAnchorRoomSuccess:(RoomInfoModel *)roomInfo;
|
|
///获取当前房间的信息
|
|
- (void)getCurrentRoomInfoSuccess:(RoomInfoModel *_Nullable)roomInfo;
|
|
///获取红包成功
|
|
- (void)getRedPacketSuccess:(NSArray *)list;
|
|
///获取首充弹窗
|
|
-(void)getRoomFirstChargeWindowSuccess:(FirstChargeRoomWindowModel*)model;
|
|
///屏蔽
|
|
-(void)requesstShieldingSuccess;
|
|
///获取免费礼物成功
|
|
-(void)getFreeGiftDataSuccess:(XPFreeGiftModel *)freeModel;
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|