// // RAEditMultPhotoModel.m // Apex And Drivers // // Created by Jack on 2018/10/30. // Copyright © 2018年 USAI. All rights reserved. // #import "RAEditMultPhotoModel.h" #import "RAPhotoModel.h" @interface RAEditMultPhotoModel() @property (nonatomic,strong) RAPhotoModel *mapModle; @end @implementation RAEditMultPhotoModel - (RAPhotoModel *)mapModle { if (!_mapModle) { _mapModle = [RAPhotoModel new]; } return _mapModle; } #pragma mark - Setter - (void)setValuesForKeysWithDictionary:(NSDictionary *)keyedValues { [self.mapModle setValuesForKeysWithDictionary:keyedValues]; } - (void)setWidth:(CGFloat)width { self.mapModle.width = width; } #pragma mark - Getter - (RAEditType)type { return (RAEditType)self.mapModle.type; } - (NSString *)title { return self.mapModle.title; } - (NSString *)key { return self.mapModle.key; } - (BOOL)required { return self.mapModle.required; } - (CGFloat)height { return self.mapModle.height; } - (RAPhotoModel *)model { return self.mapModle; } - (NSUInteger)photoCount { return self.mapModle.photoCount; } - (UIImage *)photoForIndex:(NSUInteger)index { return [self.mapModle photoAtIndex:index]; } @end