//
//  ConnectToServer.h
//  AppyIslam
//
//  Created by Bhavesh virani on 17/06/14.
//  Copyright (c) 2014 Haresh. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

@protocol ConnectToServerDelegate
@optional
- (void) onResultWithData:(NSDictionary *)responseData;
- (void) onError;
@end

@interface ConnectToServer : NSObject{
    NSMutableData *receivedData;
}

@property (nonatomic, strong) NSMutableData* receivedData_get;
@property(nonatomic,retain)id<ConnectToServerDelegate>delegate;
@property(nonatomic,retain) NSString *command;
-(void)CallGetWithUrl:(NSString *)url ;
-(void)CallPostWithUrl:(NSString *)url andDataDictionary:(NSMutableDictionary*)dictionary;
-(void)CallGetURL:(NSString *)url parameters:(NSMutableDictionary *)params;
-(void)CallPostWithUrlForProfile:(NSString *)url andDataDictionary:(NSMutableDictionary*)dictionary andImages:(NSMutableArray *)Arr;
@end
