using System.ComponentModel.DataAnnotations;
namespace API.Schema.MangaContext.MetadataFetchers;
public record MetadataSearchResult(
string Identifier,
string Name,
string Url,
string? Description = null,
string? CoverUrl = null)
{
///
/// Identifier specific to the MetadataFetcher
///
[Required]
public string Identifier { get; init; } = Identifier;
///
/// Name of the Manga
///
[Required]
public string Name { get; init; } = Name;
///
/// Url to the result
///
[Required]
public string Url { get; init; } = Url;
///
/// Description of the Manga
///
[Required]
public string? Description { get; init; } = Description;
///
/// Url to the cover if available
///
[Required]
public string? CoverUrl { get; init; } = CoverUrl;
}