Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
64 lines (51 sloc) 1.62 KB
// OACall.h
// OAuthConsumer
// Created by Alberto García Hierro on 04/09/08.
// Copyright 2008 Alberto García Hierro. All rights reserved.
#import <Foundation/Foundation.h>
@class OAProblem;
@class OACall;
@protocol OACallDelegate
- (void)call:(OACall *)call failedWithError:(NSError *)error;
- (void)call:(OACall *)call failedWithProblem:(OAProblem *)problem;
@class OAConsumer;
@class OAToken;
@class OADataFetcher;
@class OAMutableURLRequest;
@class OAServiceTicket;
@interface OACall : NSObject {
NSURL *url;
NSString *method;
NSArray *parameters;
NSDictionary *files;
NSObject <OACallDelegate> *delegate;
SEL finishedSelector;
OADataFetcher *fetcher;
OAMutableURLRequest *request;
OAServiceTicket *ticket;
@property(readonly) NSURL *url;
@property(readonly) NSString *method;
@property(readonly) NSArray *parameters;
@property(readonly) NSDictionary *files;
@property(nonatomic, retain) OAServiceTicket *ticket;
- (id)init;
- (id)initWithURL:(NSURL *)aURL;
- (id)initWithURL:(NSURL *)aURL method:(NSString *)aMethod;
- (id)initWithURL:(NSURL *)aURL parameters:(NSArray *)theParameters;
- (id)initWithURL:(NSURL *)aURL method:(NSString *)aMethod parameters:(NSArray *)theParameters;
- (id)initWithURL:(NSURL *)aURL parameters:(NSArray *)theParameters files:(NSDictionary*)theFiles;
- (id)initWithURL:(NSURL *)aURL
method:(NSString *)aMethod
parameters:(NSArray *)theParameters
- (void)perform:(OAConsumer *)consumer
token:(OAToken *)token
realm:(NSString *)realm
delegate:(NSObject <OACallDelegate> *)aDelegate
Jump to Line
Something went wrong with that request. Please try again.