using System.Collections.Generic;
namespace API.DTOs
{
    public class ChapterDto
    {
        public int Id { get; init; }
        /// 
        /// Range of chapters. Chapter 2-4 -> "2-4". Chapter 2 -> "2".
        /// 
        public string Range { get; init; }
        /// 
        /// Smallest number of the Range. 
        /// 
        public string Number { get; init; }
        /// 
        /// Total number of pages in all MangaFiles
        /// 
        public int Pages { get; init; }
        /// 
        /// If this Chapter contains files that could only be identified as Series or has Special Identifier from filename
        /// 
        public bool IsSpecial { get; init; }
        /// 
        /// Used for books/specials to display custom title. For non-specials/books, will be set to  
        /// 
        public string Title { get; init; }
        /// 
        /// The files that represent this Chapter
        /// 
        public ICollection Files { get; init; }
        /// 
        /// Calculated at API time. Number of pages read for this Chapter for logged in user.
        /// 
        public int PagesRead { get; set; }
        public int VolumeId { get; init; }
    }
}