2020-08-22 19:56:24 +00:00
|
|
|
#pragma warning disable CS1591
|
|
|
|
|
2019-01-13 20:01:16 +00:00
|
|
|
using System.Collections.Generic;
|
2018-12-27 23:27:57 +00:00
|
|
|
using System.Threading;
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
using MediaBrowser.Controller.Entities;
|
|
|
|
|
|
|
|
namespace MediaBrowser.Controller.Channels
|
|
|
|
{
|
|
|
|
public interface ISearchableChannel
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// Searches the specified search term.
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="searchInfo">The search information.</param>
|
|
|
|
/// <param name="cancellationToken">The cancellation token.</param>
|
|
|
|
/// <returns>Task{IEnumerable{ChannelItemInfo}}.</returns>
|
|
|
|
Task<IEnumerable<ChannelItemInfo>> Search(ChannelSearchInfo searchInfo, CancellationToken cancellationToken);
|
|
|
|
}
|
|
|
|
|
|
|
|
public interface ISupportsLatestMedia
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// Gets the latest media.
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="request">The request.</param>
|
|
|
|
/// <param name="cancellationToken">The cancellation token.</param>
|
|
|
|
/// <returns>Task{IEnumerable{ChannelItemInfo}}.</returns>
|
|
|
|
Task<IEnumerable<ChannelItemInfo>> GetLatestMedia(ChannelLatestMediaSearch request, CancellationToken cancellationToken);
|
|
|
|
}
|
|
|
|
|
|
|
|
public interface ISupportsDelete
|
|
|
|
{
|
|
|
|
bool CanDelete(BaseItem item);
|
2020-08-22 19:56:24 +00:00
|
|
|
|
2018-12-27 23:27:57 +00:00
|
|
|
Task DeleteItem(string id, CancellationToken cancellationToken);
|
|
|
|
}
|
|
|
|
|
|
|
|
public interface IDisableMediaSourceDisplay
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
public interface ISupportsMediaProbe
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
public interface IHasFolderAttributes
|
|
|
|
{
|
|
|
|
string[] Attributes { get; }
|
|
|
|
}
|
2019-01-13 19:30:58 +00:00
|
|
|
}
|