mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-04 14:58:36 +01:00
Rework parental ratings (#12615)
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
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
This commit is contained in:
@@ -1,35 +1,55 @@
|
||||
#pragma warning disable CS1591
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Jellyfin.Data.Enums;
|
||||
using MediaBrowser.Model.Entities;
|
||||
using MediaBrowser.Model.Globalization;
|
||||
using MediaBrowser.Model.Providers;
|
||||
|
||||
namespace MediaBrowser.Model.Dto
|
||||
namespace MediaBrowser.Model.Dto;
|
||||
|
||||
/// <summary>
|
||||
/// A class representing metadata editor information.
|
||||
/// </summary>
|
||||
public class MetadataEditorInfo
|
||||
{
|
||||
public class MetadataEditorInfo
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="MetadataEditorInfo"/> class.
|
||||
/// </summary>
|
||||
public MetadataEditorInfo()
|
||||
{
|
||||
public MetadataEditorInfo()
|
||||
{
|
||||
ParentalRatingOptions = Array.Empty<ParentalRating>();
|
||||
Countries = Array.Empty<CountryInfo>();
|
||||
Cultures = Array.Empty<CultureDto>();
|
||||
ExternalIdInfos = Array.Empty<ExternalIdInfo>();
|
||||
ContentTypeOptions = Array.Empty<NameValuePair>();
|
||||
}
|
||||
|
||||
public IReadOnlyList<ParentalRating> ParentalRatingOptions { get; set; }
|
||||
|
||||
public IReadOnlyList<CountryInfo> Countries { get; set; }
|
||||
|
||||
public IReadOnlyList<CultureDto> Cultures { get; set; }
|
||||
|
||||
public IReadOnlyList<ExternalIdInfo> ExternalIdInfos { get; set; }
|
||||
|
||||
public CollectionType? ContentType { get; set; }
|
||||
|
||||
public IReadOnlyList<NameValuePair> ContentTypeOptions { get; set; }
|
||||
ParentalRatingOptions = [];
|
||||
Countries = [];
|
||||
Cultures = [];
|
||||
ExternalIdInfos = [];
|
||||
ContentTypeOptions = [];
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the parental rating options.
|
||||
/// </summary>
|
||||
public IReadOnlyList<ParentalRating> ParentalRatingOptions { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the countries.
|
||||
/// </summary>
|
||||
public IReadOnlyList<CountryInfo> Countries { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the cultures.
|
||||
/// </summary>
|
||||
public IReadOnlyList<CultureDto> Cultures { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the external id infos.
|
||||
/// </summary>
|
||||
public IReadOnlyList<ExternalIdInfo> ExternalIdInfos { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the content type.
|
||||
/// </summary>
|
||||
public CollectionType? ContentType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the content type options.
|
||||
/// </summary>
|
||||
public IReadOnlyList<NameValuePair> ContentTypeOptions { get; set; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user