aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/Weather/IWeatherProvider.cs
blob: 9060e5b9cdea737dbc3544637301e12c730a5e4f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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);
    }
}