/
AppNetKit.h
68 lines (60 loc) · 1.66 KB
/
AppNetKit.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
//
// AppNetKit.h
// AppNetKit
//
// Created by Brent Royal-Gordon on 8/18/12.
// Copyright (c) 2012 Architechies. See README.md for licensing information.
//
#import <Foundation/Foundation.h>
#import "ANDefines.h"
extern NSString * const ANErrorDomain;
extern NSString * const ANExplanationURLKey;
// Used with password auth
extern NSString * const ANPasswordErrorTitleKey;
extern NSString * const ANPasswordErrorTextKey;
typedef enum {
ANGenericError,
ANOAuthInvalidRequestError,
ANOAuthUnauthorizedClientError,
ANOAuthAccessDeniedError,
ANOAuthUnsupportedResponseTypeError,
ANOAuthInvalidScopeError,
ANOAuthServerError,
ANOAuthTemporarilyUnavailableError,
ANBadRequestError = 400,
ANUnauthorizedError,
ANPaymentRequiredError,
ANForbiddenError,
ANNotFoundError,
ANMethodNotAllowedError,
ANNotAcceptableError,
ANProxyAuthenticationRequiredError,
ANRequestTimeoutError,
ANConflictError,
ANGoneError,
ANLengthRequiredError,
ANPreconditionFailedError,
ANRequestEntityTooLargeError,
ANRequestURITooLongError,
ANUnsupportedMediaTypeError,
ANRequestedRangeNotSatisfiableError,
ANExpectationFailedError,
ANInternalServerError = 500,
ANNotImplementedError,
ANBadGatewayError,
ANServiceUnavailableError,
ANGatewayTimeoutError,
ANHTTPVersionNotSupportedError
} ANErrorCode;
#import "NSString+AppNetExtensions.h"
#import "ANCompletions.h"
#import "ANAuthenticator.h"
#import "ANSession.h"
#import "ANUser.h"
#import "ANPost.h"
#import "ANFilter.h"
#import "ANAnnotation.h"
#import "ANEntity.h"
#import "ANSource.h"
#import "ANDraft.h"
#import "ANResponse.h"