2015-03-13 20:37:19 +01:00
|
|
|
using System.Collections.Generic;
|
|
|
|
using System.Threading;
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
using MediaBrowser.Controller.Entities;
|
|
|
|
using MediaBrowser.Model.Entities;
|
|
|
|
|
|
|
|
namespace MediaBrowser.Controller.Providers
|
|
|
|
{
|
|
|
|
public interface IDynamicImageProvider : IImageProvider
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// Gets the supported images.
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="item">The item.</param>
|
|
|
|
/// <returns>IEnumerable{ImageType}.</returns>
|
2017-08-07 23:06:13 +02:00
|
|
|
IEnumerable<ImageType> GetSupportedImages(IHasMetadata item);
|
2015-03-13 20:37:19 +01:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets the image.
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="item">The item.</param>
|
|
|
|
/// <param name="type">The type.</param>
|
|
|
|
/// <param name="cancellationToken">The cancellation token.</param>
|
|
|
|
/// <returns>Task{DynamicImageResponse}.</returns>
|
2017-08-07 23:06:13 +02:00
|
|
|
Task<DynamicImageResponse> GetImage(IHasMetadata item, ImageType type, CancellationToken cancellationToken);
|
2015-03-13 20:37:19 +01:00
|
|
|
}
|
|
|
|
}
|