2
0

InternalChannelFeatures.cs 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. using MediaBrowser.Model.Channels;
  2. using System.Collections.Generic;
  3. namespace MediaBrowser.Controller.Channels
  4. {
  5. public class InternalChannelFeatures
  6. {
  7. /// <summary>
  8. /// Gets or sets a value indicating whether this instance can search.
  9. /// </summary>
  10. /// <value><c>true</c> if this instance can search; otherwise, <c>false</c>.</value>
  11. public bool CanSearch { get; set; }
  12. /// <summary>
  13. /// Gets or sets the media types.
  14. /// </summary>
  15. /// <value>The media types.</value>
  16. public List<ChannelMediaType> MediaTypes { get; set; }
  17. /// <summary>
  18. /// Gets or sets the content types.
  19. /// </summary>
  20. /// <value>The content types.</value>
  21. public List<ChannelMediaContentType> ContentTypes { get; set; }
  22. /// <summary>
  23. /// Represents the maximum number of records the channel allows retrieving at a time
  24. /// </summary>
  25. public int? MaxPageSize { get; set; }
  26. /// <summary>
  27. /// Gets or sets the default sort orders.
  28. /// </summary>
  29. /// <value>The default sort orders.</value>
  30. public List<ChannelItemSortField> DefaultSortFields { get; set; }
  31. /// <summary>
  32. /// Indicates if a sort ascending/descending toggle is supported or not.
  33. /// </summary>
  34. public bool SupportsSortOrderToggle { get; set; }
  35. public InternalChannelFeatures()
  36. {
  37. MediaTypes = new List<ChannelMediaType>();
  38. ContentTypes = new List<ChannelMediaContentType>();
  39. DefaultSortFields = new List<ChannelItemSortField>();
  40. }
  41. }
  42. }