mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-27 01:52:46 -04:00
Rework parental ratings (#12615)
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace MediaBrowser.Model.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// A class representing a parental rating system.
|
||||
/// </summary>
|
||||
public class ParentalRatingSystem
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the country code.
|
||||
/// </summary>
|
||||
[JsonPropertyName("countryCode")]
|
||||
public required string CountryCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether sub scores are supported.
|
||||
/// </summary>
|
||||
[JsonPropertyName("supportsSubScores")]
|
||||
public bool SupportsSubScores { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the ratings.
|
||||
/// </summary>
|
||||
[JsonPropertyName("ratings")]
|
||||
public IReadOnlyList<ParentalRatingEntry>? Ratings { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user