MediaInfo.cs 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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 string ForcedSortName { get; set; }
  45. public int? IndexNumber { get; set; }
  46. public int? ParentIndexNumber { get; set; }
  47. public int? ProductionYear { get; set; }
  48. public DateTime? PremiereDate { get; set; }
  49. public BaseItemPerson[] People { get; set; }
  50. public Dictionary<string, string> ProviderIds { get; set; }
  51. /// <summary>
  52. /// Gets or sets the official rating.
  53. /// </summary>
  54. /// <value>The official rating.</value>
  55. public string OfficialRating { get; set; }
  56. /// <summary>
  57. /// Gets or sets the official rating description.
  58. /// </summary>
  59. /// <value>The official rating description.</value>
  60. public string OfficialRatingDescription { get; set; }
  61. /// <summary>
  62. /// Gets or sets the overview.
  63. /// </summary>
  64. /// <value>The overview.</value>
  65. public string Overview { get; set; }
  66. }
  67. }