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/src/Core/aria2cNet/client/entity/AriaSendData.cs

46 lines
991 B

using Newtonsoft.Json;
using System.Collections.Generic;
namespace Core.aria2cNet.client.entity
{
[JsonObject]
public class AriaSendData
{
[JsonProperty("id")]
public string Id { get; set; }
[JsonProperty("jsonrpc")]
public string Jsonrpc { get; set; }
[JsonProperty("method")]
public string Method { get; set; }
[JsonProperty("params")]
public List<object> Params { get; set; }
public override string ToString()
{
return JsonConvert.SerializeObject(this);
}
}
[JsonObject]
public class AriaSendOption
{
[JsonProperty("all-proxy")]
public string HttpProxy { get; set; }
[JsonProperty("out")]
public string Out { get; set; }
[JsonProperty("dir")]
public string Dir { get; set; }
public override string ToString()
{
return JsonConvert.SerializeObject(this);
}
}
}