using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; using MediaBrowser.Controller.Entities; namespace MediaBrowser.Controller.Channels { public interface ISearchableChannel { /// /// Searches the specified search term. /// /// The search information. /// The cancellation token. /// Task{IEnumerable{ChannelItemInfo}}. Task> Search(ChannelSearchInfo searchInfo, CancellationToken cancellationToken); } public interface ISupportsLatestMedia { /// /// Gets the latest media. /// /// The request. /// The cancellation token. /// Task{IEnumerable{ChannelItemInfo}}. Task> GetLatestMedia(ChannelLatestMediaSearch request, CancellationToken cancellationToken); } public interface ISupportsDelete { bool CanDelete(BaseItem item); Task DeleteItem(string id, CancellationToken cancellationToken); } public interface IDisableMediaSourceDisplay { } public interface ISupportsMediaProbe { } public interface IHasFolderAttributes { string[] Attributes { get; } } }