Class Temperature
- Namespace
- SimpleWeather
- Assembly
- SimpleWeather.dll
Represents the temperature readings for each part of the day in the daily forecast.
public class Temperature
- Inheritance
-
Temperature
- Inherited Members
Properties
Day
Daytime temperature in Celsius.
public double? Day { get; }
Property Value
- double?
Daytime temperature in Celsius.
Evening
Evening temperature in Celsius.
public double? Evening { get; }
Property Value
- double?
Evening temperature in Celsius.
Max
Maximum daily temperature in Celsius.
public double? Max { get; }
Property Value
- double?
Maximum daily temperature in Celsius.
Min
Minimum daily temperature in Celsius.
public double? Min { get; }
Property Value
- double?
Minimum daily temperature in Celsius.
Morning
Morning temperature in Celsius.
public double? Morning { get; }
Property Value
- double?
Morning temperature in Celsius.
Night
Night temperature in Celsius.
public double? Night { get; }
Property Value
- double?
Night temperature in Celsius.
Methods
FromJson(string?)
Creates this model from its OpenWeather JSON fragment.
public static Temperature FromJson(string? json)
Parameters
jsonstringThe JSON fragment, or null for an empty model.
Returns
- Temperature
The parsed weather model.