ItemId.cs 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. using MediaBrowser.Model.Entities;
  2. using System;
  3. using System.Collections.Generic;
  4. namespace MediaBrowser.Controller.Providers
  5. {
  6. public class ItemId : IHasProviderIds
  7. {
  8. /// <summary>
  9. /// Gets or sets the name.
  10. /// </summary>
  11. /// <value>The name.</value>
  12. public string Name { get; set; }
  13. /// <summary>
  14. /// Gets or sets the metadata language.
  15. /// </summary>
  16. /// <value>The metadata language.</value>
  17. public string MetadataLanguage { get; set; }
  18. /// <summary>
  19. /// Gets or sets the metadata country code.
  20. /// </summary>
  21. /// <value>The metadata country code.</value>
  22. public string MetadataCountryCode { get; set; }
  23. /// <summary>
  24. /// Gets or sets the provider ids.
  25. /// </summary>
  26. /// <value>The provider ids.</value>
  27. public Dictionary<string, string> ProviderIds { get; set; }
  28. /// <summary>
  29. /// Gets or sets the year.
  30. /// </summary>
  31. /// <value>The year.</value>
  32. public int? Year { get; set; }
  33. public int? IndexNumber { get; set; }
  34. public int? ParentIndexNumber { get; set; }
  35. public ItemId()
  36. {
  37. ProviderIds = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
  38. }
  39. }
  40. public class AlbumId : ItemId
  41. {
  42. /// <summary>
  43. /// Gets or sets the album artist.
  44. /// </summary>
  45. /// <value>The album artist.</value>
  46. public string AlbumArtist { get; set; }
  47. /// <summary>
  48. /// Gets or sets the artist provider ids.
  49. /// </summary>
  50. /// <value>The artist provider ids.</value>
  51. public Dictionary<string, string> ArtistProviderIds { get; set; }
  52. public AlbumId()
  53. {
  54. ArtistProviderIds = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
  55. }
  56. }
  57. public class GameId : ItemId
  58. {
  59. /// <summary>
  60. /// Gets or sets the game system.
  61. /// </summary>
  62. /// <value>The game system.</value>
  63. public string GameSystem { get; set; }
  64. }
  65. public class GameSystemId : ItemId
  66. {
  67. /// <summary>
  68. /// Gets or sets the path.
  69. /// </summary>
  70. /// <value>The path.</value>
  71. public string Path { get; set; }
  72. }
  73. public class EpisodeId : ItemId
  74. {
  75. public Dictionary<string, string> SeriesProviderIds { get; set; }
  76. public int? IndexNumberEnd { get; set; }
  77. public EpisodeId()
  78. {
  79. SeriesProviderIds = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
  80. }
  81. }
  82. }