renamed classes and files

This commit is contained in:
Andrew Stephan
2014-03-26 14:43:17 -04:00
parent 78dcc361ca
commit 3f4b0b129c
8 changed files with 37 additions and 37 deletions
@@ -78,7 +78,7 @@
NSString *url = [command.arguments objectAtIndex:0];
NSDictionary *parameters = [command.arguments objectAtIndex:1];
CordovaHTTP* __weak weakSelf = self;
CordovaHttpPlugin* __weak weakSelf = self;
[manager POST:url parameters:parameters success:^(AFHTTPRequestOperation *operation, id responseObject) {
NSMutableDictionary *dictionary = [NSMutableDictionary dictionary];
@@ -100,7 +100,7 @@
NSString *url = [command.arguments objectAtIndex:0];
NSDictionary *parameters = [command.arguments objectAtIndex:1];
CordovaHTTP* __weak weakSelf = self;
CordovaHttpPlugin* __weak weakSelf = self;
[manager GET:url parameters:parameters success:^(AFHTTPRequestOperation *operation, id responseObject) {
NSMutableDictionary *dictionary = [NSMutableDictionary dictionary];
@@ -126,7 +126,7 @@
NSURL *fileURL = [NSURL fileURLWithPath: filePath];
CordovaHTTP* __weak weakSelf = self;
CordovaHttpPlugin* __weak weakSelf = self;
[manager POST:url parameters:parameters constructingBodyWithBlock:^(id<AFMultipartFormData> formData) {
NSError *error;
[formData appendPartWithFileURL:fileURL name:name error:&error];
@@ -159,7 +159,7 @@
NSDictionary *parameters = [command.arguments objectAtIndex:1];
NSString *filePath = [command.arguments objectAtIndex: 2];
CordovaHTTP* __weak weakSelf = self;
CordovaHttpPlugin* __weak weakSelf = self;
[manager GET:url parameters:parameters success:^(AFHTTPRequestOperation *operation, id responseObject) {
/*
*
+2 -2
View File
@@ -23,10 +23,10 @@
@implementation HttpManager
+ (instancetype)sharedClient {
static HTTPManager *_sharedClient = nil;
static HttpManager *_sharedClient = nil;
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
_sharedClient = [HTTPManager manager];
_sharedClient = [HttpManager manager];
});
return _sharedClient;