using System.Collections.Generic;
namespace API.DTOs.SeriesDetail;
#nullable enable
///
/// This is a special DTO for a UI page in Kavita. This performs sorting and grouping and returns exactly what UI requires for layout.
/// This is subject to change, do not rely on this Data model.
///
public sealed record SeriesDetailDto
{
///
/// Specials for the Series. These will have their title and range cleaned to remove the special marker and prepare
///
public IEnumerable Specials { get; set; } = default!;
///
/// All Chapters, excluding Specials and single chapters (0 chapter) for a volume
///
public IEnumerable Chapters { get; set; } = default!;
///
/// Just the Volumes for the Series (Excludes Volume 0)
///
public IEnumerable Volumes { get; set; } = default!;
///
/// These are chapters that are in Volume 0 and should be read AFTER the volumes
///
public IEnumerable StorylineChapters { get; set; } = default!;
///
/// How many chapters are unread
///
public int UnreadCount { get; set; }
///
/// How many chapters are there
///
public int TotalCount { get; set; }
}