mirror of
https://github.com/C9Glax/tranga.git
synced 2025-09-10 20:08:19 +02:00
24 lines
581 B
C#
24 lines
581 B
C#
using System.ComponentModel;
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace API.Controllers.DTOs;
|
|
|
|
/// <summary>
|
|
/// <see cref="API.Schema.MangaContext.AltTitle"/> DTO
|
|
/// </summary>
|
|
public sealed record AltTitle(string Language, string Title)
|
|
{
|
|
/// <summary>
|
|
/// Language of the Title
|
|
/// </summary>
|
|
[Required]
|
|
[Description("Language of the Title")]
|
|
public string Language { get; init; } = Language;
|
|
|
|
/// <summary>
|
|
/// Title
|
|
/// </summary>
|
|
[Required]
|
|
[Description("Title")]
|
|
public string Title { get; init; } = Title;
|
|
} |