using System; using AppLimit.CloudComputing.SharpBox.Common.Net.Json; namespace AppLimit.CloudComputing.SharpBox.StorageProvider.DropBox { /* * { * “shared”: 37378890, * “quota”: 62277025792, * “normal”: 263758550 * } */ /// /// This class contains information about the dropbox quota /// public class DropBoxQuotaInfo { /// /// How many bytes are shared with other users /// public readonly ulong SharedBytes; /// /// What is the size limit of the dropbox /// public readonly ulong QuotaBytes; /// /// How many not shared bytes are used /// public readonly ulong NormalBytes; internal DropBoxQuotaInfo(string jmstext) { var jh = new JsonHelper(); if (jh.ParseJsonMessage(jmstext)) { SharedBytes = Convert.ToUInt64(jh.GetProperty("shared")); QuotaBytes = Convert.ToUInt64(jh.GetProperty("quota")); NormalBytes = Convert.ToUInt64(jh.GetProperty("normal")); } } } }