mirror of
https://github.com/Cleanuparr/Cleanuparr.git
synced 2026-01-20 11:48:19 -05:00
23 lines
571 B
C#
23 lines
571 B
C#
using Common.Configuration.ContentBlocker;
|
|
using Microsoft.Extensions.Configuration;
|
|
|
|
namespace Common.Configuration.Arr;
|
|
|
|
public abstract record ArrConfig
|
|
{
|
|
public required bool Enabled { get; init; }
|
|
|
|
public Block Block { get; init; } = new();
|
|
|
|
[ConfigurationKeyName("IMPORT_FAILED_MAX_STRIKES")]
|
|
public short ImportFailedMaxStrikes { get; init; } = -1;
|
|
|
|
public required List<ArrInstance> Instances { get; init; }
|
|
}
|
|
|
|
public readonly record struct Block
|
|
{
|
|
public BlocklistType Type { get; init; }
|
|
|
|
public string? Path { get; init; }
|
|
} |