OrderMessageModel.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. //
  2. // OrderMessageModel.h
  3. // yunbaolive
  4. //
  5. // Created by ybRRR on 2020/3/31.
  6. // Copyright © 2020 cat. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #define __TEXT_FONT__ [UIFont systemFontOfSize:16]
  10. #define __TIME_FONT__ [UIFont systemFontOfSize:10]
  11. #define __ICON_WIDTH__ 40
  12. //内边距
  13. #define __EDGE_W__ 15
  14. NS_ASSUME_NONNULL_BEGIN
  15. @interface OrderMessageModel : NSObject
  16. //应该展示的数据
  17. @property(nonatomic,copy)NSString *time;
  18. @property(nonatomic,copy)NSString *text;
  19. @property(nonatomic,copy)NSString *type;
  20. @property(nonatomic,copy)NSString *icon;
  21. @property(nonatomic,copy)NSString *orderid;
  22. @property(nonatomic,copy)NSString *status;
  23. @property(nonatomic,copy)NSString *is_commission;
  24. //应该展示的坐标
  25. @property(nonatomic,assign)CGRect timeR;
  26. @property(nonatomic,assign)CGRect textR;
  27. @property(nonatomic,assign)CGRect iconR;
  28. @property(nonatomic,assign)CGFloat rowH;
  29. -(void)setMessageFrame:(OrderMessageModel *)upMessage;
  30. -(instancetype)initWithDic:(NSDictionary *)subdic;
  31. +(instancetype)messageWithDic:(NSDictionary *)subdic;
  32. @end
  33. NS_ASSUME_NONNULL_END