mirror of
https://github.com/C9Glax/tranga.git
synced 2025-04-14 12:23:17 +02:00
27 lines
876 B
C#
27 lines
876 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using Newtonsoft.Json;
|
|
|
|
namespace API.Schema.Jobs;
|
|
|
|
public class UpdateMetadataJob(ulong recurrenceMs, string mangaId, string? parentJobId = null, ICollection<string>? dependsOnJobsIds = null)
|
|
: Job(TokenGen.CreateToken(typeof(UpdateMetadataJob)), JobType.UpdateMetaDataJob, recurrenceMs, parentJobId, dependsOnJobsIds)
|
|
{
|
|
[StringLength(64)]
|
|
[Required]
|
|
public string MangaId { get; init; } = mangaId;
|
|
|
|
[JsonIgnore]
|
|
public virtual Manga? Manga { get; init; }
|
|
|
|
/// <summary>
|
|
/// Updates all data related to Manga.
|
|
/// Retrieves data from Mangaconnector
|
|
/// Updates Chapter-info
|
|
/// </summary>
|
|
/// <param name="context"></param>
|
|
protected override IEnumerable<Job> RunInternal(PgsqlContext context)
|
|
{
|
|
Log.Warn("NOT IMPLEMENTED.");
|
|
return [];//TODO
|
|
}
|
|
} |