Skip to content

Commit

Permalink
Merge pull request #69 from olgadanylova/BKNDLSS-14169
Browse files Browse the repository at this point in the history
the logout method which takes IResponder argument removed
  • Loading branch information
markpiller authored Mar 31, 2017
2 parents d785f57 + 3c2f05e commit a03bfbd
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 12 deletions.
1 change: 0 additions & 1 deletion SDK/backendlessAPI/Classes/UserService/UserService.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@

// async methods with responder
-(void)findById:(NSString *)objectId responder:(id <IResponder>)responder;
-(void)logout:(id <IResponder>)responder;
-(void)restorePassword:(NSString *)login responder:(id <IResponder>)responder;
-(void)describeUserClass:(id <IResponder>)responder;
-(void)user:(NSString *)user assignRole:(NSString *)role responder:(id <IResponder>)responder;
Expand Down
12 changes: 4 additions & 8 deletions SDK/backendlessAPI/Classes/UserService/UserService.m
Original file line number Diff line number Diff line change
Expand Up @@ -388,13 +388,6 @@ -(void)findById:(NSString *)objectId responder:(id <IResponder>)responder {
[invoker invokeAsync:SERVER_USER_SERVICE_PATH method:METHOD_FIND_BY_ID args:args responder:responder];
}

-(void)logout:(id <IResponder>)responder {

Responder *_responder = [Responder responder:self selResponseHandler:@selector(onLogout:) selErrorHandler:@selector(onLogoutError:)];
_responder.chained = responder;
[invoker invokeAsync:SERVER_USER_SERVICE_PATH method:METHOD_LOGOUT args:@[] responder:_responder];
}

-(void)restorePassword:(NSString *)login responder:(id <IResponder>)responder {

if (!login||!login.length)
Expand Down Expand Up @@ -525,7 +518,10 @@ -(void)findById:(NSString *)objectId response:(void(^)(BackendlessUser *))respon
}

-(void)logout:(void(^)(id))responseBlock error:(void(^)(Fault *))errorBlock {
[self logout:[ResponderBlocksContext responderBlocksContext:responseBlock error:errorBlock]];
id <IResponder>responder = [ResponderBlocksContext responderBlocksContext:responseBlock error:errorBlock];
Responder *_responder = [Responder responder:self selResponseHandler:@selector(onLogout:) selErrorHandler:@selector(onLogoutError:)];
_responder.chained = responder;
[invoker invokeAsync:SERVER_USER_SERVICE_PATH method:METHOD_LOGOUT args:@[] responder:_responder];
}

-(void)isValidUserToken:(void(^)(NSNumber *))responseBlock error:(void(^)(Fault *))errorBlock {
Expand Down
Binary file modified SDK/ios/backendless/backendless.a
Binary file not shown.
1 change: 0 additions & 1 deletion SDK/ios/backendless/include/UserService.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@

// async methods with responder
-(void)findById:(NSString *)objectId responder:(id <IResponder>)responder;
-(void)logout:(id <IResponder>)responder;
-(void)restorePassword:(NSString *)login responder:(id <IResponder>)responder;
-(void)describeUserClass:(id <IResponder>)responder;
-(void)user:(NSString *)user assignRole:(NSString *)role responder:(id <IResponder>)responder;
Expand Down
Binary file modified SDK/lib/backendless/backendless.a
Binary file not shown.
1 change: 0 additions & 1 deletion SDK/lib/backendless/include/UserService.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@

// async methods with responder
-(void)findById:(NSString *)objectId responder:(id <IResponder>)responder;
-(void)logout:(id <IResponder>)responder;
-(void)restorePassword:(NSString *)login responder:(id <IResponder>)responder;
-(void)describeUserClass:(id <IResponder>)responder;
-(void)user:(NSString *)user assignRole:(NSString *)role responder:(id <IResponder>)responder;
Expand Down
1 change: 0 additions & 1 deletion SDK/osx/backendless/include/UserService.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@

// async methods with responder
-(void)findById:(NSString *)objectId responder:(id <IResponder>)responder;
-(void)logout:(id <IResponder>)responder;
-(void)restorePassword:(NSString *)login responder:(id <IResponder>)responder;
-(void)describeUserClass:(id <IResponder>)responder;
-(void)user:(NSString *)user assignRole:(NSString *)role responder:(id <IResponder>)responder;
Expand Down
Binary file modified SDK/osx/backendless/libbackendless-mac.a
Binary file not shown.

0 comments on commit a03bfbd

Please sign in to comment.