Table of Contents

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

jsonResponse string

The 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

List<Alerts>

A list of objects containing National weather alerts data from major national weather warning systems

Current

Current weather data as an object

public Current? Current { get; }

Property Value

Current

Current weather data as an object

Daily

Daily forecast weather data as a list of objects containing the data for each day

public List<Daily> Daily { get; }

Property Value

List<Daily>

Daily forecast weather data as a list of objects containing the data for each day

Hourly

Hourly forecast weather data as a list of objects containing the data for each hour

public List<Hourly> Hourly { get; }

Property Value

List<Hourly>

Hourly forecast weather data as a list of objects containing the data for each hour

Latitude

Geographical coordinates of the location (latitude)

public double? Latitude { get; }

Property Value

double?

Geographical coordinates of the location (latitude)

Longitude

Geographical coordinates of the location (longitude)

public double? Longitude { get; }

Property Value

double?

Geographical coordinates of the location (longitude)

Timezone

Timezone name for the requested location

public string? Timezone { get; }

Property Value

string

Timezone name for the requested location

TimezoneOffset

Shift in hours from UTC

public int TimezoneOffset { get; }

Property Value

int

Shift in hours from UTC