Extract enum for later use
This commit is contained in:
parent
114ee4f09b
commit
e96cb0fde9
5 changed files with 22 additions and 13 deletions
|
|
@ -1,26 +1,16 @@
|
|||
using API.Services.Plus;
|
||||
using API.Entities.Enums;
|
||||
|
||||
namespace API.Entities;
|
||||
|
||||
#nullable enable
|
||||
|
||||
public enum ChapterRatingProvider
|
||||
{
|
||||
Kavita = 0,
|
||||
AniList = 1,
|
||||
Mal = 2,
|
||||
CbrUser = 3,
|
||||
CbrCritic = 4,
|
||||
}
|
||||
|
||||
public class AppUserChapterRating
|
||||
{
|
||||
|
||||
public int Id { get; set; }
|
||||
public float Rating { get; set; }
|
||||
public bool HasBeenRated { get; set; }
|
||||
public string? Review { get; set; }
|
||||
public ChapterRatingProvider Provider {get; set; }
|
||||
public RatingProvider Provider {get; set; }
|
||||
|
||||
public int SeriesId { get; set; }
|
||||
public Series Series { get; set; } = null!;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue