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.
35 lines
1.1 KiB
35 lines
1.1 KiB
using System.Text.Json.Serialization;
|
|
using JetBrains.Annotations;
|
|
|
|
namespace Recyclarr.ServarrApi.Dto;
|
|
|
|
[UsedImplicitly(ImplicitUseKindFlags.Assign, ImplicitUseTargetFlags.Members)]
|
|
public class SonarrPreferredTerm
|
|
{
|
|
public SonarrPreferredTerm(int score, string term)
|
|
{
|
|
Term = term;
|
|
Score = score;
|
|
}
|
|
|
|
[JsonPropertyName("key")]
|
|
public string Term { get; set; }
|
|
|
|
[JsonPropertyName("value")]
|
|
public int Score { get; set; }
|
|
}
|
|
|
|
[UsedImplicitly(ImplicitUseKindFlags.Assign, ImplicitUseTargetFlags.Members)]
|
|
public class SonarrReleaseProfile
|
|
{
|
|
public int Id { get; set; }
|
|
public bool Enabled { get; set; }
|
|
public string Name { get; set; } = "";
|
|
public IReadOnlyCollection<string> Required { get; set; } = new List<string>();
|
|
public IReadOnlyCollection<string> Ignored { get; set; } = new List<string>();
|
|
public IReadOnlyCollection<SonarrPreferredTerm> Preferred { get; set; } = new List<SonarrPreferredTerm>();
|
|
public bool IncludePreferredWhenRenaming { get; set; }
|
|
public int IndexerId { get; set; }
|
|
public IReadOnlyCollection<int> Tags { get; set; } = new List<int>();
|
|
}
|