18#import <Foundation/Foundation.h>
20NS_ASSUME_NONNULL_BEGIN
82- (instancetype)initWithURL:(nullable NSURL *)url delegate:(nullable
id)delegate;
96- (instancetype)initWithURL:(nullable NSURL *)url
97 sendData:(nullable NSData *)sendData
98 command:(nullable NSString *)command
99 delegate:(nullable
id)delegate;
111- (nullable NSURL *)getApiPath:(nullable NSString *)scheme api:(nullable NSString *)api;
120- (NSDictionary *)getKeyQuery:(nullable
id)key;
129- (nullable NSString *)getKeyString:(nullable
id)key;
137- (instancetype)initUIDApi:(nullable
id)delegate;
145- (instancetype)initSessionApi:(nullable
id)delegate;
153- (instancetype)initTopPageSessionApi:(nullable
id)delegate;
161- (instancetype)initLicenseVersionApi:(nullable
id)delegate;
169- (instancetype)initLicenseApi:(nullable
id)delegate;
177- (instancetype)initTopPageApi:(nullable
id)delegate;
189- (instancetype)initUploadApi:(nullable
id)delegate seqData:(nullable NSData *)seqData;
200- (instancetype)initDownloadApi:(nullable
id)delegate seqID:(nullable
id)seqID;
209- (instancetype)initComprisedPackApi:(nullable
id)delegate tuneID:(
unsigned int)tuneID;
222- (instancetype)initGoodJobApi:(nullable
id)delegate tuneID:(
int)tuneID seqID:(nullable
id)seqID;
235- (instancetype)initLevelApi:(nullable
id)delegate
237 seqID:(nullable
id)seqID
250- (instancetype)initPlayApi:(nullable
id)delegate tuneID:(
int)tuneID seqID:(nullable
id)seqID;
263- (instancetype)initCreateUserID:(nullable
id)delegate
264 userID:(nullable
id)userID
265 name:(nullable
id)name
266 userType:(
int)userType;
278+ (nullable NSURL *)getWebPagePath:(nullable NSString *)scheme
279 pagePath:(nullable NSString *)pagePath;
301+ (nullable NSURL *)getSequenceSerchURL:(
int)musicID;
309+ (nullable NSURL *)getSequencePageURL:(nullable
id)sequenceID;
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