diff --git a/src/ios/BEMCommunicationHelper.h b/src/ios/BEMCommunicationHelper.h index 32c7cfb..16e8430 100644 --- a/src/ios/BEMCommunicationHelper.h +++ b/src/ios/BEMCommunicationHelper.h @@ -19,7 +19,6 @@ +(void)getUnclassifiedSections:(void (^)(NSData *data, NSURLResponse *response, NSError *error))completionHandler; +(void)setClassifiedSections:(NSArray*)sectionDicts completionHandler:(void (^)(NSData *data, NSURLResponse *response, NSError *error))completionHandler; +(void)movesCallback:(NSMutableDictionary*)movesParams completionHandler:(void (^)(NSData *data, NSURLResponse *response, NSError *error))completionHandler; -+(void)setClientStats:(NSDictionary*)statsToSend completionHandler:(void (^)(NSData *data, NSURLResponse *response, NSError *error))completionHandler; +(void)phone_to_server:(NSArray*) entriesToPush completionHandler:(void (^)(NSData *data, NSURLResponse *response, NSError *error))completionHandler;; // Generic GET and POST methods diff --git a/src/ios/BEMCommunicationHelper.m b/src/ios/BEMCommunicationHelper.m index 004159f..1659e35 100644 --- a/src/ios/BEMCommunicationHelper.m +++ b/src/ios/BEMCommunicationHelper.m @@ -89,18 +89,6 @@ +(void)movesCallback:(NSMutableDictionary*)movesParams completionHandler:(void ( [executor execute]; } -+(void)setClientStats:(NSMutableDictionary*)statsToSend completionHandler:(void (^)(NSData *data, NSURLResponse *response, NSError *error))completionHandler { - NSMutableDictionary *toPush = [[NSMutableDictionary alloc] init]; - [toPush setObject:statsToSend forKey:@"stats"]; - - NSURL* kBaseURL = [[ConnectionSettings sharedInstance] getConnectUrl]; - NSURL* kSetStatsURL = [NSURL URLWithString:kSetStatsPath - relativeToURL:kBaseURL]; - - CommunicationHelper *executor = [[CommunicationHelper alloc] initPost:kSetStatsURL data:toPush completionHandler:completionHandler]; - [executor execute]; -} - +(void)phone_to_server:(NSArray *)entriesToPush completionHandler:(void (^)(NSData *data, NSURLResponse *response, NSError *error))completionHandler { NSMutableDictionary *toPush = [[NSMutableDictionary alloc] init]; [toPush setObject:entriesToPush forKey:@"phone_to_server"];