JubeatPlus 3.9.11
Loading...
Searching...
No Matches
jubeatLabAccess.h
Go to the documentation of this file.
1
17
18#import <Foundation/Foundation.h>
19
20NS_ASSUME_NONNULL_BEGIN
21
26@interface jubeatLabAccess : NSObject <NSURLSessionDataDelegate>
27
35- (void)startAccess;
36
41- (void)cancel;
42
48- (nullable NSData *)getData;
49
56- (nullable NSDictionary *)getDataInJSON;
57
63- (NSUInteger)currentSize;
64
70- (float)currentProgress;
71
82- (instancetype)initWithURL:(nullable NSURL *)url delegate:(nullable id)delegate;
83
96- (instancetype)initWithURL:(nullable NSURL *)url
97 sendData:(nullable NSData *)sendData
98 command:(nullable NSString *)command
99 delegate:(nullable id)delegate;
100
111- (nullable NSURL *)getApiPath:(nullable NSString *)scheme api:(nullable NSString *)api;
112
120- (NSDictionary *)getKeyQuery:(nullable id)key;
121
129- (nullable NSString *)getKeyString:(nullable id)key;
130
137- (instancetype)initUIDApi:(nullable id)delegate;
138
145- (instancetype)initSessionApi:(nullable id)delegate;
146
153- (instancetype)initTopPageSessionApi:(nullable id)delegate;
154
161- (instancetype)initLicenseVersionApi:(nullable id)delegate;
162
169- (instancetype)initLicenseApi:(nullable id)delegate;
170
177- (instancetype)initTopPageApi:(nullable id)delegate;
178
189- (instancetype)initUploadApi:(nullable id)delegate seqData:(nullable NSData *)seqData;
190
200- (instancetype)initDownloadApi:(nullable id)delegate seqID:(nullable id)seqID;
201
209- (instancetype)initComprisedPackApi:(nullable id)delegate tuneID:(unsigned int)tuneID;
210
222- (instancetype)initGoodJobApi:(nullable id)delegate tuneID:(int)tuneID seqID:(nullable id)seqID;
223
235- (instancetype)initLevelApi:(nullable id)delegate
236 tuneID:(int)tuneID
237 seqID:(nullable id)seqID
238 level:(int)level;
239
250- (instancetype)initPlayApi:(nullable id)delegate tuneID:(int)tuneID seqID:(nullable id)seqID;
251
263- (instancetype)initCreateUserID:(nullable id)delegate
264 userID:(nullable id)userID
265 name:(nullable id)name
266 userType:(int)userType;
267
278+ (nullable NSURL *)getWebPagePath:(nullable NSString *)scheme
279 pagePath:(nullable NSString *)pagePath;
280
286+ (nullable NSURL *)getUserPageURL;
287
293+ (nullable NSURL *)getUserPageSessionFailedURL;
294
301+ (nullable NSURL *)getSequenceSerchURL:(int)musicID;
302
309+ (nullable NSURL *)getSequencePageURL:(nullable id)sequenceID;
310
311@end
312
313NS_ASSUME_NONNULL_END
314
315// code: language=Objective-C
316// kate: hl Objective-C;
317// vim: set ft=objc :
Builds and holds an HTTP request to the jubeatLab API and reports its outcome to a delegate.
Definition jubeatLabAccess.h:26
float currentProgress()
The download progress in [0, 1], or 0 when the expected length is unknown.
Definition jubeatLabAccess.m:402
void cancel()
Abandons the request: clears the weak delegate, cancels the task, and drops the data.
Definition jubeatLabAccess.m:367
NSUInteger currentSize()
The number of bytes received so far.
Definition jubeatLabAccess.m:397
void startAccess()
Starts the request on the main queue.
Definition jubeatLabAccess.m:356
nullable NSDictionary * getDataInJSON()
The response body decoded as a JSON dictionary, or nil when it is absent or not a dictionary.
Definition jubeatLabAccess.m:385
nullable NSURL * getUserPageSessionFailedURL()
The session-error web page URL.
Definition jubeatLabAccess.m:335
nullable NSURL * getUserPageURL()
The user-management web page URL.
Definition jubeatLabAccess.m:329
nullable NSData * getData()
The accumulated response body.
Definition jubeatLabAccess.m:380