mirror of
https://github.com/Kareadita/Kavita.git
synced 2026-03-10 20:15:26 -04:00
Co-authored-by: Joseph Milazzo <joseph.v.milazzo@gmail.com> Co-authored-by: Joe Milazzo <josephmajora@gmail.com>
31 lines
1012 B
C#
31 lines
1012 B
C#
namespace Kavita.Models.DTOs.Reader;
|
|
|
|
#nullable enable
|
|
|
|
public sealed record PersonalToCDto
|
|
{
|
|
public required int Id { get; init; }
|
|
public required int ChapterId { get; set; }
|
|
/// <summary>
|
|
/// The page to bookmark
|
|
/// </summary>
|
|
public required int PageNumber { get; set; }
|
|
/// <summary>
|
|
/// The title of the bookmark. Defaults to Page {PageNumber} if not set
|
|
/// </summary>
|
|
public required string Title { get; set; }
|
|
/// <summary>
|
|
/// For Book Reader, represents the nearest passed anchor on the screen that can be used to resume scroll point. If empty, the ToC point is the beginning of the page
|
|
/// </summary>
|
|
public string? BookScrollId { get; set; }
|
|
/// <summary>
|
|
/// Text of the bookmark
|
|
/// </summary>
|
|
public string? SelectedText { get; set; }
|
|
/// <summary>
|
|
/// Title of the Chapter this PToC was created in
|
|
/// </summary>
|
|
/// <remarks>Taken from the ToC</remarks>
|
|
public string? ChapterTitle { get; set; }
|
|
}
|