jellyfin/MediaBrowser.Controller/Providers/IRemoteImageProvider.cs

40 lines
1.4 KiB
C#
Raw Normal View History

using System.Collections.Generic;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
2018-12-27 16:27:57 -07:00
using MediaBrowser.Controller.Entities;
using MediaBrowser.Model.Entities;
using MediaBrowser.Model.Providers;
namespace MediaBrowser.Controller.Providers
{
/// <summary>
/// Interface IImageProvider.
2018-12-27 16:27:57 -07:00
/// </summary>
public interface IRemoteImageProvider : IImageProvider
{
/// <summary>
/// Gets the supported images.
/// </summary>
/// <param name="item">The item.</param>
/// <returns>IEnumerable{ImageType}.</returns>
IEnumerable<ImageType> GetSupportedImages(BaseItem item);
2019-01-07 16:27:46 -07:00
2018-12-27 16:27:57 -07:00
/// <summary>
/// Gets the images.
/// </summary>
/// <param name="item">The item.</param>
/// <param name="cancellationToken">The cancellation token.</param>
/// <returns>Task{IEnumerable{RemoteImageInfo}}.</returns>
Task<IEnumerable<RemoteImageInfo>> GetImages(BaseItem item, CancellationToken cancellationToken);
/// <summary>
/// Gets the image response.
/// </summary>
/// <param name="url">The URL.</param>
/// <param name="cancellationToken">The cancellation token.</param>
/// <returns>Task{HttpResponseInfo}.</returns>
Task<HttpResponseMessage> GetImageResponse(string url, CancellationToken cancellationToken);
2018-12-27 16:27:57 -07:00
}
}