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 MediaInfo()
  12. {
  13. Chapters = Array.Empty<ChapterInfo>();
  14. Artists = Array.Empty<string>();
  15. AlbumArtists = Array.Empty<string>();
  16. Studios = Array.Empty<string>();
  17. Genres = Array.Empty<string>();
  18. People = Array.Empty<BaseItemPerson>();
  19. ProviderIds = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
  20. }
  21. public ChapterInfo[] Chapters { get; set; }
  22. /// <summary>
  23. /// Gets or sets the album.
  24. /// </summary>
  25. /// <value>The album.</value>
  26. public string Album { get; set; }
  27. /// <summary>
  28. /// Gets or sets the artists.
  29. /// </summary>
  30. /// <value>The artists.</value>
  31. public string[] Artists { get; set; }
  32. /// <summary>
  33. /// Gets or sets the album artists.
  34. /// </summary>
  35. /// <value>The album artists.</value>
  36. public string[] AlbumArtists { get; set; }
  37. /// <summary>
  38. /// Gets or sets the studios.
  39. /// </summary>
  40. /// <value>The studios.</value>
  41. public string[] Studios { get; set; }
  42. public string[] Genres { get; set; }
  43. public string ShowName { get; set; }
  44. public int? IndexNumber { get; set; }
  45. public int? ParentIndexNumber { get; set; }
  46. public int? ProductionYear { get; set; }
  47. public DateTime? PremiereDate { get; set; }
  48. public BaseItemPerson[] People { get; set; }
  49. public Dictionary<string, string> ProviderIds { get; set; }
  50. /// <summary>
  51. /// Gets or sets the official rating.
  52. /// </summary>
  53. /// <value>The official rating.</value>
  54. public string OfficialRating { get; set; }
  55. /// <summary>
  56. /// Gets or sets the official rating description.
  57. /// </summary>
  58. /// <value>The official rating description.</value>
  59. public string OfficialRatingDescription { get; set; }
  60. /// <summary>
  61. /// Gets or sets the overview.
  62. /// </summary>
  63. /// <value>The overview.</value>
  64. public string Overview { get; set; }
  65. }
  66. }