Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 64 lines (51 sloc) 1.659 kb
01ce025 @jdg Add in extensions by Alberto Hierro (http://fi.am/)
authored
1 //
2 // OACall.h
3 // OAuthConsumer
4 //
5 // Created by Alberto García Hierro on 04/09/08.
6 // Copyright 2008 Alberto García Hierro. All rights reserved.
7 // bynotes.com
8
9 #import <Foundation/Foundation.h>
10
11 @class OAProblem;
12 @class OACall;
13
14 @protocol OACallDelegate
15
16 - (void)call:(OACall *)call failedWithError:(NSError *)error;
17 - (void)call:(OACall *)call failedWithProblem:(OAProblem *)problem;
18
19 @end
20
21 @class OAConsumer;
22 @class OAToken;
23 @class OADataFetcher;
24 @class OAMutableURLRequest;
25 @class OAServiceTicket;
26
27 @interface OACall : NSObject {
28 NSURL *url;
29 NSString *method;
30 NSArray *parameters;
31 NSDictionary *files;
32 NSObject <OACallDelegate> *delegate;
33 SEL finishedSelector;
34 OADataFetcher *fetcher;
35 OAMutableURLRequest *request;
36 OAServiceTicket *ticket;
37 }
38
39 @property(readonly) NSURL *url;
40 @property(readonly) NSString *method;
41 @property(readonly) NSArray *parameters;
42 @property(readonly) NSDictionary *files;
43 @property(nonatomic, retain) OAServiceTicket *ticket;
44
45 - (id)init;
46 - (id)initWithURL:(NSURL *)aURL;
47 - (id)initWithURL:(NSURL *)aURL method:(NSString *)aMethod;
48 - (id)initWithURL:(NSURL *)aURL parameters:(NSArray *)theParameters;
49 - (id)initWithURL:(NSURL *)aURL method:(NSString *)aMethod parameters:(NSArray *)theParameters;
50 - (id)initWithURL:(NSURL *)aURL parameters:(NSArray *)theParameters files:(NSDictionary*)theFiles;
51
52 - (id)initWithURL:(NSURL *)aURL
53 method:(NSString *)aMethod
54 parameters:(NSArray *)theParameters
55 files:(NSDictionary*)theFiles;
56
57 - (void)perform:(OAConsumer *)consumer
58 token:(OAToken *)token
59 realm:(NSString *)realm
60 delegate:(NSObject <OACallDelegate> *)aDelegate
61 didFinish:(SEL)finished;
62
63 @end
Something went wrong with that request. Please try again.