mirror of
https://github.com/yaobiao131/downkyicore.git
synced 2025-08-10 00:52:31 +00:00
38 lines
851 B
C#
38 lines
851 B
C#
using Newtonsoft.Json;
|
|
|
|
namespace DownKyi.Core.Aria2cNet.Client.Entity
|
|
{
|
|
[JsonObject]
|
|
public class AriaGetSessionInfo
|
|
{
|
|
[JsonProperty("id")]
|
|
public string Id { get; set; }
|
|
|
|
[JsonProperty("jsonrpc")]
|
|
public string Jsonrpc { get; set; }
|
|
|
|
[JsonProperty("result")]
|
|
public AriaGetSessionInfoResult Result { get; set; }
|
|
|
|
[JsonProperty("error")]
|
|
public AriaError Error { get; set; }
|
|
|
|
public override string ToString()
|
|
{
|
|
return JsonConvert.SerializeObject(this);
|
|
}
|
|
}
|
|
|
|
[JsonObject]
|
|
public class AriaGetSessionInfoResult
|
|
{
|
|
[JsonProperty("sessionId")]
|
|
public string SessionId { get; set; }
|
|
|
|
public override string ToString()
|
|
{
|
|
return JsonConvert.SerializeObject(this);
|
|
}
|
|
}
|
|
}
|