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

17 lines
645 B
C#

using System.ComponentModel.DataAnnotations;
using API.Schema.ActionsContext.Actions.Generic;
using API.Schema.MangaContext;
namespace API.Schema.ActionsContext.Actions;
public sealed class CoverDownloadedActionRecord(ActionsEnum action, DateTime performedAt, string mangaId, string filename)
: ActionWithMangaRecord(action, performedAt, mangaId)
{
public CoverDownloadedActionRecord(Manga manga, string filename) : this(ActionsEnum.CoverDownloaded, DateTime.UtcNow, manga.Key, filename) { }
/// <summary>
/// Filename on disk
/// </summary>
[StringLength(1024)]
public string Filename { get; init; } = filename;
}