MOGiftlist.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. //
  2. // MOGiftlist.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 MOGiftInfo,MOEffect;
  9. @interface MOGiftlist : NSObject <NSCoding, NSCopying>
  10. @property (nonatomic, strong) MOGiftInfo *giftInfo;
  11. @property (nonatomic, assign) BOOL lock;
  12. /** 是否被选中 */
  13. @property (nonatomic, assign) BOOL isSelect;
  14. /** 礼物数量 */
  15. @property (nonatomic, assign) double amount;
  16. /** 个人信息界面收到的礼物 */
  17. @property (nonatomic, strong) MOEffect *effect;
  18. /** 背包 */
  19. @property (nonatomic, strong) MOEffect *store;
  20. @property (nonatomic, strong) NSString *id;
  21. @property (nonatomic, assign) BOOL isBag;
  22. /** 礼物连接时, 用于记录每500ms间隔点击了多少下按钮 */
  23. @property (nonatomic, assign) NSInteger tempNum;
  24. /** 每当一个种类礼物连击的次数, 如果礼物的id变化, 会立马触发Rtm消息发送, 并开始记录下个礼物连接的数量 */
  25. @property (nonatomic, assign) NSInteger endGiftNum;
  26. /** V2 改版 */
  27. @property (nonatomic, assign) double basicExp;// 基础经验值
  28. @property (nonatomic, assign) double additionExp;// 附加经验值
  29. @property (nonatomic, strong) NSString *nameingAvatar;//冠名头像
  30. @property (nonatomic, assign) BOOL newUnlock;//新解锁
  31. @property (nonatomic, assign) BOOL newGet;//新活动 (背包)
  32. @property (nonatomic, assign) double expireTime;//过期时间 (背包)
  33. + (instancetype)modelObjectWithDictionary:(NSDictionary *)dict;
  34. - (instancetype)initWithDictionary:(NSDictionary *)dict;
  35. - (NSDictionary *)dictionaryRepresentation;
  36. @end