mirror of
https://github.com/C9Glax/tranga.git
synced 2025-10-11 13:19:48 +02:00
Add Controller
This commit is contained in:
@@ -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
|
||||
}
|
Reference in New Issue
Block a user