ChannelItemInfo.cs 1.5 KB

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