MOGiftWishBase.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. //
  2. // MOGiftWishBase.h
  3. //
  4. // Created by SuperCabbage on 2023/11/22
  5. // Copyright (c) 2023 __MyCompanyName__. All rights reserved.
  6. //
  7. #import <Foundation/Foundation.h>
  8. @class MOGiftInfo;
  9. @interface MOGiftWishBase : NSObject <NSCoding, NSCopying>
  10. /** 心愿单 - 完成奖励金豆数 */
  11. @property (nonatomic, assign) double reward;
  12. @property (nonatomic, assign) double star;
  13. @property (nonatomic, strong) NSString *id;
  14. @property (nonatomic, strong) NSArray *rewards;
  15. @property (nonatomic, strong) MOGiftInfo *giftInfo;
  16. @property (nonatomic, assign) double maxAmount;
  17. @property (nonatomic, strong) NSArray *helpList;
  18. /** 心愿单 - 数量 */
  19. @property (nonatomic, assign) double num;
  20. @property (nonatomic, assign) BOOL done;
  21. /** 心愿单 - 是否满足赠送条件 */
  22. @property (nonatomic, assign) BOOL lock;
  23. /** 心愿单 - 完成量 */
  24. @property (nonatomic, assign) double complete;
  25. /** 主播中心 - 礼物数量 */
  26. @property (nonatomic, assign) double count;
  27. /** 主播中心 - 价值金豆 */
  28. @property (nonatomic, assign) double goldenBean;
  29. + (instancetype)modelObjectWithDictionary:(NSDictionary *)dict;
  30. - (instancetype)initWithDictionary:(NSDictionary *)dict;
  31. - (NSDictionary *)dictionaryRepresentation;
  32. @end