| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- //
- // MOGiftInfo.h
- //
- // Created by SuperCabbage on 2023/11/24
- // Copyright (c) 2023 __MyCompanyName__. All rights reserved.
- //
- #import <Foundation/Foundation.h>
- @class MOEffect,MOGiftCornerMark,MOStripe,MOBlindboxLottery;
- @interface MOGiftInfo : NSObject <NSCoding, NSCopying>
- @property (nonatomic, strong) MOEffect *effect;
- @property (nonatomic, strong) NSString *giftPath;
- @property (nonatomic, strong) NSString *id;
- @property (nonatomic, assign) BOOL luckyGift;
- @property (nonatomic, strong) NSString *giftSource;
- @property (nonatomic, strong) NSString *giftName;
- @property (nonatomic, assign) double diamond;
- @property (nonatomic, assign) double giftCode;
- @property (nonatomic, assign) BOOL blindBoxGift;//是否盲盒礼物
- @property (nonatomic, assign) BOOL antiDrillCritGift;//是否暴击返钻礼物
- //@property (nonatomic, assign) BOOL animation;
- /** 特效类型 礼物(0=无动效,1=SVGA,2=第三方绑定动效,3=动态WEBP,4=VAP)
- 道具 (0=无资源文件,1=动态webp,2=SGVA,3=VAP,4=Mp4,5=火山Ar礼物)*/
- @property (nonatomic, assign) double effectType;
- /** 角标 */
- @property (nonatomic, strong) MOGiftCornerMark *giftCornerMark;
- //临时属性
- /** 返钻倍数 */
- @property (nonatomic, assign) double rebateMultiple;
- /** 返钻数量 */
- @property (nonatomic, assign) double rebateDiamond;
- /** 礼物数量 */
- @property (nonatomic, assign) double num;
- @property (nonatomic, strong, nullable) MOEffect *selectSkin;//当前选中的皮肤 (礼物支持多皮肤时)
- /** 目标用户的名字, 用,号拼接 */
- @property (nonatomic, strong) NSArray *multipleUserList;
- /** V2 改版 */
- @property (nonatomic, strong) MOEffect *skin;//礼物存储返回参数
- @property (nonatomic, strong) NSArray *skins;//礼物存储返回参数
- @property (nonatomic, assign) double diyGiftNumberMax;//最大礼物倍数.ps: 0=不允许自定义
- @property (nonatomic, assign) double valueLevel;//价值等级(0=低,1=中,2=高)
- @property (nonatomic, strong) MOStripe *stripe;//礼物磁条信息
- @property (nonatomic, strong) MOBlindboxLottery *blindboxLottery;
- @property (nonatomic, assign) NSInteger hitDiamond;
- + (instancetype)modelObjectWithDictionary:(NSDictionary *)dict;
- - (instancetype)initWithDictionary:(NSDictionary *)dict;
- - (NSDictionary *)dictionaryRepresentation;
- @end
|