XYChatRoomInfoModel.h 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. //
  2. // XYChatRoomInfoModel.h
  3. // Starbuds
  4. //
  5. // Created by 翟玉磊 on 2020/7/8.
  6. // Copyright © 2020 翟玉磊. All rights reserved.
  7. // 聊天室详情model
  8. #import <Foundation/Foundation.h>
  9. NS_ASSUME_NONNULL_BEGIN
  10. @class XYChatRoomSeatsUserModel, XYChatRoomSeatsModel, XYChatRoomRTCAuthInfoModel;
  11. @interface XYChatRoomInfoModel : NSObject
  12. @property (nonatomic, strong) NSArray <XYChatRoomSeatsModel *>*seats;
  13. @property (nonatomic, copy) NSString *roomWelcome;
  14. @property (nonatomic, copy) NSString *categoryName;
  15. @property (nonatomic, copy) NSString *roomNo;
  16. @property (nonatomic, copy) NSString *roomHeat;
  17. @property (nonatomic, assign) NSInteger *roomMicFre;
  18. @property (nonatomic, copy) NSString *userNo;
  19. @property (nonatomic, copy) NSString *userAvatar;
  20. @property (nonatomic, copy) NSString *roomName;
  21. @property (nonatomic, copy) NSString *roomId;
  22. @property (nonatomic, copy) NSString *userId;
  23. @property (nonatomic, copy) NSString *userName;
  24. @property (nonatomic, copy) NSString *roomHorizontalCover;
  25. @property (nonatomic, copy) NSString *roomCover;
  26. @property (nonatomic, assign) NSInteger backgroundId;
  27. @property (nonatomic, copy) NSString *backgroundUrl;
  28. @property (nonatomic, copy) NSString *backgroundName;
  29. /// 是否动态壁纸
  30. @property (nonatomic, assign) BOOL backgroundIsDynamic;
  31. @property (nonatomic, copy) NSString *dynamicFile;
  32. /// 玩法内容
  33. @property (nonatomic, copy) NSString *roomRule;
  34. @property (nonatomic, copy) NSString *categoryId;//"categoryId" : "9",为派单房
  35. @property (nonatomic, strong) NSDictionary *authInfo;
  36. @property (nonatomic, copy) NSString *roomPassword;
  37. @property (nonatomic, assign) XYVoiceRoomType roomType;
  38. /// 是否开启自由上麦
  39. @property (nonatomic, assign) BOOL roomMicFree;
  40. /// 是否房间已上锁
  41. @property (nonatomic, assign) BOOL needPass;
  42. /// 心动值开关
  43. @property (nonatomic, assign) BOOL roomScoreEnabled;
  44. /// 公屏开关
  45. @property (nonatomic, assign) BOOL roomChatEnabled;
  46. /// 相亲步骤
  47. @property (nonatomic, assign) NSInteger stage;
  48. /// 跨房Pk是否开启随机匹配
  49. @property (nonatomic, assign) BOOL battleMatchEnabled;
  50. @end
  51. @interface XYChatRoomSeatsModel : NSObject
  52. // 是否麦位加锁
  53. @property (nonatomic, assign) BOOL seatLocked;
  54. // 麦位序号
  55. @property (nonatomic, assign) NSInteger seatNo;
  56. // 心动值
  57. @property (nonatomic, assign) NSInteger seatScore;
  58. // pk值
  59. @property (nonatomic, assign) NSInteger battleScore;
  60. // 是否显示得分
  61. @property (nonatomic, assign) BOOL isShowScore;
  62. // 麦上用户信息 为nil则说明没有人上麦
  63. @property (nonatomic, strong) XYChatRoomSeatsUserModel *user;
  64. /// 主持人是否设为闭麦位
  65. @property (nonatomic, assign) BOOL micDisabled;
  66. /// 麦位上的用户是否自己静音
  67. @property (nonatomic, assign) BOOL micSilenced;
  68. /// 倒计时剩余秒数
  69. @property (nonatomic, assign) NSInteger countDownSeconds;
  70. /// 是否老板位
  71. @property (nonatomic, assign) BOOL bossSeat;
  72. /// 是否显示帽子 在相亲房使用 0不显示 1左边 2右边
  73. @property (nonatomic, assign) NSInteger showHat;
  74. /// 在选人阶段 YES已选择 NO反之
  75. @property (nonatomic, assign) BOOL loveChoseStatus;
  76. // 默认-1
  77. @property (nonatomic, assign) NSInteger loveChoseSeatNo;
  78. // -----一下收益列表使用-----
  79. @property (nonatomic, copy) NSString *timestamp;
  80. @end
  81. @interface XYChatRoomSeatsUserModel : XYUserModel
  82. @property (nonatomic, assign) XYVoiceRoomRole roomRole;
  83. /// 在送礼物的时候是否选中
  84. @property (nonatomic, assign) BOOL isSelected;
  85. /// 相亲房选人阶段是否选中
  86. @property (nonatomic, assign) BOOL loveChoicePeopleSelected;
  87. /// 头饰id
  88. @property (nonatomic, copy) NSString *headwearAnimationId;
  89. /// 头像上是否显示皇冠图标
  90. @property (nonatomic, assign) BOOL isCrown;
  91. // 当前用户的流id
  92. @property (nonatomic, copy) NSString *channelName;
  93. @end
  94. /// 加入房间的认证信息
  95. @interface XYChatRoomRTCAuthInfoModel : NSObject
  96. @property (nonatomic, copy) NSString *channelName;
  97. @property (nonatomic, copy) NSString *token;
  98. @property (nonatomic, copy) NSString *userNo;
  99. @end
  100. NS_ASSUME_NONNULL_END