mirror of
https://github.com/Kareadita/Kavita.git
synced 2025-06-23 15:30:34 -04:00
* Auto scale reading timeline * Added benchmarks for SharpImage and NetVips. When an epub has a malformed page, catch the error and present it better to the user. * Added a hint for an upcoming feature * Slightly sped up word count for epubs * Added one more test to reflect actual code. * Some light cleanup * Use compact number for stat lists * Fixed brightness being broken on manga reader * Replaced CoverToWebP SharpImage version with NetVips which is MUCH lighter on memory and CPU. * Added last modified on the progress dto for CdDisplayEx. * Code cleanup * Forgot one cleanup
28 lines
778 B
C#
28 lines
778 B
C#
using System;
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace API.DTOs;
|
|
|
|
public class ProgressDto
|
|
{
|
|
[Required]
|
|
public int VolumeId { get; set; }
|
|
[Required]
|
|
public int ChapterId { get; set; }
|
|
[Required]
|
|
public int PageNum { get; set; }
|
|
[Required]
|
|
public int SeriesId { get; set; }
|
|
[Required]
|
|
public int LibraryId { get; set; }
|
|
/// <summary>
|
|
/// For Book reader, this can be an optional string of the id of a part marker, to help resume reading position
|
|
/// on pages that combine multiple "chapters".
|
|
/// </summary>
|
|
public string BookScrollId { get; set; }
|
|
/// <summary>
|
|
/// Last time the progress was synced from UI or external app
|
|
/// </summary>
|
|
public DateTime LastModified { get; set; }
|
|
}
|