GameGenre.cs 1.3 KB

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