using System.IO;
using System.Threading;
using System.Threading.Tasks;
using MediaBrowser.Model.Dto;
namespace MediaBrowser.Model.ApiClient
{
///
/// Class ApiClientExtensions
///
public static class ApiClientExtensions
{
///
/// Gets the image stream async.
///
/// The API client.
/// The URL.
/// Task{Stream}.
public static Task GetImageStreamAsync(this IApiClient apiClient, string url)
{
return apiClient.GetImageStreamAsync(url, CancellationToken.None);
}
public static Task GetPublicUsersAsync(this IApiClient apiClient)
{
return apiClient.GetPublicUsersAsync(CancellationToken.None);
}
}
}