mirror of
https://github.com/C9Glax/tranga.git
synced 2025-10-11 13:19:48 +02:00
Add Controller
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using log4net;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Converters;
|
||||
|
||||
namespace API.Schema.LibraryContext.LibraryConnectors;
|
||||
|
||||
@@ -40,8 +42,16 @@ public abstract class LibraryConnector : Identifiable
|
||||
internal abstract Task<bool> Test(CancellationToken ct);
|
||||
}
|
||||
|
||||
[JsonConverter(typeof(StringEnumConverter))]
|
||||
public enum LibraryType : byte
|
||||
{
|
||||
/// <summary>
|
||||
/// <seealso cref="Komga"/>
|
||||
/// </summary>
|
||||
Komga = 0,
|
||||
|
||||
/// <summary>
|
||||
/// <seealso cref="Kavita"/>
|
||||
/// </summary>
|
||||
Kavita = 1
|
||||
}
|
Reference in New Issue
Block a user