Skip to content

Commit

Permalink
Refactor block names
Browse files Browse the repository at this point in the history
  • Loading branch information
GlennChiu committed Oct 25, 2012
1 parent 8205a3c commit ad06692
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions GCHTTPRequestOperation.m
Expand Up @@ -103,10 +103,10 @@ @implementation GCHTTPRequestOperation


GCOperationState _operationState; GCOperationState _operationState;


void(^_completion_block)(NSData *data, NSHTTPURLResponse *response); void(^_completion_block)(NSData *, NSHTTPURLResponse *);
void(^_error_block)(NSData *data, NSHTTPURLResponse *response, NSError *error); void(^_error_block)(NSData *, NSHTTPURLResponse *, NSError *);
void(^_downloadProgressBlock)(NSUInteger bytesRead, NSUInteger totalBytesRead, NSUInteger totalBytesExpectedToRead); void(^_downloadProgressBlock)(NSUInteger, NSUInteger, NSUInteger);
void(^_uploadProgressBlock)(NSUInteger bytesWritten, NSUInteger totalBytesWritten, NSUInteger totalBytesExpectedToWrite); 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 + (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
Expand Down

0 comments on commit ad06692

Please sign in to comment.