RAPhotoModel.h 931 B

123456789101112131415161718192021222324252627282930313233
  1. //
  2. // RAPhotoModel.h
  3. // Apex And Drivers
  4. //
  5. // Created by Jack on 2018/10/30.
  6. // Copyright © 2018年 USAI. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import "RAPhotoModelDelegate.h"
  10. #import "RAphotoLayoutDelegate.h"
  11. @class RAPhotoLayout,RAPhotoItemModel;
  12. @interface RAPhotoModel : NSObject <RAPhotoLayoutDelegate>
  13. @property (nonatomic,assign) NSInteger type;
  14. @property (nonatomic, copy) NSString *key;
  15. @property (nonatomic, copy) NSString *title;
  16. @property (nonatomic,assign) BOOL required;
  17. @property (nonatomic,assign) CGFloat width;
  18. @property (nonatomic,strong) NSArray<RAPhotoItemModel *> *photos;
  19. @property (nonatomic,assign,readonly) CGFloat height;
  20. @property (nonatomic,weak) id<RAPhotoModelDelegate> delegate;
  21. - (RAPhotoItemModel *)photoItemAtIndex:(NSUInteger)index;
  22. - (UIImage *)photoAtIndex:(NSUInteger)index;
  23. - (NSUInteger)photoCount;
  24. @end