ParentalRatingEntry.cs 592 B

12345678910111213141516171819202122
  1. using System.Collections.Generic;
  2. using System.Text.Json.Serialization;
  3. namespace MediaBrowser.Model.Entities;
  4. /// <summary>
  5. /// A class representing an parental rating entry.
  6. /// </summary>
  7. public class ParentalRatingEntry
  8. {
  9. /// <summary>
  10. /// Gets or sets the rating strings.
  11. /// </summary>
  12. [JsonPropertyName("ratingStrings")]
  13. public required IReadOnlyList<string> RatingStrings { get; set; }
  14. /// <summary>
  15. /// Gets or sets the score.
  16. /// </summary>
  17. [JsonPropertyName("ratingScore")]
  18. public required ParentalRatingScore RatingScore { get; set; }
  19. }