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.
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
|
|
namespace DownKyi.Core.Aria2cNet.Client.Entity
|
|
|
|
|
{
|
|
|
|
|
[JsonObject]
|
|
|
|
|
public class AriaVersion
|
|
|
|
|
{
|
|
|
|
|
[JsonProperty("id")]
|
|
|
|
|
public string Id { get; set; }
|
|
|
|
|
|
|
|
|
|
[JsonProperty("jsonrpc")]
|
|
|
|
|
public string Jsonrpc { get; set; }
|
|
|
|
|
|
|
|
|
|
[JsonProperty("result")]
|
|
|
|
|
public AriaVersionResult Result { get; set; }
|
|
|
|
|
|
|
|
|
|
[JsonProperty("error")]
|
|
|
|
|
public AriaError Error { get; set; }
|
|
|
|
|
|
|
|
|
|
public override string ToString()
|
|
|
|
|
{
|
|
|
|
|
return JsonConvert.SerializeObject(this);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[JsonObject]
|
|
|
|
|
public class AriaVersionResult
|
|
|
|
|
{
|
|
|
|
|
[JsonProperty("enabledFeatures")]
|
|
|
|
|
public List<string> EnabledFeatures { get; set; }
|
|
|
|
|
|
|
|
|
|
[JsonProperty("version")]
|
|
|
|
|
public string Version { get; set; }
|
|
|
|
|
|
|
|
|
|
public override string ToString()
|
|
|
|
|
{
|
|
|
|
|
return JsonConvert.SerializeObject(this);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|