MediaInfo.cs 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. using MediaBrowser.Model.Dto;
  2. using MediaBrowser.Model.Entities;
  3. using System;
  4. using System.Collections.Generic;
  5. namespace MediaBrowser.Model.MediaInfo
  6. {
  7. public class MediaInfo : MediaSourceInfo, IHasProviderIds
  8. {
  9. public List<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 List<string> Artists { get; set; }
  20. /// <summary>
  21. /// Gets or sets the album artists.
  22. /// </summary>
  23. /// <value>The album artists.</value>
  24. public List<string> AlbumArtists { get; set; }
  25. /// <summary>
  26. /// Gets or sets the studios.
  27. /// </summary>
  28. /// <value>The studios.</value>
  29. public List<string> Studios { get; set; }
  30. public List<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 List<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. /// <summary>
  53. /// Gets or sets the short overview.
  54. /// </summary>
  55. /// <value>The short overview.</value>
  56. public string ShortOverview { get; set; }
  57. public MediaInfo()
  58. {
  59. Chapters = new List<ChapterInfo>();
  60. Artists = new List<string>();
  61. AlbumArtists = new List<string>();
  62. Studios = new List<string>();
  63. Genres = new List<string>();
  64. People = new List<BaseItemPerson>();
  65. ProviderIds = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
  66. }
  67. }
  68. }