Class WeatherForecast
- Namespace
- SimpleWeather
- Assembly
- SimpleWeather.dll
An object that provides weather forecast data
public class WeatherForecast
- Inheritance
-
WeatherForecast
- Inherited Members
Constructors
WeatherForecast(string)
Initializes a new instance of the WeatherForecast class from a JSON response.
public WeatherForecast(string jsonResponse)
Parameters
jsonResponsestringThe raw JSON returned by the One Call API.
Properties
Alerts
A list of objects containing National weather alerts data from major national weather warning systems
public List<Alerts> Alerts { get; }
Property Value
Current
Current weather data as an object
public Current? Current { get; }
Property Value
Daily
Daily forecast weather data as a list of objects containing the data for each day
public List<Daily> Daily { get; }
Property Value
Hourly
Hourly forecast weather data as a list of objects containing the data for each hour
public List<Hourly> Hourly { get; }
Property Value
Latitude
Geographical coordinates of the location (latitude)
public double? Latitude { get; }
Property Value
Longitude
Geographical coordinates of the location (longitude)
public double? Longitude { get; }
Property Value
Timezone
Timezone name for the requested location
public string? Timezone { get; }
Property Value
TimezoneOffset
Shift in hours from UTC
public int TimezoneOffset { get; }