Struct Forecast
Data class that holds data parsed from realtime api response
Inherited Members
Namespace: WeatherAPI_CSharp
Assembly: WeatherAPI-CSharp.dll
Syntax
public readonly struct Forecast
Properties
| Edit this page View SourceAirQuality
Declaration
public AirQuality AirQuality { get; }
Property Value
| Type | Description |
|---|---|
| AirQuality | AirQuality data |
Clouds
Declaration
public int Clouds { get; }
Property Value
| Type | Description |
|---|---|
| int | Cloud cover as percentage |
ConditionCode
Declaration
public int ConditionCode { get; }
Property Value
| Type | Description |
|---|---|
| int | Weather condition unique code |
ConditionIconUrl
Declaration
public string ConditionIconUrl { get; }
Property Value
| Type | Description |
|---|---|
| string | Weather icon url |
ConditionText
Declaration
public string ConditionText { get; }
Property Value
| Type | Description |
|---|---|
| string | Weather condition text |
FeelsLikeCelsius
Declaration
public double FeelsLikeCelsius { get; }
Property Value
| Type | Description |
|---|---|
| double | Feels like temperature in celsius |
FeelsLikeFahrenheit
Declaration
public double FeelsLikeFahrenheit { get; }
Property Value
| Type | Description |
|---|---|
| double | Feels like temperature in fahrenheit |
GustKph
Declaration
public double GustKph { get; }
Property Value
| Type | Description |
|---|---|
| double | Wind gust in kilometer per hour |
GustMph
Declaration
public double GustMph { get; }
Property Value
| Type | Description |
|---|---|
| double | Wind gust in miles per hour |
Humidity
Declaration
public int Humidity { get; }
Property Value
| Type | Description |
|---|---|
| int | Humidity as percentage |
IsDay
Declaration
public bool IsDay { get; }
Property Value
| Type | Description |
|---|---|
| bool | Whether to show day condition icon or night icon |
LastUpdated
Declaration
public string LastUpdated { get; }
Property Value
| Type | Description |
|---|---|
| string | Local time when the real time data was updated |
LastUpdatedEpoch
Declaration
public long LastUpdatedEpoch { get; }
Property Value
| Type | Description |
|---|---|
| long | Local time when the real time data was updated in unix time |
PrecipitationIn
Declaration
public double PrecipitationIn { get; }
Property Value
| Type | Description |
|---|---|
| double | Precipitation amount in inches |
PrecipitationMm
Declaration
public double PrecipitationMm { get; }
Property Value
| Type | Description |
|---|---|
| double | Precipitation amount in millimeters |
PressureIn
Declaration
public double PressureIn { get; }
Property Value
| Type | Description |
|---|---|
| double | Pressure in inches |
PressureMb
Declaration
public double PressureMb { get; }
Property Value
| Type | Description |
|---|---|
| double | Pressure in millibars |
TemperatureCelsius
Declaration
public double TemperatureCelsius { get; }
Property Value
| Type | Description |
|---|---|
| double | Temperature in celsius |
TemperatureFahrenheit
Declaration
public double TemperatureFahrenheit { get; }
Property Value
| Type | Description |
|---|---|
| double | Temperature in fahrenheit |
UV
Declaration
public double UV { get; }
Property Value
| Type | Description |
|---|---|
| double | UV Index |
Valid
Declaration
public bool Valid { get; }
Property Value
| Type | Description |
|---|---|
| bool | Whether or not the API request was successfull |
WindDegree
Declaration
public int WindDegree { get; }
Property Value
| Type | Description |
|---|---|
| int | Wind direction in degrees |
WindDirection
Declaration
public string WindDirection { get; }
Property Value
| Type | Description |
|---|---|
| string | Wind direction as 16 point compass. e.g.: NSW |
WindKph
Declaration
public double WindKph { get; }
Property Value
| Type | Description |
|---|---|
| double | Wind speed in kilometer per hour |
WindMph
Declaration
public double WindMph { get; }
Property Value
| Type | Description |
|---|---|
| double | Wind speed in miles per hour |
Methods
| Edit this page View SourceToString()
Generates string of all Members and their values
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string | Printable string of members and their values |