Ejemplo n.º 1
0
        public void Login(Credentials credentials)
        {
            var body = new RegistrationRequest(credentials);

            _rest.PostForObjectAsync<RegistrationResponce>("/api/v1/person/sign_in.json", body, r =>
            {
                if(r.Error == null)
                {
                    _token = r.Response.api_token;
                }

                AuthorizationFinished(this, new AsyncOperationFinishedEventArgs(r.Error));
            }); 
        }
Ejemplo n.º 2
0
 public RegistrationRequest(Credentials credentials)
 {
     person = new person();
     person.email = credentials.UserName;
     person.password = credentials.Password;
 }
Ejemplo n.º 3
0
 public RegistrationRequest(Credentials credentials)
 {
     person          = new person();
     person.email    = credentials.UserName;
     person.password = credentials.Password;
 }