Add Controller

This commit is contained in:
2025-09-21 16:59:12 +02:00
parent 4e3968f4b1
commit 55a8b09310
8 changed files with 76 additions and 8 deletions

View File

@@ -1,6 +1,8 @@
using API.Schema.LibraryContext;
using API.Schema.LibraryContext.LibraryConnectors;
using Microsoft.EntityFrameworkCore;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
namespace API.Workers;
@@ -20,10 +22,23 @@ public class RefreshLibrariesWorker(IEnumerable<BaseWorker>? dependsOn = null) :
}
}
[JsonConverter(typeof(StringEnumConverter))]
public enum LibraryRefreshSetting : byte
{
/// <summary>
/// Refresh Libraries after all Manga are downloaded
/// </summary>
AfterAllFinished = 0,
/// <summary>
/// Refresh Libraries after a Manga is downloaded
/// </summary>
AfterMangaFinished = 1,
/// <summary>
/// Refresh Libraries after every download
/// </summary>
AfterEveryChapter = 2,
/// <summary>
/// Refresh Libraries while downloading chapters, every x minutes
/// </summary>
WhileDownloading = 3
}