Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

64 lines (51 sloc) 1.659 kb
//
// OACall.h
// OAuthConsumer
//
// Created by Alberto García Hierro on 04/09/08.
// Copyright 2008 Alberto García Hierro. All rights reserved.
// bynotes.com
#import <Foundation/Foundation.h>
@class OAProblem;
@class OACall;
@protocol OACallDelegate
- (void)call:(OACall *)call failedWithError:(NSError *)error;
- (void)call:(OACall *)call failedWithProblem:(OAProblem *)problem;
@end
@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
files:(NSDictionary*)theFiles;
- (void)perform:(OAConsumer *)consumer
token:(OAToken *)token
realm:(NSString *)realm
delegate:(NSObject <OACallDelegate> *)aDelegate
didFinish:(SEL)finished;
@end
Jump to Line
Something went wrong with that request. Please try again.