ChannelFeatures.cs 2.9 KB

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