mirror of
https://github.com/Kareadita/Kavita.git
synced 2025-07-09 03:04:19 -04:00
49 lines
1.7 KiB
C#
49 lines
1.7 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using API.DTOs.Recommendation;
|
|
using API.DTOs.Scrobbling;
|
|
using API.Services.Plus;
|
|
|
|
namespace API.DTOs.KavitaPlus.Metadata;
|
|
#nullable enable
|
|
|
|
/// <summary>
|
|
/// This is AniListSeries
|
|
/// </summary>
|
|
public sealed record ExternalSeriesDetailDto
|
|
{
|
|
public string Name { get; set; }
|
|
public int? AniListId { get; set; }
|
|
public long? MALId { get; set; }
|
|
public int? CbrId { 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 ScrobbleProvider Provider { get; set; } = ScrobbleProvider.AniList;
|
|
|
|
public DateTime? StartDate { get; set; }
|
|
public DateTime? EndDate { get; set; }
|
|
public int AverageScore { get; set; }
|
|
/// <remarks>AniList returns the total count of unique chapters, includes 1.1 for example</remarks>
|
|
public int Chapters { get; set; }
|
|
/// <remarks>AniList returns the total count of unique volumes, includes 1.1 for example</remarks>
|
|
public int Volumes { get; set; }
|
|
public IList<SeriesRelationship>? Relations { get; set; } = [];
|
|
public IList<SeriesCharacter>? Characters { get; set; } = [];
|
|
|
|
#region Comic Only
|
|
public string? Publisher { get; set; }
|
|
/// <summary>
|
|
/// Only from CBR for <see cref="ScrobbleProvider.Cbr"/>. Full metadata about issues
|
|
/// </summary>
|
|
public IList<ExternalChapterDto>? ChapterDtos { get; set; }
|
|
#endregion
|
|
|
|
|
|
}
|