Kavita/API/DTOs/Reader/BookmarkDto.cs
Joe Milazzo b141613d60
Epub Annotation System (#4008)
Co-authored-by: Fesaa <77553571+Fesaa@users.noreply.github.com>
Co-authored-by: Robbie Davis <robbie@therobbiedavis.com>
2025-08-30 12:01:00 -07:00

34 lines
883 B
C#

using System.ComponentModel.DataAnnotations;
namespace API.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; }
}