Class Rain
- Namespace
- SimpleWeather
- Assembly
- SimpleWeather.dll
Represents precipitation data for the current weather response.
public class Rain
- Inheritance
-
Rain
- Inherited Members
Properties
OneHour
Rain volume for the last 1 hour, mm
public double? OneHour { get; }
Property Value
- double?
Rain volume for the last 1 hour, mm
ThreeHours
Rain volume for the last 3 hours, mm
public double? ThreeHours { get; }
Property Value
- double?
Rain volume for the last 3 hours, mm
Methods
FromJson(string?)
Creates this model from its OpenWeather JSON fragment.
public static Rain FromJson(string? json)
Parameters
jsonstringThe JSON fragment, or null for an empty model.
Returns
- Rain
The parsed weather model.