mirror of
https://github.com/C9Glax/tranga.git
synced 2025-09-10 03:48:19 +02:00
39 lines
1.2 KiB
C#
39 lines
1.2 KiB
C#
using System.ComponentModel;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using API.Schema.MangaContext;
|
|
|
|
namespace API.Controllers.DTOs;
|
|
|
|
/// <summary>
|
|
/// Shortened Version of <see cref="Manga"/>
|
|
/// </summary>
|
|
public record MinimalManga(string Key, string Name, string Description, MangaReleaseStatus ReleaseStatus, IEnumerable<MangaConnectorId> MangaConnectorIds) : Identifiable(Key)
|
|
{
|
|
/// <summary>
|
|
/// Name of the Manga
|
|
/// </summary>
|
|
[Required]
|
|
[Description("Name of the Manga")]
|
|
public string Name { get; init; } = Name;
|
|
|
|
/// <summary>
|
|
/// Description of the Manga
|
|
/// </summary>
|
|
[Required]
|
|
[Description("Description of the Manga")]
|
|
public string Description { get; init; } = Description;
|
|
|
|
/// <summary>
|
|
/// ReleaseStatus of the Manga
|
|
/// </summary>
|
|
[Required]
|
|
[Description("ReleaseStatus of the Manga")]
|
|
public MangaReleaseStatus ReleaseStatus { get; init; } = ReleaseStatus;
|
|
|
|
/// <summary>
|
|
/// Ids of the Manga on MangaConnectors
|
|
/// </summary>
|
|
[Required]
|
|
[Description("Ids of the Manga on MangaConnectors")]
|
|
public IEnumerable<MangaConnectorId> MangaConnectorIds { get; init; } = MangaConnectorIds;
|
|
} |