MediaInfo.cs 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. #nullable disable
  2. #pragma warning disable CS1591
  3. using System;
  4. using System.Collections.Generic;
  5. using MediaBrowser.Model.Dto;
  6. using MediaBrowser.Model.Entities;
  7. namespace MediaBrowser.Model.MediaInfo
  8. {
  9. public class MediaInfo : MediaSourceInfo, IHasProviderIds
  10. {
  11. public ChapterInfo[] Chapters { get; set; }
  12. /// <summary>
  13. /// Gets or sets the album.
  14. /// </summary>
  15. /// <value>The album.</value>
  16. public string Album { get; set; }
  17. /// <summary>
  18. /// Gets or sets the artists.
  19. /// </summary>
  20. /// <value>The artists.</value>
  21. public string[] Artists { get; set; }
  22. /// <summary>
  23. /// Gets or sets the album artists.
  24. /// </summary>
  25. /// <value>The album artists.</value>
  26. public string[] AlbumArtists { get; set; }
  27. /// <summary>
  28. /// Gets or sets the studios.
  29. /// </summary>
  30. /// <value>The studios.</value>
  31. public string[] Studios { get; set; }
  32. public string[] Genres { get; set; }
  33. public string ShowName { get; set; }
  34. public int? IndexNumber { get; set; }
  35. public int? ParentIndexNumber { get; set; }
  36. public int? ProductionYear { get; set; }
  37. public DateTime? PremiereDate { get; set; }
  38. public BaseItemPerson[] People { get; set; }
  39. public Dictionary<string, string> ProviderIds { get; set; }
  40. /// <summary>
  41. /// Gets or sets the official rating.
  42. /// </summary>
  43. /// <value>The official rating.</value>
  44. public string OfficialRating { get; set; }
  45. /// <summary>
  46. /// Gets or sets the official rating description.
  47. /// </summary>
  48. /// <value>The official rating description.</value>
  49. public string OfficialRatingDescription { get; set; }
  50. /// <summary>
  51. /// Gets or sets the overview.
  52. /// </summary>
  53. /// <value>The overview.</value>
  54. public string Overview { get; set; }
  55. public MediaInfo()
  56. {
  57. Chapters = Array.Empty<ChapterInfo>();
  58. Artists = Array.Empty<string>();
  59. AlbumArtists = Array.Empty<string>();
  60. Studios = Array.Empty<string>();
  61. Genres = Array.Empty<string>();
  62. People = Array.Empty<BaseItemPerson>();
  63. ProviderIds = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
  64. }
  65. }
  66. }