Files
PageManager/PageManager.Api/PageManager.Api/Api/Dtos/HardcoverDtos.cs
T

66 lines
2.1 KiB
C#

namespace PageManager.Api.Api.Dtos;
public class HardcoverBookResult
{
public int Id { get; set; }
public string Title { get; set; } = string.Empty;
public string[] Authors { get; set; } = [];
public int? Year { get; set; }
public string[] Genres { get; set; } = [];
}
public class HardcoverAuthor
{
public int? HardcoverId { get; set; }
public string Name { get; set; } = string.Empty;
public string? Bio { get; set; }
public int? BornYear { get; set; }
public string? ImageUrl { get; set; }
public string? Slug { get; set; }
public string Role { get; set; } = "Author";
}
public class HardcoverBookDetails
{
public int Id { get; set; }
public string Title { get; set; } = string.Empty;
public string? Description { get; set; }
public int? Pages { get; set; }
public int? Year { get; set; }
public HardcoverAuthor[] Authors { get; set; } = [];
public string[] Genres { get; set; } = [];
public string? Isbn { get; set; }
public string? Publisher { get; set; }
public string? CoverUrl { get; set; }
public string? CoverColor { get; set; }
public HardcoverSeriesInfo? Series { get; set; }
public HardcoverEdition[] Editions { get; set; } = [];
}
public class HardcoverSeriesInfo
{
public string Name { get; set; } = string.Empty;
public double Position { get; set; }
}
public class HardcoverEdition
{
public string? Isbn { get; set; }
public string? Asin { get; set; }
public string? Publisher { get; set; }
public int? ReleaseYear { get; set; }
public PageManager.Api.Data.Models.ReadingFormat? ReadingFormat { get; set; }
public string? EditionFormat { get; set; }
public int? Pages { get; set; }
public int? AudioSeconds { get; set; }
public string? Language { get; set; }
public string? LanguageCode { get; set; }
public string? CoverUrl { get; set; }
public string? CoverColor { get; set; }
}
public class CreateBookFromHardcoverRequest
{
public int HardcoverId { get; set; }
}