Skip to content

Commit

Permalink
Merge pull request #70 from olgadanylova/BKNDLSS-14170
Browse files Browse the repository at this point in the history
the restore password method which takes IResponder argument removed
  • Loading branch information
markpiller authored Mar 31, 2017
2 parents a03bfbd + 299bdef commit ac81329
Show file tree
Hide file tree
Showing 8 changed files with 5 additions and 14 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)restorePassword:(NSString *)login responder:(id <IResponder>)responder;
-(void)describeUserClass:(id <IResponder>)responder;
-(void)user:(NSString *)user assignRole:(NSString *)role responder:(id <IResponder>)responder;
-(void)user:(NSString *)user unassignRole:(NSString *)role responder:(id <IResponder>)responder;
Expand Down
15 changes: 5 additions & 10 deletions SDK/backendlessAPI/Classes/UserService/UserService.m
Original file line number Diff line number Diff line change
Expand Up @@ -388,15 +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)restorePassword:(NSString *)login responder:(id <IResponder>)responder {

if (!login||!login.length)
return [responder errorHandler:FAULT_NO_USER_CREDENTIALS];

NSArray *args = [NSArray arrayWithObjects:login, nil];
[invoker invokeAsync:SERVER_USER_SERVICE_PATH method:METHOD_RESTORE_PASSWORD args:args responder:responder];
}

-(void)describeUserClass:(id <IResponder>)responder {
[invoker invokeAsync:SERVER_USER_SERVICE_PATH method:METHOD_DESCRIBE_USER_CLASS args:@[] responder:responder];
}
Expand Down Expand Up @@ -549,7 +540,11 @@ -(void)isValidUserToken:(void(^)(NSNumber *))responseBlock error:(void(^)(Fault
}

-(void)restorePassword:(NSString *)login response:(void(^)(id))responseBlock error:(void(^)(Fault *))errorBlock {
[self restorePassword:login responder:[ResponderBlocksContext responderBlocksContext:responseBlock error:errorBlock]];
id<IResponder>responder = [ResponderBlocksContext responderBlocksContext:responseBlock error:errorBlock];
if (!login||!login.length)
return [responder errorHandler:FAULT_NO_USER_CREDENTIALS];
NSArray *args = [NSArray arrayWithObjects:login, nil];
[invoker invokeAsync:SERVER_USER_SERVICE_PATH method:METHOD_RESTORE_PASSWORD args:args responder:responder];
}

-(void)describeUserClass:(void(^)(NSArray<UserProperty*> *))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)restorePassword:(NSString *)login responder:(id <IResponder>)responder;
-(void)describeUserClass:(id <IResponder>)responder;
-(void)user:(NSString *)user assignRole:(NSString *)role responder:(id <IResponder>)responder;
-(void)user:(NSString *)user unassignRole:(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)restorePassword:(NSString *)login responder:(id <IResponder>)responder;
-(void)describeUserClass:(id <IResponder>)responder;
-(void)user:(NSString *)user assignRole:(NSString *)role responder:(id <IResponder>)responder;
-(void)user:(NSString *)user unassignRole:(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)restorePassword:(NSString *)login responder:(id <IResponder>)responder;
-(void)describeUserClass:(id <IResponder>)responder;
-(void)user:(NSString *)user assignRole:(NSString *)role responder:(id <IResponder>)responder;
-(void)user:(NSString *)user unassignRole:(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 ac81329

Please sign in to comment.