mirror of
https://github.com/Cleanuparr/Cleanuparr.git
synced 2026-09-17 07:56:27 -04:00
22 lines
679 B
C#
22 lines
679 B
C#
using System.Text.Json.Serialization;
|
|
using Cleanuparr.Domain.Entities.LazyLibrarian;
|
|
|
|
namespace Cleanuparr.Infrastructure.Features.DownloadRemover.Models;
|
|
|
|
public sealed record LazyLibrarianRemovalTarget : RemovalTarget
|
|
{
|
|
public required LazyLibrarianQueueItem Item { get; init; }
|
|
|
|
/// <summary>
|
|
/// Whether Cleanuparr already removed the torrent from the client.
|
|
/// LazyLibrarian only clears the snatch once the client no longer holds it.
|
|
/// </summary>
|
|
public required bool RemovedFromClient { get; init; }
|
|
|
|
[JsonIgnore]
|
|
public override string DownloadId => Item.DownloadId;
|
|
|
|
[JsonIgnore]
|
|
public override string Title => Item.Title;
|
|
}
|