MediaInfo.cs 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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. private static readonly string[] EmptyStringArray = new string[] { };
  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 int? IndexNumber { get; set; }
  33. public int? ParentIndexNumber { get; set; }
  34. public int? ProductionYear { get; set; }
  35. public DateTime? PremiereDate { get; set; }
  36. public BaseItemPerson[] People { get; set; }
  37. public Dictionary<string, string> ProviderIds { get; set; }
  38. /// <summary>
  39. /// Gets or sets the official rating.
  40. /// </summary>
  41. /// <value>The official rating.</value>
  42. public string OfficialRating { get; set; }
  43. /// <summary>
  44. /// Gets or sets the official rating description.
  45. /// </summary>
  46. /// <value>The official rating description.</value>
  47. public string OfficialRatingDescription { get; set; }
  48. /// <summary>
  49. /// Gets or sets the overview.
  50. /// </summary>
  51. /// <value>The overview.</value>
  52. public string Overview { get; set; }
  53. public MediaInfo()
  54. {
  55. Chapters = new ChapterInfo[] { };
  56. Artists = new string[] { };
  57. AlbumArtists = EmptyStringArray;
  58. Studios = new string[] { };
  59. Genres = new string[] { };
  60. People = new BaseItemPerson[] { };
  61. ProviderIds = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
  62. }
  63. }
  64. }