using System;
using System.Collections.Generic;
using API.Entities.Enums;
using API.Entities.Interfaces;
namespace API.Entities;
///
/// This is a collection of which represent individual chapters and an order.
///
public class ReadingList : IEntityDate
{
public int Id { get; init; }
public string Title { get; set; }
///
/// A normalized string used to check if the reading list already exists in the DB
///
public string NormalizedTitle { get; set; }
public string Summary { get; set; }
///
/// Reading lists that are promoted are only done by admins
///
public bool Promoted { get; set; }
///
/// Absolute path to the (managed) image file
///
/// The file is managed internally to Kavita's APPDIR
public string CoverImage { get; set; }
public bool CoverImageLocked { get; set; }
///
/// The highest age rating from all Series within the reading list
///
/// Introduced in v0.6
public AgeRating AgeRating { get; set; } = AgeRating.Unknown;
public ICollection Items { get; set; }
public DateTime Created { get; set; }
public DateTime LastModified { get; set; }
public DateTime CreatedUtc { get; set; }
public DateTime LastModifiedUtc { get; set; }
// Relationships
public int AppUserId { get; set; }
public AppUser AppUser { get; set; }
}