Kavita/Kavita.Models/DTOs/SeriesDetail/UserReviewExtendedDto.cs
Fesaa c62b20f54b
BE Tech Debt (#4497)
Co-authored-by: Joseph Milazzo <joseph.v.milazzo@gmail.com>
Co-authored-by: Joe Milazzo <josephmajora@gmail.com>
2026-03-07 10:04:08 -08:00

36 lines
929 B
C#

using System;
using System.Collections.Generic;
using Kavita.Models.DTOs.Person;
namespace Kavita.Models.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; } = [];
}