//
//  gatherUtil.h
//  Open
//
//  Created by 看看智能 on 2017/11/6.
//  Copyright © 2017年 黄江涛 . All rights reserved.
//

#import <Foundation/Foundation.h>
#import "gather.h"
typedef void(^NetWorkIsWorking)();

@protocol gatherUtilDelegate <NSObject>

-(void)sendFaceImage:(NSInteger )gatherNumber;



@end




@interface gatherUtil : NSObject


@property(nonatomic,weak)id <gatherUtilDelegate> delegate;
//编号
@property(nonatomic)NSInteger  index;
//路劲
@property(nonatomic,strong)NSString *docPath;
// 地址
@property(nonatomic,strong)NSString *address;


//保存数据的数组

//增加离线采集的数据
-(void)addDate:(gather*)gather;
//增加离线地址的数据
-( void)returnAddressDate:(gather *)gatherModel;

//删除指定的数据
-(void)deleteDate:(NSArray*)gatherModel;
//修改
-(void)updateDate;
//查询
-(NSArray*)checkDate;
-(NSArray *)readAddress;

-(instancetype)initWithGG;
//单例
+ (gatherUtil*)sharedInstance;


//判断网络状态不行直接返回NO

-(void)IsNetWork:(NetWorkIsWorking)completionHandle;


@end
