ChannelFeatures.cs 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. using System;
  2. namespace MediaBrowser.Model.Channels
  3. {
  4. public class ChannelFeatures
  5. {
  6. /// <summary>
  7. /// Gets or sets the name.
  8. /// </summary>
  9. /// <value>The name.</value>
  10. public string Name { get; set; }
  11. /// <summary>
  12. /// Gets or sets the identifier.
  13. /// </summary>
  14. /// <value>The identifier.</value>
  15. public string Id { get; set; }
  16. /// <summary>
  17. /// Gets or sets a value indicating whether this instance can search.
  18. /// </summary>
  19. /// <value><c>true</c> if this instance can search; otherwise, <c>false</c>.</value>
  20. public bool CanSearch { get; set; }
  21. /// <summary>
  22. /// Gets or sets the media types.
  23. /// </summary>
  24. /// <value>The media types.</value>
  25. public ChannelMediaType[] MediaTypes { get; set; }
  26. /// <summary>
  27. /// Gets or sets the content types.
  28. /// </summary>
  29. /// <value>The content types.</value>
  30. public ChannelMediaContentType[] ContentTypes { get; set; }
  31. /// <summary>
  32. /// Represents the maximum number of records the channel allows retrieving at a time
  33. /// </summary>
  34. public int? MaxPageSize { get; set; }
  35. /// <summary>
  36. /// Gets or sets the automatic refresh levels.
  37. /// </summary>
  38. /// <value>The automatic refresh levels.</value>
  39. public int? AutoRefreshLevels { get; set; }
  40. /// <summary>
  41. /// Gets or sets the default sort orders.
  42. /// </summary>
  43. /// <value>The default sort orders.</value>
  44. public ChannelItemSortField[] DefaultSortFields { get; set; }
  45. /// <summary>
  46. /// Indicates if a sort ascending/descending toggle is supported or not.
  47. /// </summary>
  48. public bool SupportsSortOrderToggle { get; set; }
  49. /// <summary>
  50. /// Gets or sets a value indicating whether [supports latest media].
  51. /// </summary>
  52. /// <value><c>true</c> if [supports latest media]; otherwise, <c>false</c>.</value>
  53. public bool SupportsLatestMedia { get; set; }
  54. /// <summary>
  55. /// Gets or sets a value indicating whether this instance can filter.
  56. /// </summary>
  57. /// <value><c>true</c> if this instance can filter; otherwise, <c>false</c>.</value>
  58. public bool CanFilter { get; set; }
  59. /// <summary>
  60. /// Gets or sets a value indicating whether [supports content downloading].
  61. /// </summary>
  62. /// <value><c>true</c> if [supports content downloading]; otherwise, <c>false</c>.</value>
  63. public bool SupportsContentDownloading { get; set; }
  64. public ChannelFeatures()
  65. {
  66. MediaTypes = Array.Empty<ChannelMediaType>();
  67. ContentTypes = Array.Empty<ChannelMediaContentType>();
  68. DefaultSortFields = Array.Empty<ChannelItemSortField>();
  69. }
  70. }
  71. }