// // YMGiftInfoModel.h // YUMI // // Created by YUMI on 2021/11/11. // #import #import "GiftNobleInfoModel.h" #import "XPWeekStarRankUserModel.h" #import "i18nGiftNameMap.h" NS_ASSUME_NONNULL_BEGIN //礼物类型 typedef NS_ENUM(NSUInteger, GiftType) { GiftType_Game = 2, // 游戏轰趴礼物 GiftType_Lucky = 3, // 福袋礼物 GiftType_LuckyPool = 5, //福袋奖池礼物 GiftType_Noble = 7, // VIP礼物 GiftType_WeekStar = 8, //周星礼物 GiftType_Graffiti = 10, //涂鸦礼物 GiftType_Anchor = 11, //个播礼物 GiftType_Punish = 12, //惩罚礼物 GiftType_Twelve_Star = 13, //星座礼物 GiftType_super = 16, //幸运礼物 GiftType_Country = 17, //国家礼物 GiftType_Lucky24 = 18, //幸运24 }; //礼物类型 typedef NS_ENUM(NSUInteger, GiftSourceType) { GiftSourceType_Normal = 1, //普通礼物 GiftSourceType_Pack = 2, // 背包礼物 }; ///礼物播放类型(0 无, 1 MP4、VAP播放,2,pag动画播放) typedef NS_ENUM(NSUInteger, GiftOtherViewType) { GiftOtherViewTypeNormal = 0, GiftOtherViewTypeMp4 = 1, GiftOtherViewTypePag = 2, }; /** 赠送类型 1给主播直接刷礼物,2私聊送个人礼物,3房间内给坑位上的人送礼物,5.公聊大厅给人送礼物 - GameRoomSendType_Room: 给主播直接刷礼物 - GameRoomSendType_Chat: 2私聊送个人礼物 - GameRoomSendType_OnMic: 3房间内给坑位上的人送礼物 - GameRoomSendType_PublicChat: 公聊大厅给人送礼物 - GameRoomSendType_Team 群聊礼物 */ typedef NS_ENUM(NSUInteger, GiftSendType) { GiftSendType_Room = 1,///zho GiftSendType_Chat = 2, GiftSendType_OnMic = 3, }; /** 送礼物的类型,1全麦,2多人非全麦,3个人送礼w - GameRoomSendGiftType_AllMic: 全麦 - GameRoomSendGiftType_MutableOnMic: 多人w非全麦 - GameRoomSendGiftType_ToOne: 对个人送礼 */ typedef NS_ENUM(NSUInteger, RoomSendGiftType) { RoomSendGiftType_AllMic, RoomSendGiftType_MutableOnMic, RoomSendGiftType_ToOne, }; @interface GiftInfoModel : PIBaseModel ///礼物id @property (nonatomic, assign)NSInteger giftId; ///礼物名字 @property (nonatomic, strong)NSString *giftName; @property(nonatomic,copy) NSString *giftNum; ///价格 @property (nonatomic, assign)double goldPrice; ///礼物url @property (nonatomic, copy)NSString *giftUrl; ///福袋svagUrl @property (nonatomic, copy)NSString *luckyGiftSvgaUrl; ///玩法说明Url @property (nonatomic, copy)NSString *giftExplainUrl; @property (nonatomic, assign) GiftType giftType;//礼物类型 ///是否有vgg特效 @property (assign, nonatomic) BOOL hasVggPic; ///动效url @property (copy, nonatomic) NSString *vggUrl; ///是否最新 @property (assign, nonatomic) BOOL hasLatest; ///是否限时 @property (assign, nonatomic) BOOL hasTimeLimit; ///是否特效 @property (assign, nonatomic) BOOL hasEffect; ///是否是房间专属礼物 @property (assign, nonatomic) BOOL roomExclude; ///是否支持发广播 @property (nonatomic,assign) BOOL isSendMsg; ///礼物文件类型 0 其他, 1 mp4 @property (nonatomic, assign) GiftOtherViewType otherViewType; ///mp4类型特效url @property (nonatomic, copy) NSString *viewUrl; /**------------- 礼物背包 ----------------**/ ///个数 @property (nonatomic, assign) NSInteger count; @property (nonatomic, assign) NSInteger reciveCount; //isSelected 用于本地修改 @property (nonatomic,assign) BOOL isSelected;//是否被选中 ///礼物来源 @property (nonatomic,assign) GiftSourceType sourceType; ///VIP礼物专属信息 @property (nonatomic, strong) GiftNobleInfoModel *giftVipInfo; /*----------周星礼物--------*/ ///上周周星礼物ID @property (nonatomic, assign) NSInteger lastGiftId; ///上周对应礼物的魅力榜第一 @property (nonatomic, strong) XPWeekStarRankUserModel *firstCharmRankUser; ///上周对应礼物豪气榜第一 @property (nonatomic, strong) XPWeekStarRankUserModel *firstLevelRankUser; @property (nonatomic,assign) BOOL isEmpty; //超级幸运礼物新增字段 @property(nonatomic,copy) NSString *bannerUrl; @property(nonatomic,copy) NSString *skipUrl; @property (nonatomic, strong) i18nGiftNameMap *i18nGiftNameMap; @end @interface GiftPanelTabModel : PIBaseModel /// 标题, 同时也是礼物类型 @property (nonatomic, copy) NSString *key; /// 排序 @property (nonatomic, assign) NSInteger seq; ///多语言标题 @property (nonatomic, strong) i18nGiftNameMap *nameMap; @property (nonatomic, copy) NSArray *gifts; - (GiftType)tabGiftType; @end //@interface GiftPanelModel : PIBaseModel //@property (nonatomic, copy) NSArray *tabList; //@end NS_ASSUME_NONNULL_END