IWeatherProvider.cs 630 B

1234567891011121314151617181920
  1. using MediaBrowser.Model.Weather;
  2. using System.Threading;
  3. using System.Threading.Tasks;
  4. namespace MediaBrowser.Controller.Weather
  5. {
  6. /// <summary>
  7. /// Interface IWeatherProvider
  8. /// </summary>
  9. public interface IWeatherProvider
  10. {
  11. /// <summary>
  12. /// Gets the weather info async.
  13. /// </summary>
  14. /// <param name="location">The location.</param>
  15. /// <param name="cancellationToken">The cancellation token.</param>
  16. /// <returns>Task{WeatherInfo}.</returns>
  17. Task<WeatherInfo> GetWeatherInfoAsync(string location, CancellationToken cancellationToken);
  18. }
  19. }