using System; using System.Collections.Generic; namespace Jellyfin.Plugin.RecentlyAddedGuard.Ledger; /// /// The first "date added" of one logical medium (a movie or an episode), independent of its files. /// /// /// and are indexed by the ; /// change them only through the store so the indexes stay consistent. /// public sealed class LedgerEntry { /// /// Gets or sets all alias keys of the medium (e.g. movie:tmdb:603). /// #pragma warning disable CA1819 // Plain persistence model; the store owns all mutations. public string[] Keys { get; set; } = []; #pragma warning restore CA1819 /// /// Gets or sets the protected first "date added" (UTC). /// public DateTime FirstAdded { get; set; } /// /// Gets or sets when an item of this medium was last seen (UTC). /// public DateTime LastSeen { get; set; } /// /// Gets or sets when the last live item of this medium disappeared (UTC); null while items exist. /// public DateTime? RemovedAt { get; set; } /// /// Gets or sets the ids of the Jellyfin items currently representing this medium. /// #pragma warning disable CA2227 // Plain persistence model; the store owns all mutations. public HashSet LiveItemIds { get; set; } = []; #pragma warning restore CA2227 /// /// Gets or sets a display name for logs and the configuration page. /// public string DisplayName { get; set; } = string.Empty; }