IBNItem.cs 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. using System;
  2. using ProtoBuf;
  3. namespace MediaBrowser.Model.DTO
  4. {
  5. /// <summary>
  6. /// This is a stub class used by the api to get IBN types along with their item counts
  7. /// </summary>
  8. [ProtoContract]
  9. public class IbnItem
  10. {
  11. /// <summary>
  12. /// The name of the person, genre, etc
  13. /// </summary>
  14. [ProtoMember(1)]
  15. public string Name { get; set; }
  16. /// <summary>
  17. /// The id of the person, genre, etc
  18. /// </summary>
  19. [ProtoMember(2)]
  20. public Guid Id { get; set; }
  21. [ProtoMember(3)]
  22. public bool HasImage { get; set; }
  23. /// <summary>
  24. /// The number of items that have the genre, year, studio, etc
  25. /// </summary>
  26. [ProtoMember(4)]
  27. public int BaseItemCount { get; set; }
  28. }
  29. /// <summary>
  30. /// This is used by the api to get information about a Person within a BaseItem
  31. /// </summary>
  32. [ProtoContract]
  33. public class BaseItemPerson
  34. {
  35. [ProtoMember(1)]
  36. public string Name { get; set; }
  37. [ProtoMember(2)]
  38. public string Overview { get; set; }
  39. [ProtoMember(3)]
  40. public string Type { get; set; }
  41. [ProtoMember(4)]
  42. public bool HasImage { get; set; }
  43. }
  44. /// <summary>
  45. /// This is used by the api to get information about a studio within a BaseItem
  46. /// </summary>
  47. [ProtoContract]
  48. public class BaseItemStudio
  49. {
  50. [ProtoMember(1)]
  51. public string Name { get; set; }
  52. [ProtoMember(2)]
  53. public bool HasImage { get; set; }
  54. }
  55. }