using API.Entities.Enums;
using API.Entities.Enums.UserPreferences;
namespace API.Entities
{
    public class AppUserPreferences
    {
        public int Id { get; set; }
        /// 
        /// Manga Reader Option: What direction should the next/prev page buttons go
        /// 
        public ReadingDirection ReadingDirection { get; set; } = ReadingDirection.LeftToRight;
        /// 
        /// Manga Reader Option: How should the image be scaled to screen
        /// 
        public ScalingOption ScalingOption { get; set; } = ScalingOption.Automatic;
        /// 
        /// Manga Reader Option: Which side of a split image should we show first
        /// 
        public PageSplitOption PageSplitOption { get; set; } = PageSplitOption.FitSplit;
        /// 
        /// Manga Reader Option: How the manga reader should perform paging or reading of the file
        /// 
        /// Webtoon uses scrolling to page, MANGA_LR uses paging by clicking left/right side of reader, MANGA_UD uses paging
        /// by clicking top/bottom sides of reader.
        /// 
        /// 
        public ReaderMode ReaderMode { get; set; }
        /// 
        /// Manga Reader Option: Allow the menu to close after 6 seconds without interaction
        /// 
        public bool AutoCloseMenu { get; set; } = true;
        /// 
        /// Manga Reader Option: Show screen hints to the user on some actions, ie) pagination direction change
        /// 
        public bool ShowScreenHints { get; set; } = true;
        /// 
        /// Manga Reader Option: How many pages to display in the reader at once
        /// 
        public LayoutMode LayoutMode { get; set; } = LayoutMode.Single;
        /// 
        /// Manga Reader Option: Background color of the reader
        /// 
        public string BackgroundColor { get; set; } = "#000000";
        /// 
        /// Book Reader Option: Override extra Margin
        /// 
        public int BookReaderMargin { get; set; } = 15;
        /// 
        /// Book Reader Option: Override line-height
        /// 
        public int BookReaderLineSpacing { get; set; } = 100;
        /// 
        /// Book Reader Option: Override font size
        /// 
        public int BookReaderFontSize { get; set; } = 100;
        /// 
        /// Book Reader Option: Maps to the default Kavita font-family (inherit) or an override
        /// 
        public string BookReaderFontFamily { get; set; } = "default";
        /// 
        /// Book Reader Option: Allows tapping on side of screens to paginate
        /// 
        public bool BookReaderTapToPaginate { get; set; } = false;
        /// 
        /// Book Reader Option: What direction should the next/prev page buttons go
        /// 
        public ReadingDirection BookReaderReadingDirection { get; set; } = ReadingDirection.LeftToRight;
        /// 
        /// UI Site Global Setting: The UI theme the user should use.
        /// 
        /// Should default to Dark
        public SiteTheme Theme { get; set; }
        /// 
        /// Book Reader Option: The color theme to decorate the book contents
        /// 
        /// Should default to Dark
        public string BookThemeName { get; set; } = "Dark";
        /// 
        /// Book Reader Option: The way a page from a book is rendered. Default is as book dictates, 1 column is fit to height,
        /// 2 column is fit to height, 2 columns
        /// 
        /// Defaults to Default
        public BookPageLayoutMode BookReaderLayoutMode { get; set; } = BookPageLayoutMode.Default;
        /// 
        /// Book Reader Option: A flag that hides the menu-ing system behind a click on the screen. This should be used with tap to paginate, but the app doesn't enforce this.
        /// 
        /// Defaults to false
        public bool BookReaderImmersiveMode { get; set; } = false;
        /// 
        /// Global Site Option: If the UI should layout items as Cards or List items
        /// 
        /// Defaults to Cards
        public PageLayoutMode GlobalPageLayoutMode { get; set; } = PageLayoutMode.Cards;
        /// 
        /// UI Site Global Setting: If unread summaries should be blurred until expanded or unless user has read it already
        /// 
        /// Defaults to false
        public bool BlurUnreadSummaries { get; set; } = false;
        public AppUser AppUser { get; set; }
        public int AppUserId { get; set; }
    }
}