Struct ForecastHourly
Data class that holds hourly data parsed from forecast api response
Inherited Members
Namespace: WeatherAPI_CSharp
Assembly: WeatherAPI-CSharp.dll
Syntax
public readonly struct ForecastHourly
Properties
| Edit this page View SourceChanceOfRain
Declaration
public int ChanceOfRain { get; }
Property Value
Type | Description |
---|---|
int | Chance of rain as percentage |
ChanceOfSnow
Declaration
public int ChanceOfSnow { get; }
Property Value
Type | Description |
---|---|
int | Chance of snow as percentage |
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 code |
ConditionIconUrl
Declaration
public string ConditionIconUrl { get; }
Property Value
Type | Description |
---|---|
string | Weather condition icon |
ConditionText
Declaration
public string ConditionText { get; }
Property Value
Type | Description |
---|---|
string | Weather condition text |
Date
Declaration
public DateTime Date { get; }
Property Value
Type | Description |
---|---|
DateTime | Date and time of forecast |
DateEpoch
Declaration
public long DateEpoch { get; }
Property Value
Type | Description |
---|---|
long | Date and time of forecast as unix time |
DewPointCelsius
Declaration
public double DewPointCelsius { get; }
Property Value
Type | Description |
---|---|
double | Dew point in celcius |
DewPointFahrenheit
Declaration
public double DewPointFahrenheit { get; }
Property Value
Type | Description |
---|---|
double | Dew point in fahrenheit |
FeelsLikeCelsius
Declaration
public double FeelsLikeCelsius { get; }
Property Value
Type | Description |
---|---|
double | Feels like temperature as celcius |
FeelsLikeFahrenheit
Declaration
public double FeelsLikeFahrenheit { get; }
Property Value
Type | Description |
---|---|
double | Feels like temperature as fahrenheit |
GustKph
Declaration
public double GustKph { get; }
Property Value
Type | Description |
---|---|
double | Wind gust in kilometers per hour |
GustMph
Declaration
public double GustMph { get; }
Property Value
Type | Description |
---|---|
double | Wind gust in miles per hour |
HeatIndexCelsius
Declaration
public double HeatIndexCelsius { get; }
Property Value
Type | Description |
---|---|
double | Heat index in celcius |
HeatIndexFahrenheit
Declaration
public double HeatIndexFahrenheit { get; }
Property Value
Type | Description |
---|---|
double | Heat index in fahrenheit |
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 |
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 |
VisibilityKm
Declaration
public double VisibilityKm { get; }
Property Value
Type | Description |
---|---|
double | Visibility in kilometers |
VisibilityMiles
Declaration
public double VisibilityMiles { get; }
Property Value
Type | Description |
---|---|
double | Visibility in miles |
WillItRain
Declaration
public bool WillItRain { get; }
Property Value
Type | Description |
---|---|
bool | Will it will rain or not |
WillItSnow
Declaration
public bool WillItSnow { get; }
Property Value
Type | Description |
---|---|
bool | Will it snow or not |
WindChillCelsius
Declaration
public double WindChillCelsius { get; }
Property Value
Type | Description |
---|---|
double | Windchill temperature in celcius |
WindChillFahrenheit
Declaration
public double WindChillFahrenheit { get; }
Property Value
Type | Description |
---|---|
double | Windchill temperature in fahrenheit |
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 | Maximum wind speed in kilometers per hour |
WindMph
Declaration
public double WindMph { get; }
Property Value
Type | Description |
---|---|
double | Maximum 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 |