mirror of
https://github.com/C9Glax/tranga.git
synced 2025-10-16 10:20:46 +02:00
17 lines
617 B
C#
17 lines
617 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using API.Schema.MangaContext;
|
|
|
|
namespace API.Schema.ActionsContext.Actions;
|
|
|
|
public sealed class ChapterDownloadedActionRecord(string action, DateTime performedAt, string chapterId) : ActionRecord(action, performedAt)
|
|
{
|
|
public ChapterDownloadedActionRecord(Chapter chapter) : this(ChapterDownloadedAction, DateTime.UtcNow, chapter.Key) { }
|
|
|
|
/// <summary>
|
|
/// Chapter that was downloaded
|
|
/// </summary>
|
|
[StringLength(64)]
|
|
public string ChapterId { get; init; } = chapterId;
|
|
|
|
public const string ChapterDownloadedAction = "Chapter.Downloaded";
|
|
} |