//
//  TreeViewDataWebService.h
//  EAMNext
//
//  Created by Chris Snow on 12/11/17.
//

#import <Foundation/Foundation.h>
#import "TreeViewData.h"

@protocol TreeViewWebServiceDelegate <NSObject>
-(void)treeViewGridWebServiceDone:(BOOL)success head:(NSArray *)head data:(NSArray *)data moreRecord:(BOOL)moreRecord error:(NSString *)error;
@end


@class WebQuery;

@interface TreeViewDataWebService : NSObject {
    TreeViewData *treeViewDefinition;
}

@property (assign) id<TreeViewWebServiceDelegate> delegate;
@property (nonatomic, strong) WebQuery  *queryHandler;

-(void)setConnectionMode:(ConnectionMode)conMode;
-(void)downloadTreeViewGrid:(TreeViewData *)treeViewData startFrom:(NSInteger)position filterBy:(NSString *)filter;

@end

