mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-24 01:34:45 +03:00
isolated weather and moved drawing classes up to the controller project
This commit is contained in:
20
MediaBrowser.Controller/Weather/IWeatherProvider.cs
Normal file
20
MediaBrowser.Controller/Weather/IWeatherProvider.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user