Files
peko-ios/YuMi/Modules/YMRoom/View/SendGiftView/Model/GiftInfoModel.h
2023-09-21 17:44:59 +08:00

125 lines
3.8 KiB
Objective-C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//
// YMGiftInfoModel.h
// YUMI
//
// Created by YUMI on 2021/11/11.
//
#import <Foundation/Foundation.h>
#import "GiftNobleInfoModel.h"
#import "XPWeekStarRankUserModel.h"
NS_ASSUME_NONNULL_BEGIN
//礼物类型
typedef NS_ENUM(NSUInteger, GiftType) {
GiftType_Game = 2, // 游戏轰趴礼物
GiftType_Lucky = 3, // 福袋礼物
GiftType_LuckyPool = 5, //福袋奖池礼物
GiftType_Noble = 7, // 贵族礼物
GiftType_WeekStar = 8, //周星礼物
GiftType_Graffiti = 10, //涂鸦礼物
GiftType_Anchor = 11, //个播礼物
GiftType_Punish = 12, //惩罚礼物
GiftType_Twelve_Star = 13, //星座礼物
};
//礼物类型
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 : NSObject
///礼物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;
///贵族礼物专属信息
@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;
@end
NS_ASSUME_NONNULL_END