mirror of
https://github.com/C9Glax/tranga.git
synced 2025-09-10 11:58:19 +02:00
MangaConnector DTO
This commit is contained in:
28
API/Controllers/DTOs/MangaConnector.cs
Normal file
28
API/Controllers/DTOs/MangaConnector.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace API.Controllers.DTOs;
|
||||
|
||||
public sealed record MangaConnector(string Name, bool Enabled, string IconUrl, string[] SupportedLanguages) : Identifiable(Name)
|
||||
{
|
||||
/// <summary>
|
||||
/// Whether Connector is used for Searches and Downloads
|
||||
/// </summary>
|
||||
[Required]
|
||||
[Description("Whether Connector is used for Searches and Downloads")]
|
||||
public bool Enabled { get; init; } = Enabled;
|
||||
|
||||
/// <summary>
|
||||
/// Languages supported by the Connector
|
||||
/// </summary>
|
||||
[Required]
|
||||
[Description("Languages supported by the Connector")]
|
||||
public string[] SupportedLanguages { get; init; } = SupportedLanguages;
|
||||
|
||||
/// <summary>
|
||||
/// Url of the Website Icon
|
||||
/// </summary>
|
||||
[Required]
|
||||
[Description("Url of the Website Icon")]
|
||||
public string IconUrl { get; init; } = IconUrl;
|
||||
}
|
Reference in New Issue
Block a user