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>

Current

Current weather data as an object

public Current? Current { get; }

Property Value

Current

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>

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>

Latitude

Geographical coordinates of the location (latitude)

public double? Latitude { get; }

Property Value

double?

Longitude

Geographical coordinates of the location (longitude)

public double? Longitude { get; }

Property Value

double?

Timezone

Timezone name for the requested location

public string? Timezone { get; }

Property Value

string

TimezoneOffset

Shift in hours from UTC

public int TimezoneOffset { get; }

Property Value

int