Tranga/API/Schema/Jobs/UpdateMetadataJob.cs

16 lines
610 B
C#
Raw Normal View History

2024-12-14 21:53:29 +01:00
using System.ComponentModel.DataAnnotations;
namespace API.Schema.Jobs;
2025-01-09 01:34:03 +01:00
public class UpdateMetadataJob(ulong recurrenceMs, string mangaId, string? parentJobId = null, ICollection<string>? dependsOnJobsIds = null)
: Job(TokenGen.CreateToken(typeof(UpdateMetadataJob), 64), JobType.UpdateMetaDataJob, recurrenceMs, parentJobId, dependsOnJobsIds)
2024-12-14 21:53:29 +01:00
{
[MaxLength(64)]
public string MangaId { get; init; } = mangaId;
public virtual Manga Manga { get; init; }
2024-12-16 23:29:57 +01:00
protected override IEnumerable<Job> RunInternal(PgsqlContext context)
2024-12-14 21:53:29 +01:00
{
throw new NotImplementedException();
}
}