34 lines
856 B
C#
34 lines
856 B
C#
using API.Entities.Enums;
|
|
using API.Services.Plus;
|
|
|
|
namespace API.Entities;
|
|
|
|
#nullable enable
|
|
|
|
public enum ReviewAuthority
|
|
{
|
|
User = 0,
|
|
Critic = 1,
|
|
}
|
|
|
|
public class AppUserChapterRating
|
|
{
|
|
public int Id { get; set; }
|
|
public float Rating { get; set; }
|
|
public bool HasBeenRated { get; set; }
|
|
public string? Review { get; set; }
|
|
public ScrobbleProvider Provider { get; set; } = ScrobbleProvider.Kavita;
|
|
public ReviewAuthority Authority { get; set; } = ReviewAuthority.User;
|
|
|
|
public int SeriesId { get; set; }
|
|
public Series Series { get; set; } = null!;
|
|
|
|
public int ChapterId { get; set; }
|
|
public Chapter Chapter { get; set; } = null!;
|
|
|
|
public int VolumeId { get; set; }
|
|
public Volume Volume { get; set; } = null!;
|
|
|
|
public int AppUserId { get; set; }
|
|
public AppUser AppUser { get; set; } = null!;
|
|
}
|