ModelImage.h 839 B

1234567891011121314151617181920212223242526272829
  1. //
  2. // ModelImage.h
  3. //
  4. // Created by on 2018/3/28
  5. // Copyright (c) 2018 __MyCompanyName__. All rights reserved.
  6. //
  7. #import <Foundation/Foundation.h>
  8. //base image
  9. #import "BaseImage.h"
  10. @interface ModelImage : NSObject
  11. @property (nonatomic, assign) double width;
  12. @property (nonatomic, assign) double number;
  13. @property (nonatomic, assign) double height;
  14. @property (nonatomic, assign) double sort;
  15. @property (nonatomic, strong) NSString *desc;
  16. @property (nonatomic, strong) NSString *url;
  17. @property (nonatomic, strong) NSString *title;
  18. @property (nonatomic, strong) NSString *thumbUrl;
  19. @property (nonatomic,strong) BaseImage * image;
  20. + (instancetype)modelObjectWithDictionary:(NSDictionary *)dict;
  21. - (instancetype)initWithDictionary:(NSDictionary *)dict;
  22. - (NSDictionary *)dictionaryRepresentation;
  23. @end