mirror of
https://github.com/Kareadita/Kavita.git
synced 2026-03-11 12:35:48 -04:00
Co-authored-by: Joseph Milazzo <joseph.v.milazzo@gmail.com> Co-authored-by: Joe Milazzo <josephmajora@gmail.com>
26 lines
789 B
C#
26 lines
789 B
C#
using System.Collections.Generic;
|
|
using Kavita.Models.Entities.Enums;
|
|
|
|
namespace Kavita.Models.Entities.Metadata;
|
|
|
|
public class ExternalRating
|
|
{
|
|
public int Id { get; set; }
|
|
|
|
public int AverageScore { get; set; }
|
|
public int FavoriteCount { get; set; }
|
|
public ScrobbleProvider Provider { get; set; }
|
|
/// <summary>
|
|
/// Where this rating comes from: Critic or User
|
|
/// </summary>
|
|
public RatingAuthority Authority { get; set; } = RatingAuthority.User;
|
|
public string? ProviderUrl { get; set; }
|
|
public int SeriesId { get; set; }
|
|
/// <summary>
|
|
/// This can be null when for a series-rating
|
|
/// </summary>
|
|
public int? ChapterId { get; set; }
|
|
|
|
public ICollection<ExternalSeriesMetadata> ExternalSeriesMetadatas { get; set; } = null!;
|
|
}
|