MetadataEditorInfo.cs 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. using System.Collections.Generic;
  2. using Jellyfin.Data.Enums;
  3. using MediaBrowser.Model.Entities;
  4. using MediaBrowser.Model.Globalization;
  5. using MediaBrowser.Model.Providers;
  6. namespace MediaBrowser.Model.Dto;
  7. /// <summary>
  8. /// A class representing metadata editor information.
  9. /// </summary>
  10. public class MetadataEditorInfo
  11. {
  12. /// <summary>
  13. /// Initializes a new instance of the <see cref="MetadataEditorInfo"/> class.
  14. /// </summary>
  15. public MetadataEditorInfo()
  16. {
  17. ParentalRatingOptions = [];
  18. Countries = [];
  19. Cultures = [];
  20. ExternalIdInfos = [];
  21. ContentTypeOptions = [];
  22. }
  23. /// <summary>
  24. /// Gets or sets the parental rating options.
  25. /// </summary>
  26. public IReadOnlyList<ParentalRating> ParentalRatingOptions { get; set; }
  27. /// <summary>
  28. /// Gets or sets the countries.
  29. /// </summary>
  30. public IReadOnlyList<CountryInfo> Countries { get; set; }
  31. /// <summary>
  32. /// Gets or sets the cultures.
  33. /// </summary>
  34. public IReadOnlyList<CultureDto> Cultures { get; set; }
  35. /// <summary>
  36. /// Gets or sets the external id infos.
  37. /// </summary>
  38. public IReadOnlyList<ExternalIdInfo> ExternalIdInfos { get; set; }
  39. /// <summary>
  40. /// Gets or sets the content type.
  41. /// </summary>
  42. public CollectionType? ContentType { get; set; }
  43. /// <summary>
  44. /// Gets or sets the content type options.
  45. /// </summary>
  46. public IReadOnlyList<NameValuePair> ContentTypeOptions { get; set; }
  47. }