MediaInfo.cs 2.3 KB

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