//
//  NetworkUtils.h
//  AntsContract
//
//  Created by Ray on 12/26/16.
//  Copyright © 2016 United Software Applications, Inc. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "const.h"
typedef NSMutableDictionary*(^resultBlock)(NSMutableDictionary* result);
typedef NSMutableDictionary*(^decryptBlock)(NSMutableDictionary* result);

@interface NetworkUtils : NSObject
+(bool) IsNetworkAvailable;
+(NSData*)get_json : (NSString*) url parameters:(NSMutableDictionary *) params err_recorder:(NSString* )recorder_url result_handler:(resultBlock)resultBlock decrypt_handler:(decryptBlock)decryptBlock;
+(NSDictionary*)err_log:(NSString*) up_params result:(NSString*)result module:(NSString*) module code:(int) code;
@end
