mirror of
https://github.com/Cleanuparr/Cleanuparr.git
synced 2026-05-06 22:05:25 -04:00
* refactored code added deluge support added transmission support added content blocker added blacklist and whitelist * increased level on some logs; updated test docker compose; updated dev appsettings * updated docker compose and readme * moved some logs * fixed env var typo; fixed sonarr and radarr default download client
32 lines
769 B
C#
32 lines
769 B
C#
using Newtonsoft.Json;
|
|
|
|
namespace Domain.Models.Deluge.Request;
|
|
|
|
public class DelugeRequest
|
|
{
|
|
[JsonProperty(PropertyName = "id")]
|
|
public int RequestId { get; set; }
|
|
|
|
[JsonProperty(PropertyName = "method")]
|
|
public String Method { get; set; }
|
|
|
|
[JsonProperty(PropertyName = "params")]
|
|
public List<Object> Params { get; set; }
|
|
|
|
[JsonIgnore]
|
|
public NullValueHandling NullValueHandling { get; set; }
|
|
|
|
public DelugeRequest(int requestId, String method, params object[] parameters)
|
|
{
|
|
RequestId = requestId;
|
|
Method = method;
|
|
Params = new List<Object>();
|
|
|
|
if (parameters != null)
|
|
{
|
|
Params.AddRange(parameters);
|
|
}
|
|
|
|
NullValueHandling = NullValueHandling.Include;
|
|
}
|
|
} |