BrowseRequest.cs 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. 
  2. namespace MediaBrowser.Model.Session
  3. {
  4. /// <summary>
  5. /// Class BrowseRequest
  6. /// </summary>
  7. public class BrowseRequest
  8. {
  9. /// <summary>
  10. /// Artist, Genre, Studio, Person, or any kind of BaseItem
  11. /// </summary>
  12. /// <value>The type of the item.</value>
  13. public string ItemType { get; set; }
  14. /// <summary>
  15. /// Gets or sets the item id.
  16. /// </summary>
  17. /// <value>The item id.</value>
  18. public string ItemId { get; set; }
  19. /// <summary>
  20. /// Gets or sets the name of the item.
  21. /// </summary>
  22. /// <value>The name of the item.</value>
  23. public string ItemName { get; set; }
  24. /// <summary>
  25. /// Gets or sets the context (Movies, Music, Tv, etc)
  26. /// Applicable to genres, studios and persons only because the context of items and artists can be inferred.
  27. /// This is optional to supply and clients are free to ignore it.
  28. /// </summary>
  29. /// <value>The context.</value>
  30. public string Context { get; set; }
  31. }
  32. public class ItemContext
  33. {
  34. public const string Music = "Music";
  35. public const string Movies = "Movies";
  36. public const string TvShows = "TvShows";
  37. public const string Games = "Games";
  38. }
  39. }