ParentalRatingSystem.cs 777 B

12345678910111213141516171819202122232425262728
  1. using System.Collections.Generic;
  2. using System.Text.Json.Serialization;
  3. namespace MediaBrowser.Model.Entities;
  4. /// <summary>
  5. /// A class representing a parental rating system.
  6. /// </summary>
  7. public class ParentalRatingSystem
  8. {
  9. /// <summary>
  10. /// Gets or sets the country code.
  11. /// </summary>
  12. [JsonPropertyName("countryCode")]
  13. public required string CountryCode { get; set; }
  14. /// <summary>
  15. /// Gets or sets a value indicating whether sub scores are supported.
  16. /// </summary>
  17. [JsonPropertyName("supportsSubScores")]
  18. public bool SupportsSubScores { get; set; }
  19. /// <summary>
  20. /// Gets or sets the ratings.
  21. /// </summary>
  22. [JsonPropertyName("ratings")]
  23. public IReadOnlyList<ParentalRatingEntry>? Ratings { get; set; }
  24. }