mirror of
https://github.com/C9Glax/tranga.git
synced 2025-10-17 10:50:45 +02:00
Include all Data in ActionRecord return Add endpoints for returning actions related to manga and chapter Fix wrong syncs for ActionsContext
15 lines
622 B
C#
15 lines
622 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using API.Schema.MangaContext;
|
|
|
|
namespace API.Schema.ActionsContext.Actions.Generic;
|
|
|
|
public abstract class ActionWithChapterRecord(ActionsEnum action, DateTime performedAt, string chapterId) : ActionRecord(action, performedAt)
|
|
{
|
|
protected ActionWithChapterRecord(ActionsEnum action, DateTime performedAt, Chapter chapter) : this(action, performedAt, chapter.Key) { }
|
|
|
|
/// <summary>
|
|
/// <see cref="Schema.MangaContext.Manga"/> for which the cover was downloaded
|
|
/// </summary>
|
|
[StringLength(64)]
|
|
public string ChapterId { get; init; } = chapterId;
|
|
} |