jellyfin/MediaBrowser.Model/Entities/ParentalRatingSystem.cs
2025-03-30 21:51:54 -06:00

29 lines
777 B
C#

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; }
}