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

Properties

Clouds

Gets the cloud coverage percentage.

public double? Clouds { get; }

Property Value

double?

The cloud coverage percentage.

DT

Gets the timestamp of this reading converted to local time.

public DateTime DT { get; }

Property Value

DateTime

The timestamp of this reading converted to local time.

DewPoint

Gets the dew point temperature.

public double? DewPoint { get; }

Property Value

double?

The dew point temperature.

FeelsLike

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

public double? FeelsLike { get; }

Property Value

double?

The feels-like temperature that accounts for humidity and wind.

Humidity

Gets the relative humidity percentage.

public double? Humidity { get; }

Property Value

double?

The relative humidity percentage.

Pressure

Gets the sea-level atmospheric pressure in hPa.

public double? Pressure { get; }

Property Value

double?

The sea-level atmospheric pressure in hPa.

Rain

Gets the rainfall totals for the period.

public Rain? Rain { get; }

Property Value

Rain

The rainfall totals for the period.

Snow

Gets the snowfall totals for the period.

public Snow? Snow { get; }

Property Value

Snow

The snowfall totals for the period.

Sunrise

Gets the sunrise time associated with the reading.

public DateTime Sunrise { get; }

Property Value

DateTime

The sunrise time associated with the reading.

Sunset

Gets the sunset time associated with the reading.

public DateTime Sunset { get; }

Property Value

DateTime

The sunset time associated with the reading.

Temperature

Gets the ambient temperature.

public double? Temperature { get; }

Property Value

double?

The ambient temperature.

Uvi

Gets the UV index.

public double? Uvi { get; }

Property Value

double?

The UV index.

Visibility

Gets the visibility distance in meters.

public double? Visibility { get; }

Property Value

double?

The visibility distance in meters.

Weather

Gets the descriptive weather information.

public Weather? Weather { get; }

Property Value

Weather

The descriptive weather information.

WindDegree

Gets the wind direction in meteorological degrees.

public double? WindDegree { get; }

Property Value

double?

The wind direction in meteorological degrees.

WindDirectionLong

Gets the long compass representation for the wind direction.

public string? WindDirectionLong { get; }

Property Value

string

The long compass representation for the wind direction.

WindDirectionShort

Gets the short compass representation for the wind direction.

public string? WindDirectionShort { get; }

Property Value

string

The short compass representation for the wind direction.

WindGust

Gets the wind gust speed in meters per second.

public double? WindGust { get; }

Property Value

double?

The wind gust speed in meters per second.

WindSpeed

Gets the wind speed in meters per second.

public double? WindSpeed { get; }

Property Value

double?

The wind speed in meters per second.

Methods

FromJson(string?)

Creates this model from its OpenWeather JSON fragment.

public static Current FromJson(string? json)

Parameters

json string

The JSON fragment, or null for an empty model.

Returns

Current

The parsed weather model.