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.
recyclarr/src/Recyclarr.Cli/Pipelines/QualityProfile/Api/QualityProfileDto.cs

32 lines
919 B

using JetBrains.Annotations;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
namespace Recyclarr.Cli.Pipelines.QualityProfile.Api;
[UsedImplicitly]
public record QualityProfileDto
{
public int Id { get; [UsedImplicitly] init; }
public string Name { get; init; } = "";
public bool UpgradeAllowed { get; init; }
public int MinFormatScore { get; init; }
public int Cutoff { get; init; }
public int CutoffFormatScore { get; init; }
public IReadOnlyCollection<ProfileFormatItemDto> FormatItems { get; init; } = Array.Empty<ProfileFormatItemDto>();
[JsonExtensionData]
public JObject? ExtraJson { get; init; }
}
[UsedImplicitly]
public record ProfileFormatItemDto
{
public int Format { get; init; }
public string Name { get; init; } = "";
public int Score { get; init; }
[JsonExtensionData]
public Dictionary<string, object> ExtraJson { get; init; } = new();
}