Files
Cleanuparr/code/backend/Cleanuparr.Infrastructure/Features/DownloadRemover/Models/ArrRemovalTarget.cs
T
2026-10-09 02:10:04 +03:00

27 lines
833 B
C#

using Cleanuparr.Domain.Entities.Arr;
using Cleanuparr.Domain.Entities.Arr.Queue;
namespace Cleanuparr.Infrastructure.Features.DownloadRemover.Models;
public sealed record ArrRemovalTarget : RemovalTarget
{
public required QueueRecord Record { get; init; }
public required SearchItem SearchItem { get; init; }
/// <summary>
/// The *arr removes the download from the client on our behalf.
/// Mutually exclusive with <see cref="ChangeCategory"/>.
/// </summary>
public required bool RemoveFromClient { get; init; }
/// <summary>
/// The *arr moves the download to its post-import category instead of removing it.
/// </summary>
public bool ChangeCategory { get; init; }
public override string DownloadId => Record.DownloadId;
public override string Title => Record.Title;
}