mirror of
https://github.com/C9Glax/tranga.git
synced 2025-09-10 03:48:19 +02:00
25 lines
594 B
C#
25 lines
594 B
C#
using System.ComponentModel;
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace API.Controllers.DTOs;
|
|
|
|
|
|
/// <summary>
|
|
/// <see cref="API.Schema.MangaContext.Link"/> DTO
|
|
/// </summary>
|
|
public sealed record Link(string Key, string Provider, string Url) : Identifiable(Key)
|
|
{
|
|
/// <summary>
|
|
/// Name of the Provider
|
|
/// </summary>
|
|
[Required]
|
|
[Description("Name of the Provider")]
|
|
public string Provider { get; init; } = Provider;
|
|
|
|
/// <summary>
|
|
/// Url
|
|
/// </summary>
|
|
[Required]
|
|
[Description("Url")]
|
|
public string Url { get; init; } = Url;
|
|
} |