(Kavita+) External Series Detail (#2309)

This commit is contained in:
Joe Milazzo 2023-10-11 19:31:40 -05:00 committed by GitHub
parent bd62e00ec5
commit 6067c9233c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
32 changed files with 2354 additions and 726 deletions

View file

@ -0,0 +1,20 @@
using System.Collections.Generic;
namespace API.DTOs.Recommendation;
public class ExternalSeriesDetailDto
{
public string Name { get; set; }
public int? AniListId { get; set; }
public long? MALId { get; set; }
public IList<string> Synonyms { get; set; }
public PlusMediaFormat PlusMediaFormat { get; set; }
public string? SiteUrl { get; set; }
public string? CoverUrl { get; set; }
public IList<string> Genres { get; set; }
public IList<SeriesStaffDto> Staff { get; set; }
public IList<MetadataTagDto> Tags { get; set; }
public string? Summary { get; set; }
public int? VolumeCount { get; set; }
public int? ChapterCount { get; set; }
}

View file

@ -7,4 +7,6 @@ public class ExternalSeriesDto
public required string CoverUrl { get; set; }
public required string Url { get; set; }
public string? Summary { get; set; }
public int? AniListId { get; set; }
public long? MalId { get; set; }
}

View file

@ -0,0 +1,11 @@
namespace API.DTOs.Recommendation;
public class MetadataTagDto
{
public string Name { get; set; }
public string Description { get; private set; }
public int? Rank { get; private set; }
public bool IsGeneralSpoiler { get; private set; }
public bool IsMediaSpoiler { get; private set; }
public bool IsAdult { get; private set; }
}

View file

@ -0,0 +1,15 @@
using System.ComponentModel;
namespace API.DTOs.Recommendation;
public enum PlusMediaFormat
{
[Description("Manga")]
Manga = 1,
[Description("Comic")]
Comic = 2,
[Description("LightNovel")]
LightNovel = 3,
[Description("Book")]
Book = 4
}

View file

@ -0,0 +1,11 @@
namespace API.DTOs.Recommendation;
public class SeriesStaffDto
{
public required string Name { get; set; }
public required string Url { get; set; }
public required string Role { get; set; }
public string? ImageUrl { get; set; }
public string? Gender { get; set; }
public string? Description { get; set; }
}