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.
37 lines
1.1 KiB
37 lines
1.1 KiB
using System.Collections.Generic;
|
|
using JetBrains.Annotations;
|
|
using Newtonsoft.Json;
|
|
|
|
namespace Trash.Sonarr.Api.Objects
|
|
{
|
|
[UsedImplicitly(ImplicitUseKindFlags.Assign, ImplicitUseTargetFlags.Members)]
|
|
public class SonarrPreferredTerm
|
|
{
|
|
public SonarrPreferredTerm(int score, string term)
|
|
{
|
|
Term = term;
|
|
Score = score;
|
|
}
|
|
|
|
[JsonProperty("key")]
|
|
public string Term { get; set; }
|
|
|
|
[JsonProperty("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 string Required { get; set; } = "";
|
|
public string Ignored { get; set; } = "";
|
|
public List<SonarrPreferredTerm> Preferred { get; set; } = new();
|
|
public bool IncludePreferredWhenRenaming { get; set; }
|
|
public int IndexerId { get; set; }
|
|
public List<int> Tags { get; set; } = new();
|
|
}
|
|
}
|