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)
{
///
/// Whether Connector is used for Searches and Downloads
///
[Required]
[Description("Whether Connector is used for Searches and Downloads")]
public bool Enabled { get; init; } = Enabled;
///
/// Languages supported by the Connector
///
[Required]
[Description("Languages supported by the Connector")]
public string[] SupportedLanguages { get; init; } = SupportedLanguages;
///
/// Url of the Website Icon
///
[Required]
[Description("Url of the Website Icon")]
public string IconUrl { get; init; } = IconUrl;
}