//
//  WebQueryResponse.h
//  EAMNext
//


#import <Foundation/Foundation.h>
#import "GridData.h"
#import "WebQueryParameters.h"

NS_ASSUME_NONNULL_BEGIN


typedef enum {
    WebQueryRequestTypeGetModel = 0,
    WebQueryRequestTypeGetModelDefault,
    WebQueryRequestTypeGetGrid,
    WebQueryRequestTypeAdd,
    WebQueryRequestTypeSync,
    WebQueryRequestTypeDelete,
    WebQueryRequestTypeRunRequest = 6,
    WebQueryRequestTypeRollback = 7,
}  WebQueryRequestType;


@interface WebQueryResponse : NSObject

@property (nonatomic)         WebQueryRequestType type;
@property (nonatomic, strong) NSString *sessionID;
@property (nonatomic, strong) NSArray *models;
@property (nonatomic, strong) NSString *modelName;
@property (nonatomic, strong) GridData *gridData;
@property (nonatomic, strong) NSString *gridName;
@property (nonatomic, strong) NSArray *data;
@property (nonatomic, strong) NSString *entityName;
@property (nonatomic, strong) NSData *fileBytes;
@property (nonatomic, strong) NSString *file;
@property (nonatomic, strong) NSString *fault;
@property (nonatomic, strong) NSString *fieldRef;
@property (nonatomic, strong) WebQueryParameters *parameters;

@end

NS_ASSUME_NONNULL_END

