29 - (id)initWithSession:(
DBSession*)session;
30 - (id)initWithSession:(
DBSession *)session userId:(NSString *)userId;
33 - (void)cancelAllRequests;
38 - (void)loadMetadata:(NSString*)path withHash:(NSString*)hash;
40 - (void)loadMetadata:(NSString*)path;
43 - (void)loadMetadata:(NSString *)path atRev:(NSString *)rev;
46 - (void)loadDelta:(NSString *)cursor;
50 - (void)loadFile:(NSString *)path intoPath:(NSString *)destinationPath;
53 - (void)loadFile:(NSString *)path atRev:(NSString *)rev intoPath:(NSString *)destPath;
55 - (void)cancelFileLoad:(NSString*)path;
58 - (void)loadThumbnail:(NSString *)path ofSize:(NSString *)size intoPath:(NSString *)destinationPath;
59 - (void)cancelThumbnailLoad:(NSString*)path size:(NSString*)size;
65 - (void)uploadFile:(NSString *)filename toPath:(NSString *)path withParentRev:(NSString *)parentRev
66 fromPath:(NSString *)sourcePath;
68 - (void)cancelFileUpload:(NSString *)path;
72 - (void)uploadFile:(NSString*)filename toPath:(NSString*)path fromPath:(NSString *)sourcePath __attribute__((deprecated));
76 - (void)loadRevisionsForFile:(NSString *)path;
79 - (void)loadRevisionsForFile:(NSString *)path limit:(NSInteger)limit;
83 - (void)restoreFile:(NSString *)path toRev:(NSString *)rev;
86 - (void)createFolder:(NSString*)path;
88 - (void)deletePath:(NSString*)path;
90 - (void)copyFrom:(NSString*)fromPath toPath:(NSString *)toPath;
92 - (void)createCopyRef:(NSString *)path;
93 - (void)copyFromRef:(NSString*)copyRef toPath:(NSString *)toPath;
95 - (void)moveFrom:(NSString*)fromPath toPath:(NSString *)toPath;
97 - (void)loadAccountInfo;
99 - (void)searchPath:(NSString*)path forKeyword:(NSString*)keyword;
101 - (void)loadSharableLinkForFile:(NSString *)path;
103 - (void)loadStreamableURLForFile:(NSString *)path;
105 - (NSUInteger)requestCount;
107 @property (nonatomic, assign) id<DBRestClientDelegate> delegate;
122 - (void)restClient:(
DBRestClient*)client metadataUnchangedAtPath:(NSString*)path;
123 - (void)restClient:(
DBRestClient*)client loadMetadataFailedWithError:(NSError*)error;
126 - (void)restClient:(
DBRestClient*)client loadedDeltaEntries:(NSArray *)entries reset:(BOOL)shouldReset cursor:(NSString *)cursor hasMore:(BOOL)hasMore;
127 - (void)restClient:(
DBRestClient*)client loadDeltaFailedWithError:(NSError *)error;
130 - (void)restClient:(
DBRestClient*)client loadAccountInfoFailedWithError:(NSError*)error;
132 - (void)restClient:(
DBRestClient*)client loadedFile:(NSString*)destPath;
135 - (void)restClient:(
DBRestClient*)client loadedFile:(NSString*)destPath contentType:(NSString*)contentType metadata:(
DBMetadata*)metadata;
136 - (void)restClient:(
DBRestClient*)client loadProgress:(CGFloat)progress forFile:(NSString*)destPath;
137 - (void)restClient:(
DBRestClient*)client loadFileFailedWithError:(NSError*)error;
141 - (void)restClient:(
DBRestClient*)client loadedThumbnail:(NSString*)destPath metadata:(
DBMetadata*)metadata;
142 - (void)restClient:(
DBRestClient*)client loadThumbnailFailedWithError:(NSError*)error;
144 - (void)restClient:(
DBRestClient*)client uploadedFile:(NSString*)destPath from:(NSString*)srcPath
146 - (void)restClient:(
DBRestClient*)client uploadProgress:(CGFloat)progress
147 forFile:(NSString*)destPath from:(NSString*)srcPath;
148 - (void)restClient:(
DBRestClient*)client uploadFileFailedWithError:(NSError*)error;
152 - (void)restClient:(
DBRestClient*)client uploadedFile:(NSString*)destPath from:(NSString*)srcPath;
155 - (void)restClient:(
DBRestClient*)client loadedFile:(NSString*)destPath contentType:(NSString*)contentType;
156 - (void)restClient:(
DBRestClient*)client loadedThumbnail:(NSString*)destPath;
158 - (void)restClient:(
DBRestClient*)client loadedRevisions:(NSArray *)revisions forFile:(NSString *)path;
159 - (void)restClient:(
DBRestClient*)client loadRevisionsFailedWithError:(NSError *)error;
162 - (void)restClient:(
DBRestClient*)client restoreFileFailedWithError:(NSError *)error;
166 - (void)restClient:(
DBRestClient*)client createFolderFailedWithError:(NSError*)error;
169 - (void)restClient:(
DBRestClient*)client deletedPath:(NSString *)path;
170 - (void)restClient:(
DBRestClient*)client deletePathFailedWithError:(NSError*)error;
174 - (void)restClient:(
DBRestClient*)client copyPathFailedWithError:(NSError*)error;
177 - (void)restClient:(
DBRestClient*)client createdCopyRef:(NSString *)copyRef;
178 - (void)restClient:(
DBRestClient*)client createCopyRefFailedWithError:(NSError *)error;
181 - (void)restClient:(
DBRestClient*)client copyFromRefFailedWithError:(NSError*)error;
184 - (void)restClient:(
DBRestClient*)client movePathFailedWithError:(NSError*)error;
187 - (void)restClient:(
DBRestClient*)restClient loadedSearchResults:(NSArray*)results
188 forPath:(NSString*)path keyword:(NSString*)keyword;
190 - (void)restClient:(
DBRestClient*)restClient searchFailedWithError:(NSError*)error;
192 - (void)restClient:(
DBRestClient*)restClient loadedSharableLink:(NSString*)link
193 forFile:(NSString*)path;
194 - (void)restClient:(
DBRestClient*)restClient loadSharableLinkFailedWithError:(NSError*)error;
196 - (void)restClient:(
DBRestClient*)restClient loadedStreamableURL:(NSURL*)url forFile:(NSString*)path;
197 - (void)restClient:(
DBRestClient*)restClient loadStreamableURLFailedWithError:(NSError*)error;