//
//  HttpClient.h
//  zhuxun
//
//  Created by 张建伟 on 15/4/7.
//  Copyright (c) 2015年 张建伟. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <AFNetworking/AFNetworking.h>
typedef enum {
    Get = 0,
    Post,
    Put,
    Delete
} NetworkMethod;

@interface HttpClient : NSObject

+ (id)sharedJsonClient;
+ (void)saveCookieData;
+ (void)removeCookieData;


- (void)requestJsonDataWithPath:(NSString *)aPath
                     withParams:(id)params
                 withMethodType:(int)NetworkMethod
                       andBlock:(void (^)(id data, NSError *error))block;

- (void)cloudStorageRequestJsonDataWithPath:(NSString *)aPath
                     withParams:(id)params
                 withMethodType:(int)NetworkMethod
                       andBlock:(void (^)(id data, NSError *error))block;


- (void)cloudStorageDownUpJsonDataWithPath:(NSString *)aPath
                                 withParams:(id)params
                             withMethodType:(int)NetworkMethod
                                   andBlock:(void (^)(id data, NSError *error))block;
//- (void)reportIllegalContentWithType:(IllegalContentType)type
//                          withParams:(NSDictionary*)params;



//请求用户状态
-(void)postRequestToUrl:(NSString *)url netWorkMethod:(int)networkMethod aPath:(NSString *)path WithParams:(id)params complete:(void (^)(BOOL successed,NSDictionary *result))complete;


@end
