mirror of
https://github.com/C9Glax/tranga.git
synced 2025-09-10 03:48:19 +02:00
23 lines
646 B
C#
23 lines
646 B
C#
using System.ComponentModel;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using API.Schema.LibraryContext.LibraryConnectors;
|
|
|
|
namespace API.Controllers.DTOs;
|
|
|
|
public record LibraryConnector(string Key, string BaseUrl, LibraryType Type) : Identifiable(Key)
|
|
{
|
|
/// <summary>
|
|
/// The Url of the Library instance
|
|
/// </summary>
|
|
[Required]
|
|
[Url]
|
|
[Description("The Url of the Library instance")]
|
|
public string BaseUrl { get; init;} = BaseUrl;
|
|
|
|
/// <summary>
|
|
/// The <see cref="LibraryType"/>
|
|
/// </summary>
|
|
[Required]
|
|
[Description("The Library Type")]
|
|
public LibraryType Type { get; init; } = Type;
|
|
} |