MORedSendConfigs.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. //
  2. // MORedSendConfigs.h
  3. //
  4. // Created by SuperCabbage on 2024/6/14
  5. // Copyright (c) 2024 __MyCompanyName__. All rights reserved.
  6. //
  7. #import <Foundation/Foundation.h>
  8. @interface MORedSendConfigs : NSObject <NSCoding, NSCopying>
  9. @property (nonatomic, assign) double maxNum;
  10. @property (nonatomic, assign) double minNum;
  11. /** 配置编号 */
  12. @property (nonatomic, assign) double code;
  13. /** 红包范围 */
  14. @property (nonatomic, assign) double scope;
  15. @property (nonatomic, assign) double maxAmount;
  16. @property (nonatomic, assign) double minAmount;
  17. /** 红包类型 */
  18. @property (nonatomic, assign) double type;
  19. @property (nonatomic, copy) NSArray *optionalNum;
  20. @property (nonatomic, assign) BOOL isSelect;
  21. @property (nonatomic, copy) NSString *iconName;//本地图片名称
  22. @property (nonatomic, assign) BOOL isCustom;//标记是自定义的配置
  23. @property (nonatomic, assign) NSInteger customAmountValue;//自定义的金额
  24. @property (nonatomic, assign) NSInteger customQuantityValue;//自定义的红包数量
  25. + (instancetype)modelObjectWithDictionary:(NSDictionary *)dict;
  26. - (instancetype)initWithDictionary:(NSDictionary *)dict;
  27. - (NSDictionary *)dictionaryRepresentation;
  28. @end