mirror of
https://github.com/Kareadita/Kavita.git
synced 2026-01-21 03:15:58 -05:00
Co-authored-by: Amelia <77553571+Fesaa@users.noreply.github.com> Co-authored-by: Robbie Davis <robbie@therobbiedavis.com>
36 lines
909 B
C#
36 lines
909 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using API.DTOs.Person;
|
|
|
|
namespace API.DTOs.SeriesDetail;
|
|
|
|
#nullable enable
|
|
|
|
public sealed record UserReviewExtendedDto
|
|
{
|
|
public int Id { get; set; }
|
|
/// <summary>
|
|
/// The main review
|
|
/// </summary>
|
|
public string Body { get; set; }
|
|
/// <summary>
|
|
/// The series this is for
|
|
/// </summary>
|
|
public int SeriesId { get; set; }
|
|
public int? ChapterId { 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; }
|
|
public float Rating { get; set; }
|
|
public SeriesDto Series { get; set; }
|
|
public ChapterDto? Chapter { get; set; }
|
|
public DateTime CreatedUtc { get; set; }
|
|
|
|
public ICollection<PersonDto> Writers { get; set; } = [];
|
|
}
|