You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
jellyfin/MediaBrowser.Controller/Weather/IWeatherProvider.cs

21 lines
630 B

using MediaBrowser.Model.Weather;
using System.Threading;
using System.Threading.Tasks;
namespace MediaBrowser.Controller.Weather
{
/// <summary>
/// Interface IWeatherProvider
/// </summary>
public interface IWeatherProvider
{
/// <summary>
/// Gets the weather info async.
/// </summary>
/// <param name="location">The location.</param>
/// <param name="cancellationToken">The cancellation token.</param>
/// <returns>Task{WeatherInfo}.</returns>
Task<WeatherInfo> GetWeatherInfoAsync(string location, CancellationToken cancellationToken);
}
}