//
//  InspectionResultDetailsModel.h
//  patrol
//
//  Created by 曹云霄 on 16/9/5.
//  Copyright © 2016年 上海勾芒科技有限公司. All rights reserved.
//

#import "JSONModel.h"

@class NewAnswers,NewDetails,RealStore;
@protocol  NewAnswers @end
@protocol  NewDetails @end



@interface InspectionResultDetailsModel : JSONModel



@property (nonatomic, assign) CGFloat score;

@property (nonatomic, copy) NSString *beginTime;

@property (nonatomic, copy) NSString *endTime;

@property (nonatomic, copy) NSString *store_uuid;

@property (nonatomic, copy) NSString *user_code;

@property (nonatomic, copy) NSString *store_code;

@property (nonatomic, copy) NSString *user_uuid;

@property (nonatomic, copy) NSString *user_name;

@property (nonatomic, copy) NSString *store_name;

@property (nonatomic, assign) NSInteger state;


@property (strong, nonatomic) RealStore<Optional> *realStore;

@property (nonatomic, strong) NSArray<NewAnswers> *answers;


@end

@interface NewAnswers : JSONModel

@property (nonatomic, copy) NSString *remark;

@property (nonatomic, copy) NSString *questionTitle;

@property (nonatomic, assign) NSString *score;

@property (nonatomic, copy) NSString *content;

@property (nonatomic, copy) NSString *questionCategory;

@property (nonatomic, assign) NSInteger orderNo;

@property (nonatomic, assign) BOOL answered;

@property (nonatomic, strong) NSArray<NewDetails> *details;

@property (nonatomic, strong) NSArray *resultAttachments;

@property (nonatomic, assign) NSInteger questionType;

/// questionTitle Height
@property (nonatomic, assign) CGFloat questionHeight;

/// remarkHeight
@property (nonatomic,assign) CGFloat remarkHeight;
/// contentHeight
/// formHeight
/// starHeight
@property (nonatomic,assign) CGFloat contentHeight;
/// resultAttachmentsHeight
@property (nonatomic,assign) CGFloat resultAttachmentsHeight;
/// detailsHeight
@property (nonatomic,assign) CGFloat detailsHeight;

/// starLine
@property (nonatomic,assign) NSInteger starLine;




@end

@interface NewDetails : JSONModel

@property (nonatomic, copy) NSString *stringValue;

@property (nonatomic, copy) NSString *questionScore;

@property (nonatomic, copy) NSString *productCode;

@property (nonatomic, copy) NSString *productName;

@property (nonatomic, copy) NSString *questionValue;

@property (nonatomic, copy) NSString *productUuid;

@property (nonatomic, assign) NSInteger numberValue;

@property (nonatomic, assign) NSInteger index;

@end

@interface RealStore : JSONModel

@property (nonatomic, copy) NSString<Optional> *name;

@property (nonatomic, copy) NSString<Optional> *code;

@property (nonatomic, copy) NSString<Optional> *uuid;
@end

