mirror of https://github.com/leiurayer/downkyi
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.
54 lines
1.2 KiB
54 lines
1.2 KiB
using Newtonsoft.Json;
|
|
using System.Collections.Generic;
|
|
|
|
namespace DownKyi.Core.Aria2cNet.Client.Entity
|
|
{
|
|
[JsonObject]
|
|
public class AriaGetFiles
|
|
{
|
|
[JsonProperty("id")]
|
|
public string Id { get; set; }
|
|
|
|
[JsonProperty("jsonrpc")]
|
|
public string Jsonrpc { get; set; }
|
|
|
|
[JsonProperty("result")]
|
|
public List<AriaUri> Result { get; set; }
|
|
|
|
[JsonProperty("error")]
|
|
public AriaError Error { get; set; }
|
|
|
|
public override string ToString()
|
|
{
|
|
return JsonConvert.SerializeObject(this);
|
|
}
|
|
}
|
|
|
|
[JsonObject]
|
|
public class AriaGetFilesResult
|
|
{
|
|
[JsonProperty("completedLength")]
|
|
public string CompletedLength { get; set; }
|
|
|
|
[JsonProperty("index")]
|
|
public string Index { get; set; }
|
|
|
|
[JsonProperty("length")]
|
|
public string Length { get; set; }
|
|
|
|
[JsonProperty("path")]
|
|
public string Path { get; set; }
|
|
|
|
[JsonProperty("selected")]
|
|
public string Selected { get; set; }
|
|
|
|
[JsonProperty("uris")]
|
|
public List<AriaUri> Uris { get; set; }
|
|
|
|
public override string ToString()
|
|
{
|
|
return JsonConvert.SerializeObject(this);
|
|
}
|
|
}
|
|
}
|