aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/Entities/ParentalRatingSystem.cs
diff options
context:
space:
mode:
authorTim Eisele <Ghost_of_Stone@web.de>2025-03-31 05:51:54 +0200
committerGitHub <noreply@github.com>2025-03-30 21:51:54 -0600
commit3fc3b04daf929d1d3a9533fc410cb77885eb2e8a (patch)
treefe15e4d6c24780f9efd393df845cd3099a8f18d6 /MediaBrowser.Model/Entities/ParentalRatingSystem.cs
parent2ace8803453b235b0b0ae29f0069f9e5a3c069c8 (diff)
Rework parental ratings (#12615)
Diffstat (limited to 'MediaBrowser.Model/Entities/ParentalRatingSystem.cs')
-rw-r--r--MediaBrowser.Model/Entities/ParentalRatingSystem.cs28
1 files changed, 28 insertions, 0 deletions
diff --git a/MediaBrowser.Model/Entities/ParentalRatingSystem.cs b/MediaBrowser.Model/Entities/ParentalRatingSystem.cs
new file mode 100644
index 000000000..b452f2901
--- /dev/null
+++ b/MediaBrowser.Model/Entities/ParentalRatingSystem.cs
@@ -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; }
+}