MusicGenre.cs 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. using System.Runtime.Serialization;
  2. using MediaBrowser.Model.Dto;
  3. using System;
  4. using System.Collections.Generic;
  5. namespace MediaBrowser.Controller.Entities.Audio
  6. {
  7. /// <summary>
  8. /// Class MusicGenre
  9. /// </summary>
  10. public class MusicGenre : BaseItem, IItemByName
  11. {
  12. public MusicGenre()
  13. {
  14. UserItemCountList = new List<ItemByNameCounts>();
  15. }
  16. /// <summary>
  17. /// Gets the user data key.
  18. /// </summary>
  19. /// <returns>System.String.</returns>
  20. public override string GetUserDataKey()
  21. {
  22. return "MusicGenre-" + Name;
  23. }
  24. [IgnoreDataMember]
  25. public List<ItemByNameCounts> UserItemCountList { get; set; }
  26. /// <summary>
  27. /// Returns the folder containing the item.
  28. /// If the item is a folder, it returns the folder itself
  29. /// </summary>
  30. /// <value>The containing folder path.</value>
  31. public override string ContainingFolderPath
  32. {
  33. get
  34. {
  35. return Path;
  36. }
  37. }
  38. /// <summary>
  39. /// Gets a value indicating whether this instance is owned item.
  40. /// </summary>
  41. /// <value><c>true</c> if this instance is owned item; otherwise, <c>false</c>.</value>
  42. public override bool IsOwnedItem
  43. {
  44. get
  45. {
  46. return false;
  47. }
  48. }
  49. }
  50. }