Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - (void)startup:(void (^)(id))success failure:(void (^)(NSError *))failure
- {
- [self GET:uStartup parameters:nil progress:nil success:^(NSURLSessionDataTask *task, id responseObject) {
- NSNotificationCenter *notificationCenter = [NSNotificationCenter defaultCenter];
- NSArray *responseKeys = [responseObject allKeys];
- StartupResponseHandler* responseHandler = [[StartupResponseHandler alloc] initWithStartupResponse:responseObject];
- [responseHandler handleDeviceState];
- [responseHandler handleNinjaMenuState];
- [responseHandler handleAuthorizationRequests];
- [responseHandler handleMaintenanceMessage];
- [responseHandler handleSettings];
- if (success) {
- success(responseObject);
- }
- } failure:^(NSURLSessionDataTask *task, NSError *error) {
- if (failure) {
- failure(error);
- }
- }];
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement