ItemId.cs 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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 ItemId()
  34. {
  35. ProviderIds = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
  36. }
  37. }
  38. public class AlbumId : ItemId
  39. {
  40. /// <summary>
  41. /// Gets or sets the album artist.
  42. /// </summary>
  43. /// <value>The album artist.</value>
  44. public string AlbumArtist { get; set; }
  45. /// <summary>
  46. /// Gets or sets the artist music brainz identifier.
  47. /// </summary>
  48. /// <value>The artist music brainz identifier.</value>
  49. public string ArtistMusicBrainzId { get; set; }
  50. }
  51. public class GameId : ItemId
  52. {
  53. /// <summary>
  54. /// Gets or sets the game system.
  55. /// </summary>
  56. /// <value>The game system.</value>
  57. public string GameSystem { get; set; }
  58. }
  59. public class GameSystemId : ItemId
  60. {
  61. /// <summary>
  62. /// Gets or sets the path.
  63. /// </summary>
  64. /// <value>The path.</value>
  65. public string Path { get; set; }
  66. }
  67. }