private User GetUser(int id)
        {
            SOAPUser user = new SOAPUser();

            user.user_id = id;
            user.access_id = 12345;
            user.email = "*****@*****.**";
            user.login = "******";
            user.max_upload_size = 12345;
            user.space_amount = 1234567890;
            user.space_used = 1234;

            return new User(user);
        }
 /// <remarks/>
 public string Endget_account_info(System.IAsyncResult asyncResult, out SOAPUser user)
 {
     object[] results = this.EndInvoke(asyncResult);
     user = ((SOAPUser)(results[1]));
     return ((string)(results[0]));
 }
 /// <remarks/>
 public string Endget_auth_token(System.IAsyncResult asyncResult, out string auth_token, out SOAPUser user)
 {
     object[] results = this.EndInvoke(asyncResult);
     auth_token = ((string)(results[1]));
     user = ((SOAPUser)(results[2]));
     return ((string)(results[0]));
 }
 public string register_new_user(string api_key, string login, string password, out string auth_token, out SOAPUser user)
 {
     object[] results = this.Invoke("register_new_user", new object[] {
                 api_key,
                 login,
                 password});
     auth_token = ((string)(results[1]));
     user = ((SOAPUser)(results[2]));
     return ((string)(results[0]));
 }
 public string get_auth_token(string api_key, string ticket, out string auth_token, out SOAPUser user)
 {
     object[] results = this.Invoke("get_auth_token", new object[] {
                 api_key,
                 ticket});
     auth_token = ((string)(results[1]));
     user = ((SOAPUser)(results[2]));
     return ((string)(results[0]));
 }
 public string get_account_info(string api_key, string auth_token, out SOAPUser user)
 {
     object[] results = this.Invoke("get_account_info", new object[] {
                 api_key,
                 auth_token});
     user = ((SOAPUser)(results[1]));
     return ((string)(results[0]));
 }
示例#7
0
 internal User(SOAPUser user)
 {
     Initialize(user);
 }
示例#8
0
        private void Initialize(SOAPUser user)
        {
            isMaterialized = true;

            _id = user.user_id;
            _accessID = user.access_id;
            _email = user.email;
            _login = user.login;
            _maxUploadSize = user.max_upload_size;
            _spaceAmount = user.space_amount;
            _spaceUsed = user.space_used;
        }