Table of Contents

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

data JToken

The JSON token that contains the current weather values.

Properties

Clouds

Gets the cloud coverage percentage.

public double? Clouds { get; }

Property Value

double?

DT

Gets the timestamp of this reading converted to local time.

public DateTime DT { get; }

Property Value

DateTime

DewPoint

Gets the dew point temperature.

public double? DewPoint { get; }

Property Value

double?

FeelsLike

Gets the feels-like temperature that accounts for humidity and wind.

public double? FeelsLike { get; }

Property Value

double?

Humidity

Gets the relative humidity percentage.

public double? Humidity { get; }

Property Value

double?

Pressure

Gets the sea-level atmospheric pressure in hPa.

public double? Pressure { get; }

Property Value

double?

Rain

Gets the rainfall totals for the period.

public Rain? Rain { get; }

Property Value

Rain

Snow

Gets the snowfall totals for the period.

public Snow? Snow { get; }

Property Value

Snow

Sunrise

Gets the sunrise time associated with the reading.

public DateTime Sunrise { get; }

Property Value

DateTime

Sunset

Gets the sunset time associated with the reading.

public DateTime Sunset { get; }

Property Value

DateTime

Temperature

Gets the ambient temperature.

public double? Temperature { get; }

Property Value

double?

Uvi

Gets the UV index.

public double? Uvi { get; }

Property Value

double?

Visibility

Gets the visibility distance in meters.

public double? Visibility { get; }

Property Value

double?

Weather

Gets the descriptive weather information.

public Weather? Weather { get; }

Property Value

Weather

WindDegree

Gets the wind direction in meteorological degrees.

public double? WindDegree { get; }

Property Value

double?

WindDirectionLong

Gets the long compass representation for the wind direction.

public string? WindDirectionLong { get; }

Property Value

string

WindDirectionShort

Gets the short compass representation for the wind direction.

public string? WindDirectionShort { get; }

Property Value

string

WindGust

Gets the wind gust speed in meters per second.

public double? WindGust { get; }

Property Value

double?

WindSpeed

Gets the wind speed in meters per second.

public double? WindSpeed { get; }

Property Value

double?