コード例 #1
0
        public async Task AuthenticateWithCredentialsAsync(string username, string password)
        {
            String responseAsString = await InvokeWebserviceAtURLAsync(User.GetAuthenticateURL(username, password));
            _currentUser = JsonConvert.DeserializeObject<User>(responseAsString);

        }
コード例 #2
0
		public void InvalidateCurrentUser(){
			_currentUser = null;
		}
コード例 #3
0
ファイル: User.cs プロジェクト: mabhi/crossdevicepoc
 public void SyncProperties(User anUser)
 {
   this.UserId = anUser.UserId;
   this.Password = anUser.Password;
   this.TerritoryId = anUser.TerritoryId;
 }
コード例 #4
0
        private UserWebservice(){
			_restClient = new RestClient (User.BaseURL());
            _currentUser = null;
            _anyError = null;
		}
コード例 #5
0
ファイル: User.cs プロジェクト: mabhi/crossdevicepoc
 public User(User anUser)
 {
   SyncProperties(anUser);
 }