MOGiftInfo.h 2.3 KB

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