Skip to content

Kavita is a fast, feature rich, cross platform reading server. Built with the goal of being a full solution for all your reading needs. Setup your own server and share your reading collection with your friends and family.

1.5 KB
Raw Blame
using API.Services.Plus;

namespace API.DTOs.SeriesDetail;

/// <summary>
/// Represents a User Review for a given Series
/// </summary>
/// <remarks>The user does not need to be a Kavita user</remarks>
public class UserReviewDto
{
    /// <summary>
    /// A tagline for the review
    /// </summary>
    public string? Tagline { get; set; }

    /// <summary>
    /// The main review
    /// </summary>
    public string Body { get; set; }

    /// <summary>
    /// The series this is for
    /// </summary>
    public int SeriesId { get; set; }

    /// <summary>
    /// The library this series belongs in
    /// </summary>
    public int LibraryId { get; set; }

    /// <summary>
    /// The user who wrote this
    /// </summary>
    public string Username { get; set; }

    /// <summary>
    /// How many upvotes this review has gotten
    /// </summary>
    /// <remarks>More upvotes get loaded first</remarks>
    public int Score { get; set; } = 0;
    /// <summary>
    /// If External, the url of the review
    /// </summary>
    public string? ExternalUrl { get; set; }
    /// <summary>
    /// Does this review come from an external Source
    /// </summary>
    public bool IsExternal { get; set; }
    /// <summary>
    /// The main body with just text, for review preview
    /// </summary>
    public string? BodyJustText { get; set; }

    /// <summary>
    /// If this review is External, which Provider did it come from
    /// </summary>
    public ScrobbleProvider Provider { get; set; } = ScrobbleProvider.Kavita;
}