You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
downkyi/DownKyi.Core/Aria2cNet/Client/Entity/AriaGetGlobalStat.cs

67 lines
1.6 KiB

using Newtonsoft.Json;
namespace DownKyi.Core.Aria2cNet.Client.Entity
{
/*
{
"id": "qwer",
"jsonrpc": "2.0",
"result": {
"downloadSpeed": "0",
"numActive": "0",
"numStopped": "0",
"numStoppedTotal": "0",
"numWaiting": "0",
"uploadSpeed": "0"
}
}
*/
[JsonObject]
public class AriaGetGlobalStat
{
[JsonProperty("id")]
public string Id { get; set; }
[JsonProperty("jsonrpc")]
public string Jsonrpc { get; set; }
[JsonProperty("result")]
public AriaGetGlobalStatResult Result { get; set; }
[JsonProperty("error")]
public AriaError Error { get; set; }
public override string ToString()
{
return JsonConvert.SerializeObject(this);
}
}
[JsonObject]
public class AriaGetGlobalStatResult
{
[JsonProperty("downloadSpeed")]
public string DownloadSpeed { get; set; }
[JsonProperty("numActive")]
public string NumActive { get; set; }
[JsonProperty("numStopped")]
public string NumStopped { get; set; }
[JsonProperty("numStoppedTotal")]
public string NumStoppedTotal { get; set; }
[JsonProperty("numWaiting")]
public string NumWaiting { get; set; }
[JsonProperty("uploadSpeed")]
public string UploadSpeed { get; set; }
public override string ToString()
{
return JsonConvert.SerializeObject(this);
}
}
}