MediaInfo.cs 2.4 KB

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