Ejemplo n.º 1
0
 public RestRequestAsyncHandle Login(IAuthenticator authenticator, Action<Response<User>> callback)
 {
     client.Authenticator = authenticator;
     var request = GetLoginRequest();
     return Execute(request, (Response<User> response) =>
     {
         if (response.Data != null) {
             AuthenticatedUser = response.Data;
             if (OnSuccessfullLogin != null)
                 OnSuccessfullLogin(this, response.Data);
         }
         callback(response);
     });
 }
 public UserSummaryViewController(User user)
     : base("UserSummaryViewController", null)
 {
     _user = user;
 }