mirror of
https://github.com/C9Glax/tranga.git
synced 2025-10-17 10:50:45 +02:00
19 lines
704 B
C#
19 lines
704 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)
|
|
: ActionRecord(action, performedAt), IActionWithMangaRecord
|
|
{
|
|
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;
|
|
|
|
public string MangaId { get; init; } = mangaId;
|
|
} |