mirror of
https://github.com/Cleanuparr/Cleanuparr.git
synced 2026-09-14 06:17:11 -04:00
17 lines
522 B
C#
17 lines
522 B
C#
using System.Text.Json.Serialization;
|
|
|
|
namespace Cleanuparr.Infrastructure.Features.DownloadRemover.Models;
|
|
|
|
[JsonPolymorphic(TypeDiscriminatorPropertyName = "$target")]
|
|
[JsonDerivedType(typeof(ArrRemovalTarget), "arr")]
|
|
[JsonDerivedType(typeof(LazyLibrarianRemovalTarget), "lazyLibrarian")]
|
|
public abstract record RemovalTarget
|
|
{
|
|
// JsonIgnore does not reach an override. Annotate each one.
|
|
[JsonIgnore]
|
|
public abstract string DownloadId { get; }
|
|
|
|
[JsonIgnore]
|
|
public abstract string Title { get; }
|
|
}
|