Advertisement
Guest User

Untitled

a guest
May 23rd, 2016
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [[VBAPIService sharedInstance] getBestGameHitPercentage:[VBUtils getStringFromGameType:self.game.gameType]
  2.                                                       verbTense:self.game.tense.name
  3.                                                        response:^(GameStatistic *statistic) {
  4.                                                            NSLog(@"Best game time: %f, Best hit percentage: %f", [statistic.timeInSeconds doubleValue], [statistic.hitPercentage doubleValue]);
  5.                                                        } error:^(Fault *fault) {
  6.                                                            NSLog(@"Best game time Error! %@", fault);
  7.                                                        }];
  8.  
  9.  
  10.  
  11. -(GameStatistic *)getBestGameHitPercentage:(NSString *)gameType verbTense:(NSString *)verbTense error:(Fault **)fault {
  12.     return [backendless.customService invoke:SERVICE_NAME serviceVersion:SERVICE_VERSION_NAME method:@"getBestGameHitPercentage" args:@[gameType,verbTense] fault:fault];
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement