mirror of
https://github.com/Kareadita/Kavita.git
synced 2025-05-24 00:52:23 -04:00
* Switched Ratings to a float system. Allow rating something as 0%. Allow half step ratings. Added new css variable: --rating-star-color. By default, N/A will show for series that have no ratings. N/A ratings are not included in overall rating calculations. * Show extended entity properties on desktop for list view cards. * Refactored the code for series metadata detail to use a re-usable component to reduce the copy/paste for the Genres tags like sections. * List Item will show extended properties about a chapter/volume, like weblinks on Desktop viewports. * Refactored even further so all of series detail uses the same component code. Tweaked the spacing on the series detail area. List items will now show Characters and Tags which are helpful for more Hentai related content. * Fixed a bug with removing something from "OnDeckRemoval" table when something was read.
31 lines
905 B
C#
31 lines
905 B
C#
|
|
namespace API.Entities;
|
|
#nullable enable
|
|
public class AppUserRating
|
|
{
|
|
public int Id { get; set; }
|
|
/// <summary>
|
|
/// A number between 0-5.0 that represents how good a series is.
|
|
/// </summary>
|
|
public float Rating { get; set; }
|
|
/// <summary>
|
|
/// If the rating has been explicitly set. Otherwise the 0.0 rating should be ignored as it's not rated
|
|
/// </summary>
|
|
public bool HasBeenRated { get; set; }
|
|
/// <summary>
|
|
/// A short summary the user can write when giving their review.
|
|
/// </summary>
|
|
public string? Review { get; set; }
|
|
/// <summary>
|
|
/// An optional tagline for the review
|
|
/// </summary>
|
|
public string? Tagline { get; set; }
|
|
public int SeriesId { get; set; }
|
|
public Series Series { get; set; } = null!;
|
|
|
|
|
|
// Relationships
|
|
public int AppUserId { get; set; }
|
|
public AppUser AppUser { get; set; } = null!;
|
|
}
|