Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 54 lines (43 sloc) 1.257 kb
01ce025 @jdg Add in extensions by Alberto Hierro (http://fi.am/)
authored
1 //
2 // OAProblem.h
3 // OAuthConsumer
4 //
5 // Created by Alberto García Hierro on 03/09/08.
6 // Copyright 2008 Alberto García Hierro. All rights reserved.
7 // bynotes.com
8
9 #import <Foundation/Foundation.h>
10
11 enum {
12 kOAProblemSignatureMethodRejected = 0,
13 kOAProblemParameterAbsent,
14 kOAProblemVersionRejected,
15 kOAProblemConsumerKeyUnknown,
16 kOAProblemTokenRejected,
17 kOAProblemSignatureInvalid,
18 kOAProblemNonceUsed,
19 kOAProblemTimestampRefused,
20 kOAProblemTokenExpired,
21 kOAProblemTokenNotRenewable
22 };
23
24 @interface OAProblem : NSObject {
9b1db6c @adamjernst Fix a number of terrifying memory management errors.
adamjernst authored
25 NSString *problem;
01ce025 @jdg Add in extensions by Alberto Hierro (http://fi.am/)
authored
26 }
27
9b1db6c @adamjernst Fix a number of terrifying memory management errors.
adamjernst authored
28 @property (readonly) NSString *problem;
01ce025 @jdg Add in extensions by Alberto Hierro (http://fi.am/)
authored
29
9b1db6c @adamjernst Fix a number of terrifying memory management errors.
adamjernst authored
30 - (id)initWithProblem:(NSString *)aProblem;
31 - (id)initWithResponseBody:(NSString *)response;
01ce025 @jdg Add in extensions by Alberto Hierro (http://fi.am/)
authored
32
33 - (BOOL)isEqualToProblem:(OAProblem *)aProblem;
9b1db6c @adamjernst Fix a number of terrifying memory management errors.
adamjernst authored
34 - (BOOL)isEqualToString:(NSString *)aProblem;
01ce025 @jdg Add in extensions by Alberto Hierro (http://fi.am/)
authored
35 - (BOOL)isEqualTo:(id)aProblem;
36 - (int)code;
37
9b1db6c @adamjernst Fix a number of terrifying memory management errors.
adamjernst authored
38 + (OAProblem *)problemWithResponseBody:(NSString *)response;
01ce025 @jdg Add in extensions by Alberto Hierro (http://fi.am/)
authored
39
9b1db6c @adamjernst Fix a number of terrifying memory management errors.
adamjernst authored
40 + (NSArray *)validProblems;
01ce025 @jdg Add in extensions by Alberto Hierro (http://fi.am/)
authored
41
42 + (OAProblem *)SignatureMethodRejected;
43 + (OAProblem *)ParameterAbsent;
44 + (OAProblem *)VersionRejected;
45 + (OAProblem *)ConsumerKeyUnknown;
46 + (OAProblem *)TokenRejected;
47 + (OAProblem *)SignatureInvalid;
48 + (OAProblem *)NonceUsed;
49 + (OAProblem *)TimestampRefused;
50 + (OAProblem *)TokenExpired;
51 + (OAProblem *)TokenNotRenewable;
52
53 @end
Something went wrong with that request. Please try again.