Files
jellyfin/MediaBrowser.Model/Entities/ParentalRating.cs
Tim Eisele 3fc3b04daf
Some checks are pending
CodeQL / Analyze (csharp) (push) Waiting to run
OpenAPI / OpenAPI - HEAD (push) Waiting to run
OpenAPI / OpenAPI - BASE (push) Waiting to run
OpenAPI / OpenAPI - Difference (push) Blocked by required conditions
OpenAPI / OpenAPI - Publish Unstable Spec (push) Blocked by required conditions
OpenAPI / OpenAPI - Publish Stable Spec (push) Blocked by required conditions
Tests / run-tests (macos-latest) (push) Waiting to run
Tests / run-tests (ubuntu-latest) (push) Waiting to run
Tests / run-tests (windows-latest) (push) Waiting to run
Project Automation / Project board (push) Waiting to run
Merge Conflict Labeler / Labeling (push) Waiting to run
Rework parental ratings (#12615)
2025-03-30 21:51:54 -06:00

41 lines
1005 B
C#

namespace MediaBrowser.Model.Entities;
/// <summary>
/// Class ParentalRating.
/// </summary>
public class ParentalRating
{
/// <summary>
/// Initializes a new instance of the <see cref="ParentalRating"/> class.
/// </summary>
/// <param name="name">The name.</param>
/// <param name="score">The score.</param>
public ParentalRating(string name, ParentalRatingScore? score)
{
Name = name;
Value = score?.Score;
RatingScore = score;
}
/// <summary>
/// Gets or sets the name.
/// </summary>
/// <value>The name.</value>
public string Name { get; set; }
/// <summary>
/// Gets or sets the value.
/// </summary>
/// <value>The value.</value>
/// <remarks>
/// Deprecated.
/// </remarks>
public int? Value { get; set; }
/// <summary>
/// Gets or sets the rating score.
/// </summary>
/// <value>The rating score.</value>
public ParentalRatingScore? RatingScore { get; set; }
}