Files
Tranga/API/Schema/ActionsContext/Actions/LibraryMovedActionRecord.cs
2025-10-16 19:13:44 +02:00

16 lines
720 B
C#

using System.ComponentModel.DataAnnotations;
using API.Schema.ActionsContext.Actions.Generic;
using API.Schema.MangaContext;
namespace API.Schema.ActionsContext.Actions;
public sealed class LibraryMovedActionRecord(ActionsEnum action, DateTime performedAt, string mangaId, string fileLibraryId) : ActionWithMangaRecord(action, performedAt, mangaId)
{
public LibraryMovedActionRecord(Manga manga, FileLibrary library) : this(ActionsEnum.LibraryMoved, DateTime.UtcNow, manga.Key, library.Key) { }
/// <summary>
/// <see cref="Schema.MangaContext.FileLibrary"/> for which the cover was downloaded
/// </summary>
[StringLength(64)]
public string FileLibraryId { get; init; } = fileLibraryId;
}