BrowseRequest.cs 1.4 KB

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