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/AriaGetServers.cs

60 lines
1.4 KiB

using Newtonsoft.Json;
using System.Collections.Generic;
namespace DownKyi.Core.Aria2cNet.Client.Entity
{
[JsonObject]
public class AriaGetServers
{
[JsonProperty("id")]
public string Id { get; set; }
[JsonProperty("jsonrpc")]
public string Jsonrpc { get; set; }
[JsonProperty("result")]
public List<AriaGetServersResult> Result { get; set; }
[JsonProperty("error")]
public AriaError Error { get; set; }
public override string ToString()
{
return JsonConvert.SerializeObject(this);
}
}
[JsonObject]
public class AriaGetServersResult
{
[JsonProperty("index")]
public string Index { get; set; }
[JsonProperty("servers")]
public List<AriaResultServer> Servers { get; set; }
public override string ToString()
{
return JsonConvert.SerializeObject(this);
}
}
[JsonObject]
public class AriaResultServer
{
[JsonProperty("currentUri")]
public string CurrentUri { get; set; }
[JsonProperty("downloadSpeed")]
public string DownloadSpeed { get; set; }
[JsonProperty("uri")]
public string Uri { get; set; }
public override string ToString()
{
return JsonConvert.SerializeObject(this);
}
}
}