Class Current
- Namespace
- SimpleWeather
- Assembly
- SimpleWeather.dll
Represents the current weather block returned by the One Call API.
public class Current
- Inheritance
-
Current
- Inherited Members
Constructors
Current(JToken?)
Initializes a new instance of the Current class from JSON data.
public Current(JToken? data)
Parameters
dataJTokenThe JSON token that contains the current weather values.
Properties
Clouds
Gets the cloud coverage percentage.
public double? Clouds { get; }
Property Value
DT
Gets the timestamp of this reading converted to local time.
public DateTime DT { get; }
Property Value
DewPoint
Gets the dew point temperature.
public double? DewPoint { get; }
Property Value
FeelsLike
Gets the feels-like temperature that accounts for humidity and wind.
public double? FeelsLike { get; }
Property Value
Humidity
Gets the relative humidity percentage.
public double? Humidity { get; }
Property Value
Pressure
Gets the sea-level atmospheric pressure in hPa.
public double? Pressure { get; }
Property Value
Rain
Gets the rainfall totals for the period.
public Rain? Rain { get; }
Property Value
Snow
Gets the snowfall totals for the period.
public Snow? Snow { get; }
Property Value
Sunrise
Gets the sunrise time associated with the reading.
public DateTime Sunrise { get; }
Property Value
Sunset
Gets the sunset time associated with the reading.
public DateTime Sunset { get; }
Property Value
Temperature
Gets the ambient temperature.
public double? Temperature { get; }
Property Value
Uvi
Gets the UV index.
public double? Uvi { get; }
Property Value
Visibility
Gets the visibility distance in meters.
public double? Visibility { get; }
Property Value
Weather
Gets the descriptive weather information.
public Weather? Weather { get; }
Property Value
WindDegree
Gets the wind direction in meteorological degrees.
public double? WindDegree { get; }
Property Value
WindDirectionLong
Gets the long compass representation for the wind direction.
public string? WindDirectionLong { get; }
Property Value
WindDirectionShort
Gets the short compass representation for the wind direction.
public string? WindDirectionShort { get; }
Property Value
WindGust
Gets the wind gust speed in meters per second.
public double? WindGust { get; }
Property Value
WindSpeed
Gets the wind speed in meters per second.
public double? WindSpeed { get; }