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