(Kavita+) External Series Detail (#2309)
This commit is contained in:
parent
bd62e00ec5
commit
6067c9233c
32 changed files with 2354 additions and 726 deletions
20
API/DTOs/Recommendation/ExternalSeriesDetailDto.cs
Normal file
20
API/DTOs/Recommendation/ExternalSeriesDetailDto.cs
Normal 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; }
|
||||
}
|
|
@ -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; }
|
||||
}
|
||||
|
|
11
API/DTOs/Recommendation/MetadataTagDto.cs
Normal file
11
API/DTOs/Recommendation/MetadataTagDto.cs
Normal 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; }
|
||||
}
|
15
API/DTOs/Recommendation/PlusMediaFormat.cs
Normal file
15
API/DTOs/Recommendation/PlusMediaFormat.cs
Normal 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
|
||||
}
|
11
API/DTOs/Recommendation/SeriesStaffDto.cs
Normal file
11
API/DTOs/Recommendation/SeriesStaffDto.cs
Normal 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; }
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue