mirror of
https://github.com/Kareadita/Kavita.git
synced 2025-06-23 15:30:34 -04:00
* Introduced a new claim on the Token to get UserId as well as Username, thus allowing for many places of reduced DB calls. All users will need to reauthenticate. Introduced UTC Dates throughout the application, they are not exposed in all DTOs, that will come later when we fully switch over. For now, Utc dates will be updated along side timezone specific dates. Refactored get-progress/progress api to be 50% faster by reducing how much data is loaded from the query. * Speed up the following apis: collection/search, download/bookmarks, reader/bookmark-info, recommended/quick-reads, recommended/quick-catchup-reads, recommended/highly-rated, recommended/more-in, recommended/rediscover, want-to-read/ * Added a migration to sync all dates with their new UTC counterpart. * Added LastReadingProgressUtc onto ChapterDto for some browsing apis, but not all. Added LastReadingProgressUtc to reading list items. Refactored the migration to run raw SQL which is much faster. * Added LastReadingProgressUtc onto ChapterDto for some browsing apis, but not all. Added LastReadingProgressUtc to reading list items. Refactored the migration to run raw SQL which is much faster. * Fixed the unit tests * Fixed an issue with auto mapper which was causing progress page number to not get sent to UI * series/volume has chapter last reading progress * Added filesize and library name on reading list item dto for CDisplayEx. * Some minor code cleanup * Forgot to fill a field
49 lines
1.5 KiB
C#
49 lines
1.5 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using API.Entities.Interfaces;
|
|
|
|
namespace API.Entities;
|
|
|
|
public class Volume : IEntityDate, IHasReadTimeEstimate
|
|
{
|
|
public int Id { get; set; }
|
|
/// <summary>
|
|
/// A String representation of the volume number. Allows for floats.
|
|
/// </summary>
|
|
/// <remarks>For Books with Series_index, this will map to the Series Index.</remarks>
|
|
public string Name { get; set; }
|
|
/// <summary>
|
|
/// The minimum number in the Name field in Int form
|
|
/// </summary>
|
|
public int Number { get; set; }
|
|
public IList<Chapter> Chapters { get; set; }
|
|
public DateTime Created { get; set; }
|
|
public DateTime LastModified { get; set; }
|
|
public DateTime CreatedUtc { get; set; }
|
|
public DateTime LastModifiedUtc { get; set; }
|
|
|
|
/// <summary>
|
|
/// Absolute path to the (managed) image file
|
|
/// </summary>
|
|
/// <remarks>The file is managed internally to Kavita's APPDIR</remarks>
|
|
public string CoverImage { get; set; }
|
|
/// <summary>
|
|
/// Total pages of all chapters in this volume
|
|
/// </summary>
|
|
public int Pages { get; set; }
|
|
/// <summary>
|
|
/// Total Word count of all chapters in this volume.
|
|
/// </summary>
|
|
/// <remarks>Word Count is only available from EPUB files</remarks>
|
|
public long WordCount { get; set; }
|
|
public int MinHoursToRead { get; set; }
|
|
public int MaxHoursToRead { get; set; }
|
|
public int AvgHoursToRead { get; set; }
|
|
|
|
|
|
// Relationships
|
|
public Series Series { get; set; }
|
|
public int SeriesId { get; set; }
|
|
|
|
}
|