Пример #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));
            }); 
        }
Пример #2
0
 public RegistrationRequest(Credentials credentials)
 {
     person = new person();
     person.email = credentials.UserName;
     person.password = credentials.Password;
 }
Пример #3
0
 public RegistrationRequest(Credentials credentials)
 {
     person          = new person();
     person.email    = credentials.UserName;
     person.password = credentials.Password;
 }