From 2572a537ab41ee1519d7d71371471bf05c14f8ce Mon Sep 17 00:00:00 2001 From: glax Date: Thu, 24 Aug 2023 13:34:23 +0200 Subject: [PATCH] Job Inherits from GlobalBase --- Tranga/Jobs/Job.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Tranga/Jobs/Job.cs b/Tranga/Jobs/Job.cs index 44e4774..e302052 100644 --- a/Tranga/Jobs/Job.cs +++ b/Tranga/Jobs/Job.cs @@ -2,7 +2,7 @@ namespace Tranga.Jobs; -public abstract class Job +public abstract class Job : GlobalBase { public MangaConnector mangaConnector { get; init; } public ProgressToken progressToken { get; private set; } @@ -11,7 +11,7 @@ public abstract class Job public DateTime? lastExecution { get; private set; } public DateTime nextExecution => NextExecution(); - public Job(MangaConnector connector, bool recurring = false, TimeSpan? recurrenceTime = null) + public Job(GlobalBase clone, MangaConnector connector, bool recurring = false, TimeSpan? recurrenceTime = null) : base(clone) { this.mangaConnector = connector; this.progressToken = new ProgressToken(0); @@ -21,7 +21,7 @@ public abstract class Job this.recurrenceTime = recurrenceTime; } - public Job(MangaConnector connector, ProgressToken progressToken, bool recurring = false, TimeSpan? recurrenceTime = null) + public Job(GlobalBase clone, MangaConnector connector, ProgressToken progressToken, bool recurring = false, TimeSpan? recurrenceTime = null) : base(clone) { this.mangaConnector = connector; this.progressToken = progressToken; @@ -31,7 +31,7 @@ public abstract class Job this.recurrenceTime = recurrenceTime; } - public Job(MangaConnector connector, int taskIncrements, bool recurring = false, TimeSpan? recurrenceTime = null) + public Job(GlobalBase clone, MangaConnector connector, int taskIncrements, bool recurring = false, TimeSpan? recurrenceTime = null) : base(clone) { this.mangaConnector = connector; this.progressToken = new ProgressToken(taskIncrements);