Struct ForecastDaily
Data class that holds daily data parsed from forecast api response
Inherited Members
Namespace: WeatherAPI_CSharp
Assembly: WeatherAPI-CSharp.dll
Syntax
public readonly struct ForecastDaily
Properties
| Edit this page View SourceAvgHumidity
Declaration
public double AvgHumidity { get; }
Property Value
Type | Description |
---|---|
double | Average humidity as percentage |
AvgTemperatureCelsius
Declaration
public double AvgTemperatureCelsius { get; }
Property Value
Type | Description |
---|---|
double | Average temperature in celsius for the day |
AvgTemperatureFahrenheit
Declaration
public double AvgTemperatureFahrenheit { get; }
Property Value
Type | Description |
---|---|
double | Average temperature in fahrenheit for the day |
AvgVisibilityKm
Declaration
public double AvgVisibilityKm { get; }
Property Value
Type | Description |
---|---|
double | Average visibility in kilometer |
AvgVisibilityMiles
Declaration
public double AvgVisibilityMiles { get; }
Property Value
Type | Description |
---|---|
double | Average visibility in miles |
ChanceOfRain
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 |
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 |
Date
Declaration
public DateTime Date { get; }
Property Value
Type | Description |
---|---|
DateTime | Forecast date |
DateEpoch
Declaration
public long DateEpoch { get; }
Property Value
Type | Description |
---|---|
long | Forecast date as unix time |
MaxTemperatureCelsius
Declaration
public double MaxTemperatureCelsius { get; }
Property Value
Type | Description |
---|---|
double | Maximum temperature in celsius for the day |
MaxTemperatureFahrenheit
Declaration
public double MaxTemperatureFahrenheit { get; }
Property Value
Type | Description |
---|---|
double | Maximum temperature in fahrenheit for the day |
MaxWindKph
Declaration
public double MaxWindKph { get; }
Property Value
Type | Description |
---|---|
double | Maximum wind speed in kilometer per hour |
MaxWindMph
Declaration
public double MaxWindMph { get; }
Property Value
Type | Description |
---|---|
double | Maximum wind speed in miles per hour |
MinTemperatureCelsius
Declaration
public double MinTemperatureCelsius { get; }
Property Value
Type | Description |
---|---|
double | Minimum temperature in celsius for the day |
MinTemperatureFahrenheit
Declaration
public double MinTemperatureFahrenheit { get; }
Property Value
Type | Description |
---|---|
double | Minimum temperature in fahrenheit for the day |
TotalPrecipitationIn
Declaration
public double TotalPrecipitationIn { get; }
Property Value
Type | Description |
---|---|
double | Total precipitation in inches |
TotalPrecipitationMm
Declaration
public double TotalPrecipitationMm { get; }
Property Value
Type | Description |
---|---|
double | Total precipitation in milimeters |
TotalSnowCm
Declaration
public double TotalSnowCm { get; }
Property Value
Type | Description |
---|---|
double | Total snow in centimeters |
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 |
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 will snow or not |
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 |