ISearchableChannel.cs 1.1 KB

12345678910111213141516171819202122232425262728
  1. using System.Collections.Generic;
  2. using System.Threading;
  3. using System.Threading.Tasks;
  4. namespace MediaBrowser.Controller.Channels
  5. {
  6. public interface ISearchableChannel
  7. {
  8. /// <summary>
  9. /// Searches the specified search term.
  10. /// </summary>
  11. /// <param name="searchInfo">The search information.</param>
  12. /// <param name="cancellationToken">The cancellation token.</param>
  13. /// <returns>Task{IEnumerable{ChannelItemInfo}}.</returns>
  14. Task<IEnumerable<ChannelItemInfo>> Search(ChannelSearchInfo searchInfo, CancellationToken cancellationToken);
  15. }
  16. public interface ISupportsLatestMedia
  17. {
  18. /// <summary>
  19. /// Gets the latest media.
  20. /// </summary>
  21. /// <param name="request">The request.</param>
  22. /// <param name="cancellationToken">The cancellation token.</param>
  23. /// <returns>Task{IEnumerable{ChannelItemInfo}}.</returns>
  24. Task<IEnumerable<ChannelItemInfo>> GetLatestMedia(ChannelLatestMediaSearch request, CancellationToken cancellationToken);
  25. }
  26. }