-
Notifications
You must be signed in to change notification settings - Fork 6
/
CLAPIEngineConstants.h
55 lines (47 loc) · 1.32 KB
/
CLAPIEngineConstants.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
//
// CLAPIEngineConstants.h
// Cloud
//
// Created by Matthias Plappert on 5/4/11.
// Copyright 2011 Linebreak. All rights reserved.
//
#import <Foundation/Foundation.h>
enum {
CLAPIRequestTypeAccountUpdate = 0,
CLAPIRequestTypeItemUpdatePrivacy,
CLAPIRequestTypeItemUpdateName,
CLAPIRequestTypeItemDeletion,
CLAPIRequestTypeItemRestoration,
CLAPIRequestTypeGetItemList,
CLAPIRequestTypeLinkBookmark,
CLAPIRequestTypeCreateAccount,
CLAPIRequestTypeGetAccountInformation,
CLAPIRequestTypeGetItemInformation,
CLAPIRequestTypeGetS3UploadCredentials,
CLAPIRequestTypeS3FileUpload,
CLAPIRequestTypeGetStoreProducts,
CLAPIRequestTypeStoreReceiptRedemption
};
typedef NSInteger CLAPIRequestType;
enum {
CLWebItemTypeImage = 0,
CLWebItemTypeBookmark,
CLWebItemTypeText,
CLWebItemTypeArchive,
CLWebItemTypeAudio,
CLWebItemTypeVideo,
CLWebItemTypeUnknown,
CLWebItemTypeNone
};
typedef NSInteger CLWebItemType;
// Error domain and user info keys
extern NSString *const CLAPIEngineErrorDomain;
extern NSString *const CLAPIEngineErrorMessagesKey;
extern NSString *const CLAPIEngineErrorRequestTypeKey;
extern NSString *const CLAPIEngineErrorStatusCodeKey;
// Error codes
enum {
CLAPIEngineErrorUnknown = -1,
CLAPIEngineErrorUploadLimitExceeded = 1,
CLAPIEngineErrorUploadTooLarge = 2
};