1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- //
- // XYVocieRoomCommonMethod.h
- // Starbuds
- //
- // Created by 翟玉磊 on 2020/7/7.
- // Copyright © 2020 翟玉磊. All rights reserved.
- // 语音房模块常用方法 方便管理
- #import <Foundation/Foundation.h>
- NS_ASSUME_NONNULL_BEGIN
- /// 语音房列表布局格式
- typedef enum : NSUInteger {
- XYVoiceRoomListLayoutOneGraphic = 11, // 单列图文
- XYVoiceRoomListLayoutOneBigImage = 12, // 单列大图
- XYVoiceRoomListLayoutTwoBigImage = 21, // 两列大图
- } XYVoiceRoomListLayout;
- typedef enum : NSUInteger {
- XYVoiceRoomRoleAudience = 1, // 观众
- XYVoiceRoomRoleHost = 2, // 主持人
- XYVoiceRoomRoleMaster = 3, // 房管
- XYVoiceRoomRoleAdmin = 4, // 房主
- XYVoiceRoomRoleSuper = 5, // 超管
- XYVoiceRoomRoleOfficial = 99 // 管方
- } XYVoiceRoomRole;
- /// 语音房类型
- typedef enum : NSUInteger {
- XYVoiceRoomTypeCommon = 0, // 普通房
- XYVoiceRoomTypeLove = 101, // 相亲房
- XYVoiceRoomTypeOrder = 201, // 派单房
- XYVoiceRoomTypeAuction = 301, // 拍卖房
- XYVoiceRoomTypeVoiceLive = 302, // 个播房
- } XYVoiceRoomType;
- /// 相亲模式阶段
- typedef enum : NSUInteger {
- XYVoiceRoomLoveStageReady = 0, // 嘉宾上座
- XYVoiceRoomLoveStageIntro = 1, // 自我介绍
- XYVoiceRoomLoveStageStandard = 2, // 择偶标准
- XYVoiceRoomLoveStageQuestion = 3, // 真爱问答
- XYVoiceRoomLoveStageChoose = 4, // 心动选人
- XYVoiceRoomLoveStageMatch = 5, // 公布心动
- } XYVoiceRoomLoveStage;
- typedef enum : NSUInteger {
- MusicPlayStatusPlaying = 0, // 播放中
- MusicPlayStatusPaused, // 暂停
- MusicPlayStatusStopped, // 播放结束/停止
- MusicPlayStatusFailed, // 播放失败
- MusicPlayStatusClose, // 关闭播放器
- } MusicPlayStatus;
- typedef enum : NSUInteger {
- MusicPlayModeListLoop = 0, // 列表循环
- MusicPlayModeOneLoop, // 单曲循环
- MusicPlayModeRandom, // 随机播放
- } MusicPlayMode;
- typedef enum : NSUInteger {
- MusicDownloadListTypeHot, // 热门歌手
- MusicDownloadListTypeMyUpload, // 我的上传
- MusicDownloadListTypeMyDownload, // 最近下载
- } MusicDownloadListType;
- typedef enum : NSUInteger {
- XYVoiceRoomKFPKMatchStateNormal, // 默认状态
- XYVoiceRoomKFPKMatchStateIn, // 匹配中
- XYVoiceRoomKFPKMatchStateFailure, // 匹配失败(重新匹配状态)
- XYVoiceRoomKFPKMatchStatePeople, // 匹配到人(已发出邀请)
- XYVoiceRoomKFPKMatchStateSuccessful,// 匹配成功(进入PK)
- } XYVoiceRoomKFPKMatchState;
- // 拍卖状态
- typedef enum : NSUInteger {
- XYVoiceRoomAuctionStatueNormal, // 默认状态(没有竞拍人)
- XYVoiceRoomAuctionStatueSetuping, // 默认状态(没有竞拍人)
- XYVoiceRoomAuctionStatueIn, // 拍卖中
- XYVoiceRoomAuctionStatueFailure, // 流拍(播放完动画进入默认状态)
- XYVoiceRoomAuctionStatueSuccessful,// 拍卖成功(播放完动画进入默认状态)
- } XYVoiceRoomAuctionStatue;
- @interface XYVocieRoomCommonMethod : NSObject
- /// 根据角色类型获取该类型的文本
- + (NSString *)getVoiceRoomRoleTextWithRole:(XYVoiceRoomRole)role;
- /// 根据类型获取相亲房进程文本
- + (NSString *)getLoveProgressTextWithStage:(XYVoiceRoomLoveStage)stage;
- /// 获取相亲进程数组 numberYES则带序号1.~
- + (NSArray *)getLoveProgressTitleArrayWithNumber:(BOOL)number;
- @end
- NS_ASSUME_NONNULL_END
|