Kavita/Kavita.Models/DTOs/Reader/BookmarkDto.cs
Fesaa c62b20f54b
BE Tech Debt (#4497)
Co-authored-by: Joseph Milazzo <joseph.v.milazzo@gmail.com>
Co-authored-by: Joe Milazzo <josephmajora@gmail.com>
2026-03-07 10:04:08 -08:00

34 lines
893 B
C#

using System.ComponentModel.DataAnnotations;
namespace Kavita.Models.DTOs.Reader;
#nullable enable
public sealed record BookmarkDto
{
public int Id { get; set; }
[Required]
public int Page { get; set; }
[Required]
public int VolumeId { get; set; }
[Required]
public int SeriesId { get; set; }
[Required]
public int ChapterId { get; set; }
/// <summary>
/// Only applicable for Epubs
/// </summary>
public int ImageOffset { get; set; }
/// <summary>
/// Only applicable for Epubs
/// </summary>
public string? XPath { get; set; }
/// <summary>
/// This is only used when getting all bookmarks.
/// </summary>
public SeriesDto? Series { get; set; }
/// <summary>
/// Not required, will be filled out at API before saving to the DB
/// </summary>
public string? ChapterTitle { get; set; }
}