using System.Collections.Generic; using API.Entities.Enums; using API.Entities.Enums.UserPreferences; namespace API.Entities; public class AppUserReadingProfile { public int Id { get; set; } public string Name { get; set; } public string NormalizedName { get; set; } public int AppUserId { get; set; } public AppUser AppUser { get; set; } public ReadingProfileKind Kind { get; set; } public List LibraryIds { get; set; } public List SeriesIds { get; set; } #region MangaReader /// /// 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: Emulate a book by applying a shadow effect on the pages /// public bool EmulateBook { get; set; } = false; /// /// 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"; /// /// Manga Reader Option: Should swiping trigger pagination /// public bool SwipeToPaginate { get; set; } /// /// Manga Reader Option: Allow Automatic Webtoon detection /// public bool AllowAutomaticWebtoonReaderDetection { get; set; } /// /// Manga Reader Option: Optional fixed width override /// public int? WidthOverride { get; set; } = null; #endregion #region EpubReader /// /// 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; /// /// Book Reader Option: Defines the writing styles vertical/horizontal /// public WritingStyle BookReaderWritingStyle { get; set; } = WritingStyle.Horizontal; /// /// 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; #endregion #region PdfReader /// /// PDF Reader: Theme of the Reader /// public PdfTheme PdfTheme { get; set; } = PdfTheme.Dark; /// /// PDF Reader: Scroll mode of the reader /// public PdfScrollMode PdfScrollMode { get; set; } = PdfScrollMode.Vertical; /// /// PDF Reader: Spread Mode of the reader /// public PdfSpreadMode PdfSpreadMode { get; set; } = PdfSpreadMode.None; #endregion }