aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/Entities/ParentalRatingEntry.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/ParentalRatingEntry.cs
parent2ace8803453b235b0b0ae29f0069f9e5a3c069c8 (diff)
Rework parental ratings (#12615)
Diffstat (limited to 'MediaBrowser.Model/Entities/ParentalRatingEntry.cs')
-rw-r--r--MediaBrowser.Model/Entities/ParentalRatingEntry.cs22
1 files changed, 22 insertions, 0 deletions
diff --git a/MediaBrowser.Model/Entities/ParentalRatingEntry.cs b/MediaBrowser.Model/Entities/ParentalRatingEntry.cs
new file mode 100644
index 0000000000..69be74ac0a
--- /dev/null
+++ b/MediaBrowser.Model/Entities/ParentalRatingEntry.cs
@@ -0,0 +1,22 @@
+using System.Collections.Generic;
+using System.Text.Json.Serialization;
+
+namespace MediaBrowser.Model.Entities;
+
+/// <summary>
+/// A class representing an parental rating entry.
+/// </summary>
+public class ParentalRatingEntry
+{
+ /// <summary>
+ /// Gets or sets the rating strings.
+ /// </summary>
+ [JsonPropertyName("ratingStrings")]
+ public required IReadOnlyList<string> RatingStrings { get; set; }
+
+ /// <summary>
+ /// Gets or sets the score.
+ /// </summary>
+ [JsonPropertyName("ratingScore")]
+ public required ParentalRatingScore RatingScore { get; set; }
+}