123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123 |
- //
- // XYChatRoomInfoModel.h
- // Starbuds
- //
- // Created by 翟玉磊 on 2020/7/8.
- // Copyright © 2020 翟玉磊. All rights reserved.
- // 聊天室详情model
- #import <Foundation/Foundation.h>
- NS_ASSUME_NONNULL_BEGIN
- @class XYChatRoomSeatsUserModel, XYChatRoomSeatsModel, XYChatRoomRTCAuthInfoModel;
- @interface XYChatRoomInfoModel : NSObject
- @property (nonatomic, strong) NSArray <XYChatRoomSeatsModel *>*seats;
- @property (nonatomic, copy) NSString *roomWelcome;
- @property (nonatomic, copy) NSString *categoryName;
- @property (nonatomic, copy) NSString *roomNo;
- @property (nonatomic, copy) NSString *roomHeat;
- @property (nonatomic, assign) NSInteger *roomMicFre;
- @property (nonatomic, copy) NSString *userNo;
- @property (nonatomic, copy) NSString *userAvatar;
- @property (nonatomic, copy) NSString *roomName;
- @property (nonatomic, copy) NSString *roomId;
- @property (nonatomic, copy) NSString *userId;
- @property (nonatomic, copy) NSString *userName;
- @property (nonatomic, copy) NSString *roomHorizontalCover;
- @property (nonatomic, copy) NSString *roomCover;
- @property (nonatomic, assign) NSInteger backgroundId;
- @property (nonatomic, copy) NSString *backgroundUrl;
- @property (nonatomic, copy) NSString *backgroundName;
- /// 是否动态壁纸
- @property (nonatomic, assign) BOOL backgroundIsDynamic;
- @property (nonatomic, copy) NSString *dynamicFile;
- /// 玩法内容
- @property (nonatomic, copy) NSString *roomRule;
- @property (nonatomic, copy) NSString *categoryId;//"categoryId" : "9",为派单房
- @property (nonatomic, strong) NSDictionary *authInfo;
- @property (nonatomic, copy) NSString *roomPassword;
- @property (nonatomic, assign) XYVoiceRoomType roomType;
- /// 是否开启自由上麦
- @property (nonatomic, assign) BOOL roomMicFree;
- /// 是否房间已上锁
- @property (nonatomic, assign) BOOL needPass;
- /// 心动值开关
- @property (nonatomic, assign) BOOL roomScoreEnabled;
- /// 公屏开关
- @property (nonatomic, assign) BOOL roomChatEnabled;
- /// 相亲步骤
- @property (nonatomic, assign) NSInteger stage;
- /// 跨房Pk是否开启随机匹配
- @property (nonatomic, assign) BOOL battleMatchEnabled;
- @end
- @interface XYChatRoomSeatsModel : NSObject
- // 是否麦位加锁
- @property (nonatomic, assign) BOOL seatLocked;
- // 麦位序号
- @property (nonatomic, assign) NSInteger seatNo;
- // 心动值
- @property (nonatomic, assign) NSInteger seatScore;
- // pk值
- @property (nonatomic, assign) NSInteger battleScore;
- // 是否显示得分
- @property (nonatomic, assign) BOOL isShowScore;
- // 麦上用户信息 为nil则说明没有人上麦
- @property (nonatomic, strong) XYChatRoomSeatsUserModel *user;
- /// 主持人是否设为闭麦位
- @property (nonatomic, assign) BOOL micDisabled;
- /// 麦位上的用户是否自己静音
- @property (nonatomic, assign) BOOL micSilenced;
- /// 倒计时剩余秒数
- @property (nonatomic, assign) NSInteger countDownSeconds;
- /// 是否老板位
- @property (nonatomic, assign) BOOL bossSeat;
- /// 是否显示帽子 在相亲房使用 0不显示 1左边 2右边
- @property (nonatomic, assign) NSInteger showHat;
- /// 在选人阶段 YES已选择 NO反之
- @property (nonatomic, assign) BOOL loveChoseStatus;
- // 默认-1
- @property (nonatomic, assign) NSInteger loveChoseSeatNo;
- // -----一下收益列表使用-----
- @property (nonatomic, copy) NSString *timestamp;
- @end
- @interface XYChatRoomSeatsUserModel : XYUserModel
- @property (nonatomic, assign) XYVoiceRoomRole roomRole;
- /// 在送礼物的时候是否选中
- @property (nonatomic, assign) BOOL isSelected;
- /// 相亲房选人阶段是否选中
- @property (nonatomic, assign) BOOL loveChoicePeopleSelected;
- /// 头饰id
- @property (nonatomic, copy) NSString *headwearAnimationId;
- /// 头像上是否显示皇冠图标
- @property (nonatomic, assign) BOOL isCrown;
- // 当前用户的流id
- @property (nonatomic, copy) NSString *channelName;
- @end
- /// 加入房间的认证信息
- @interface XYChatRoomRTCAuthInfoModel : NSObject
- @property (nonatomic, copy) NSString *channelName;
- @property (nonatomic, copy) NSString *token;
- @property (nonatomic, copy) NSString *userNo;
- @end
- NS_ASSUME_NONNULL_END
|