mirror of
https://github.com/Kareadita/Kavita.git
synced 2026-06-05 14:25:17 -04:00
Progress Overhaul + Profile Page and a LOT more! (#4262)
Co-authored-by: Amelia <77553571+Fesaa@users.noreply.github.com> Co-authored-by: Robbie Davis <robbie@therobbiedavis.com>
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
using System;
|
||||
using System.Text.Json.Serialization;
|
||||
using API.Entities.Interfaces;
|
||||
|
||||
namespace API.Entities;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Represents a saved page in a Chapter entity for a given user.
|
||||
/// </summary>
|
||||
public class AppUserBookmark : IEntityDate
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public int Page { get; set; }
|
||||
public int SeriesId { get; set; }
|
||||
public int VolumeId { get; set; }
|
||||
public int ChapterId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Filename in the Bookmark Directory
|
||||
/// </summary>
|
||||
public string FileName { get; set; } = string.Empty;
|
||||
/// <summary>
|
||||
/// Only applicable for Epubs - handles multiple images on one page
|
||||
/// </summary>
|
||||
/// <remarks>0-based index of the image position on page</remarks>
|
||||
public int ImageOffset { get; set; }
|
||||
/// <summary>
|
||||
/// Only applicable for Epubs
|
||||
/// </summary>
|
||||
public string? XPath { get; set; }
|
||||
/// <summary>
|
||||
/// Chapter name (from ToC) or Title (from ComicInfo/PDF)
|
||||
/// </summary>
|
||||
public string? ChapterTitle { get; set; }
|
||||
|
||||
// Relationships
|
||||
[JsonIgnore]
|
||||
public AppUser AppUser { get; set; } = null!;
|
||||
public int AppUserId { get; set; }
|
||||
public DateTime Created { get; set; }
|
||||
public DateTime LastModified { get; set; }
|
||||
public DateTime CreatedUtc { get; set; }
|
||||
public DateTime LastModifiedUtc { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user