コード例 #1
0
        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);
        }
コード例 #2
0
 /// <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]));
 }
コード例 #3
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]));
 }
コード例 #4
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]));
 }
コード例 #5
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]));
 }
コード例 #6
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
ファイル: User.cs プロジェクト: CoderDennis/box-csharp-sdk
 internal User(SOAPUser user)
 {
     Initialize(user);
 }
コード例 #8
0
ファイル: User.cs プロジェクト: CoderDennis/box-csharp-sdk
        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;
        }