mirror of
https://github.com/C9Glax/tranga.git
synced 2025-10-16 10:20:46 +02:00
15 lines
596 B
C#
15 lines
596 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using API.Schema.MangaContext;
|
|
|
|
namespace API.Schema.ActionsContext.Actions.Generic;
|
|
|
|
public abstract class ActionWithMangaRecord(string action, DateTime performedAt, string mangaId) : ActionRecord(action, performedAt)
|
|
{
|
|
protected ActionWithMangaRecord(string action, DateTime performedAt, Manga manga) : this(action, performedAt, manga.Key) { }
|
|
|
|
/// <summary>
|
|
/// <see cref="Schema.MangaContext.Manga"/> for which the cover was downloaded
|
|
/// </summary>
|
|
[StringLength(64)]
|
|
public string MangaId { get; init; } = mangaId;
|
|
} |