mirror of
				https://github.com/Kareadita/Kavita.git
				synced 2025-10-31 10:37:04 -04:00 
			
		
		
		
	
		
			
				
	
	
		
			27 lines
		
	
	
		
			794 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			794 B
		
	
	
	
		
			C#
		
	
	
	
	
	
| using System.Collections.Generic;
 | |
| using API.Entities.Enums;
 | |
| using API.Services.Plus;
 | |
| 
 | |
| namespace API.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!;
 | |
| }
 |