aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/Entities/ParentalRatingScore.cs
blob: b9bb99685f37c185221612400902c6e69c30aed7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
using System.Text.Json.Serialization;

namespace MediaBrowser.Model.Entities;

/// <summary>
/// A class representing an parental rating score.
/// </summary>
public class ParentalRatingScore
{
    /// <summary>
    /// Initializes a new instance of the <see cref="ParentalRatingScore"/> class.
    /// </summary>
    /// <param name="score">The score.</param>
    /// <param name="subScore">The sub score.</param>
    public ParentalRatingScore(int score, int? subScore)
    {
        Score = score;
        SubScore = subScore;
    }

    /// <summary>
    /// Gets or sets the score.
    /// </summary>
    [JsonPropertyName("score")]
    public int Score { get; set; }

    /// <summary>
    /// Gets or sets the sub score.
    /// </summary>
    [JsonPropertyName("subScore")]
    public int? SubScore { get; set; }
}