InternalChannelFeatures.cs 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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 a value indicating whether this instance can get all media.
  14. /// </summary>
  15. /// <value><c>true</c> if this instance can get all media; otherwise, <c>false</c>.</value>
  16. public bool CanGetAllMedia { get; set; }
  17. /// <summary>
  18. /// Gets or sets the media types.
  19. /// </summary>
  20. /// <value>The media types.</value>
  21. public List<ChannelMediaType> MediaTypes { get; set; }
  22. /// <summary>
  23. /// Gets or sets the content types.
  24. /// </summary>
  25. /// <value>The content types.</value>
  26. public List<ChannelMediaContentType> ContentTypes { get; set; }
  27. /// <summary>
  28. /// Represents the maximum number of records the channel allows retrieving at a time
  29. /// </summary>
  30. public int? MaxPageSize { get; set; }
  31. /// <summary>
  32. /// Gets or sets the default sort orders.
  33. /// </summary>
  34. /// <value>The default sort orders.</value>
  35. public List<ChannelItemSortField> DefaultSortFields { get; set; }
  36. /// <summary>
  37. /// Indicates if a sort ascending/descending toggle is supported or not.
  38. /// </summary>
  39. public bool SupportsSortOrderToggle { get; set; }
  40. public InternalChannelFeatures()
  41. {
  42. MediaTypes = new List<ChannelMediaType>();
  43. ContentTypes = new List<ChannelMediaContentType>();
  44. DefaultSortFields = new List<ChannelItemSortField>();
  45. }
  46. }
  47. }