mirror of
https://github.com/Cleanuparr/Cleanuparr.git
synced 2026-03-26 10:03:12 -04:00
31 lines
984 B
C#
31 lines
984 B
C#
namespace Cleanuparr.Api.Features.DownloadCleaner.Contracts.Requests;
|
|
|
|
public sealed record UpdateDownloadCleanerConfigRequest
|
|
{
|
|
public bool Enabled { get; init; }
|
|
|
|
public string CronExpression { get; init; } = "0 0 * * * ?";
|
|
|
|
/// <summary>
|
|
/// Indicates whether to use the CronExpression directly or convert from a user-friendly schedule.
|
|
/// </summary>
|
|
public bool UseAdvancedScheduling { get; init; }
|
|
|
|
public List<SeedingRuleRequest> Categories { get; init; } = [];
|
|
|
|
/// <summary>
|
|
/// Indicates whether unlinked download handling is enabled.
|
|
/// </summary>
|
|
public bool UnlinkedEnabled { get; init; }
|
|
|
|
public string UnlinkedTargetCategory { get; init; } = "cleanuparr-unlinked";
|
|
|
|
public bool UnlinkedUseTag { get; init; }
|
|
|
|
public List<string> UnlinkedIgnoredRootDirs { get; init; } = [];
|
|
|
|
public List<string> UnlinkedCategories { get; init; } = [];
|
|
|
|
public List<string> IgnoredDownloads { get; init; } = [];
|
|
}
|