XYVocieRoomCommonMethod.h 3.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. //
  2. // XYVocieRoomCommonMethod.h
  3. // Starbuds
  4. //
  5. // Created by 翟玉磊 on 2020/7/7.
  6. // Copyright © 2020 翟玉磊. All rights reserved.
  7. // 语音房模块常用方法 方便管理
  8. #import <Foundation/Foundation.h>
  9. NS_ASSUME_NONNULL_BEGIN
  10. /// 语音房列表布局格式
  11. typedef enum : NSUInteger {
  12. XYVoiceRoomListLayoutOneGraphic = 11, // 单列图文
  13. XYVoiceRoomListLayoutOneBigImage = 12, // 单列大图
  14. XYVoiceRoomListLayoutTwoBigImage = 21, // 两列大图
  15. } XYVoiceRoomListLayout;
  16. typedef enum : NSUInteger {
  17. XYVoiceRoomRoleAudience = 1, // 观众
  18. XYVoiceRoomRoleHost = 2, // 主持人
  19. XYVoiceRoomRoleMaster = 3, // 房管
  20. XYVoiceRoomRoleAdmin = 4, // 房主
  21. XYVoiceRoomRoleSuper = 5, // 超管
  22. XYVoiceRoomRoleOfficial = 99 // 管方
  23. } XYVoiceRoomRole;
  24. /// 语音房类型
  25. typedef enum : NSUInteger {
  26. XYVoiceRoomTypeCommon = 0, // 普通房
  27. XYVoiceRoomTypeLove = 101, // 相亲房
  28. XYVoiceRoomTypeOrder = 201, // 派单房
  29. XYVoiceRoomTypeAuction = 301, // 拍卖房
  30. XYVoiceRoomTypeVoiceLive = 302, // 个播房
  31. } XYVoiceRoomType;
  32. /// 相亲模式阶段
  33. typedef enum : NSUInteger {
  34. XYVoiceRoomLoveStageReady = 0, // 嘉宾上座
  35. XYVoiceRoomLoveStageIntro = 1, // 自我介绍
  36. XYVoiceRoomLoveStageStandard = 2, // 择偶标准
  37. XYVoiceRoomLoveStageQuestion = 3, // 真爱问答
  38. XYVoiceRoomLoveStageChoose = 4, // 心动选人
  39. XYVoiceRoomLoveStageMatch = 5, // 公布心动
  40. } XYVoiceRoomLoveStage;
  41. typedef enum : NSUInteger {
  42. MusicPlayStatusPlaying = 0, // 播放中
  43. MusicPlayStatusPaused, // 暂停
  44. MusicPlayStatusStopped, // 播放结束/停止
  45. MusicPlayStatusFailed, // 播放失败
  46. MusicPlayStatusClose, // 关闭播放器
  47. } MusicPlayStatus;
  48. typedef enum : NSUInteger {
  49. MusicPlayModeListLoop = 0, // 列表循环
  50. MusicPlayModeOneLoop, // 单曲循环
  51. MusicPlayModeRandom, // 随机播放
  52. } MusicPlayMode;
  53. typedef enum : NSUInteger {
  54. MusicDownloadListTypeHot, // 热门歌手
  55. MusicDownloadListTypeMyUpload, // 我的上传
  56. MusicDownloadListTypeMyDownload, // 最近下载
  57. } MusicDownloadListType;
  58. typedef enum : NSUInteger {
  59. XYVoiceRoomKFPKMatchStateNormal, // 默认状态
  60. XYVoiceRoomKFPKMatchStateIn, // 匹配中
  61. XYVoiceRoomKFPKMatchStateFailure, // 匹配失败(重新匹配状态)
  62. XYVoiceRoomKFPKMatchStatePeople, // 匹配到人(已发出邀请)
  63. XYVoiceRoomKFPKMatchStateSuccessful,// 匹配成功(进入PK)
  64. } XYVoiceRoomKFPKMatchState;
  65. // 拍卖状态
  66. typedef enum : NSUInteger {
  67. XYVoiceRoomAuctionStatueNormal, // 默认状态(没有竞拍人)
  68. XYVoiceRoomAuctionStatueSetuping, // 默认状态(没有竞拍人)
  69. XYVoiceRoomAuctionStatueIn, // 拍卖中
  70. XYVoiceRoomAuctionStatueFailure, // 流拍(播放完动画进入默认状态)
  71. XYVoiceRoomAuctionStatueSuccessful,// 拍卖成功(播放完动画进入默认状态)
  72. } XYVoiceRoomAuctionStatue;
  73. @interface XYVocieRoomCommonMethod : NSObject
  74. /// 根据角色类型获取该类型的文本
  75. + (NSString *)getVoiceRoomRoleTextWithRole:(XYVoiceRoomRole)role;
  76. /// 根据类型获取相亲房进程文本
  77. + (NSString *)getLoveProgressTextWithStage:(XYVoiceRoomLoveStage)stage;
  78. /// 获取相亲进程数组 numberYES则带序号1.~
  79. + (NSArray *)getLoveProgressTitleArrayWithNumber:(BOOL)number;
  80. @end
  81. NS_ASSUME_NONNULL_END