ChannelItemInfo.cs 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. using MediaBrowser.Controller.Entities;
  2. using System.Collections.Generic;
  3. namespace MediaBrowser.Controller.Channels
  4. {
  5. public class ChannelItemInfo
  6. {
  7. public string Name { get; set; }
  8. public string Id { get; set; }
  9. public ChannelItemType Type { get; set; }
  10. public string OfficialRating { get; set; }
  11. public string Overview { get; set; }
  12. public List<string> Genres { get; set; }
  13. public List<PersonInfo> People { get; set; }
  14. public float? CommunityRating { get; set; }
  15. public long? RunTimeTicks { get; set; }
  16. public bool IsInfinite { get; set; }
  17. public string ImageUrl { get; set; }
  18. public ChannelMediaType MediaType { get; set; }
  19. public ChannelMediaContentType ContentType { get; set; }
  20. public ChannelItemInfo()
  21. {
  22. Genres = new List<string>();
  23. People = new List<PersonInfo>();
  24. }
  25. }
  26. public enum ChannelItemType
  27. {
  28. Media = 0,
  29. Category = 1
  30. }
  31. public enum ChannelMediaType
  32. {
  33. Audio = 0,
  34. Video = 1
  35. }
  36. public enum ChannelMediaContentType
  37. {
  38. Clip = 0,
  39. Podcast = 1,
  40. Trailer = 2,
  41. Movie = 3,
  42. Episode = 4
  43. }
  44. }