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; }
///
/// Only applicable for Epubs
///
public int ImageOffset { get; set; }
///
/// Only applicable for Epubs
///
public string? XPath { get; set; }
///
/// This is only used when getting all bookmarks.
///
public SeriesDto? Series { get; set; }
///
/// Not required, will be filled out at API before saving to the DB
///
public string? ChapterTitle { get; set; }
}