Permalink
Browse files

Refactor block names

  • Loading branch information...
1 parent 8205a3c commit ad06692b3507ac9b84220b057a26588141404aae @GlennChiu committed Oct 25, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 GCHTTPRequestOperation.m
View
@@ -103,10 +103,10 @@ @implementation GCHTTPRequestOperation
GCOperationState _operationState;
- void(^_completion_block)(NSData *data, NSHTTPURLResponse *response);
- void(^_error_block)(NSData *data, NSHTTPURLResponse *response, NSError *error);
- void(^_downloadProgressBlock)(NSUInteger bytesRead, NSUInteger totalBytesRead, NSUInteger totalBytesExpectedToRead);
- void(^_uploadProgressBlock)(NSUInteger bytesWritten, NSUInteger totalBytesWritten, NSUInteger totalBytesExpectedToWrite);
+ void(^_completion_block)(NSData *, NSHTTPURLResponse *);
+ void(^_error_block)(NSData *, NSHTTPURLResponse *, NSError *);
+ void(^_downloadProgressBlock)(NSUInteger, NSUInteger, NSUInteger);
+ void(^_uploadProgressBlock)(NSUInteger, NSUInteger, NSUInteger);
}
+ (GCHTTPRequestOperation *)HTTPRequest:(GCNetworkRequest *)networkRequest callBackQueue:(dispatch_queue_t)queue completionHandler:(void(^)(NSData *data, NSHTTPURLResponse *response))completionBlock errorHandler:(void(^)(NSData *data, NSHTTPURLResponse *response, NSError *error))errorBlock

0 comments on commit ad06692

Please sign in to comment.