SHARE
TWEET

Untitled

a guest Sep 15th, 2017 135 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #pragma mark - User Login
  2. - (void)performLoginForUserName:(NSString *)aUsername withPassword:(NSString *)aPassword delegate:(id<MVSWebserviceDelegate>)aDelegate callback:(SEL)callback {
  3.     NSURLRequest *request = [self urlRequestForMethod:@"user/login" parameters:[NSDictionary dictionaryWithObjectsAndKeys:aUsername, @"username", [aPassword md5Sum], @"password", @"json", @"format", nil]];
  4.    
  5.     [self dispatchRequest:request callbackSelector:@selector(userLogginResults:delegate:callback:) delegate:aDelegate clientCallbackSelector:callback];
  6. }
  7.  
  8. - (void)userLogginResults:(NSString *)data delegate:(id<MVSWebserviceDelegate>)delegate callback:(SEL)callback {
  9.     NSLog(@"data: %@", [data objectFromJSONString]);
  10.     AppChannelUserResult *userResult = [[AppChannelUserResult alloc] initWithDictionary:[data objectFromJSONString]];
  11.    
  12.     [self dispatchClient:delegate callbackSelector:callback params:userResult, nil];
  13. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top