3 namespace Pithos.Network
5 public class AccountInfo
7 public string UserName { get; set; }
8 public string Token { get; set; }
9 public Uri StorageUri { get; set; }
11 private string _accountPath;
12 public string AccountPath
14 get { return _accountPath; }
15 set { _accountPath = value.ToLower(); }
18 public int BlockSize { get; set; }
20 public string BlockHash { get; set; }
22 public long Quota { get; set; }
24 public long BytesUsed { get; set; }
31 var gigabytes = Quota / 1073741824;
32 var percentage = BytesUsed / (double)Quota;
33 return String.Format("{0:P0} of {1} GB", percentage, gigabytes);
38 public string SiteUri { get; set; }