mirror of
https://github.com/Kareadita/Kavita.git
synced 2025-05-24 00:52:23 -04:00
* Added book reader reading direction preference * Adds a new marker to the AppUserProgress to capture nearest anchor for resuming scroll point when reading books. Refactored bookmark api to return a BookmarkDto which includes this new data.
30 lines
915 B
C#
30 lines
915 B
C#
|
|
using System;
|
|
using API.Entities.Interfaces;
|
|
|
|
namespace API.Entities
|
|
{
|
|
/// <summary>
|
|
/// Represents the progress a single user has on a given Chapter.
|
|
/// </summary>
|
|
public class AppUserProgress : IEntityDate
|
|
{
|
|
public int Id { get; set; }
|
|
public int PagesRead { get; set; }
|
|
public int VolumeId { get; set; }
|
|
public int SeriesId { get; set; }
|
|
public int ChapterId { get; set; }
|
|
/// <summary>
|
|
/// For Book Reader, represents the nearest passed anchor on the screen that can be used to resume scroll point
|
|
/// on next load
|
|
/// </summary>
|
|
public string BookScrollId { get; set; }
|
|
|
|
// Relationships
|
|
public AppUser AppUser { get; set; }
|
|
public int AppUserId { get; set; }
|
|
|
|
public DateTime Created { get; set; }
|
|
public DateTime LastModified { get; set; }
|
|
}
|
|
} |