ChannelFeatures.cs 2.9 KB

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