namespace API.DTOs.Reader;
#nullable enable
public sealed record PersonalToCDto
{
public required int Id { get; init; }
public required int ChapterId { get; set; }
///
/// The page to bookmark
///
public required int PageNumber { get; set; }
///
/// The title of the bookmark. Defaults to Page {PageNumber} if not set
///
public required string Title { get; set; }
///
/// 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
///
public string? BookScrollId { get; set; }
///
/// Text of the bookmark
///
public string? SelectedText { get; set; }
///
/// Title of the Chapter this PToC was created in
///
/// Taken from the ToC
public string? ChapterTitle { get; set; }
}