Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
44 lines (34 sloc) 1.5 KB
//
// AFJSONRPCClient.h
// Japancar
//
// Created by wiistriker@gmail.com on 27.03.12.
// Copyright (c) 2012 JustCommunication. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "AFHTTPRequestOperation.h"
#import "AFJSONRequestOperation.h"
@interface AFJSONRPCClient : NSObject {
@private
NSURL *_endpointURL;
NSOperationQueue *_operationQueue;
}
@property (nonatomic, retain) NSURL *endpointURL;
@property (nonatomic, retain) NSOperationQueue *operationQueue;
- (id)initWithURL:(NSURL *)url;
- (void)invokeMethod:(NSString *)method
success:(void (^)(AFHTTPRequestOperation *operation, id responseObject))success
failure:(void (^)(AFHTTPRequestOperation *operation, NSError *error))failure;
- (void)invokeMethod:(NSString *)method
withParameters:(NSArray *)parameters
success:(void (^)(AFHTTPRequestOperation *operation, id responseObject))success
failure:(void (^)(AFHTTPRequestOperation *operation, NSError *error))failure;
- (void)invokeMethod:(NSString *)method
withParameters:(NSArray *)parameters
withRequestId:(NSString *)requestId
success:(void (^)(AFHTTPRequestOperation *operation, id responseObject))success
failure:(void (^)(AFHTTPRequestOperation *operation, NSError *error))failure;
- (NSMutableURLRequest *)requestWithMethod:(NSString *)method
parameters:(NSArray *)parameters
requestId:(NSString *)requestId;
@end
Something went wrong with that request. Please try again.