-
Notifications
You must be signed in to change notification settings - Fork 7
/
AFJSONRPCClient.h
executable file
·42 lines (33 loc) · 1.48 KB
/
AFJSONRPCClient.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//
// AFJSONRPCClient.h
// JustCommunication.com
//
// Created by [email protected] on 27.03.12.
// Copyright (c) 2012 JustCommunication. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "AFHTTPRequestOperation.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:(NSObject *)parameters
success:(void (^)(AFHTTPRequestOperation *operation, id responseObject))success
failure:(void (^)(AFHTTPRequestOperation *operation, NSError *error))failure;
- (void)invokeMethod:(NSString *)method
withParameters:(NSObject *)parameters
withRequestId:(NSString *)requestId
success:(void (^)(AFHTTPRequestOperation *operation, id responseObject))success
failure:(void (^)(AFHTTPRequestOperation *operation, NSError *error))failure;
- (NSMutableURLRequest *)requestWithMethod:(NSString *)method
parameters:(NSObject *)parameters
requestId:(NSString *)requestId;
@end