mirror of
https://github.com/C9Glax/tranga.git
synced 2025-02-24 00:00:13 +01:00
18 lines
648 B
C#
18 lines
648 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace API.Schema.LibraryConnectors;
|
|
|
|
[PrimaryKey("LibraryConnectorId")]
|
|
public abstract class LibraryConnector(string libraryConnectorId, LibraryType libraryType, string baseUrl, string auth) : APISerializable
|
|
{
|
|
[MaxLength(64)]
|
|
public string LibraryConnectorId { get; } = libraryConnectorId;
|
|
|
|
public LibraryType LibraryType { get; init; } = libraryType;
|
|
public string BaseUrl { get; init; } = baseUrl;
|
|
public string Auth { get; init; } = auth;
|
|
|
|
protected abstract void UpdateLibraryInternal();
|
|
internal abstract bool Test();
|
|
} |