ChannelFeatures.cs 3.0 KB

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