Genre.cs 1.4 KB

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