Show / Hide Table of Contents

Struct Forecast

Data class that holds data parsed from realtime api response

Inherited Members
ValueType.Equals(object)
ValueType.GetHashCode()
object.Equals(object, object)
object.GetType()
object.ReferenceEquals(object, object)
Namespace: WeatherAPI_CSharp
Assembly: WeatherAPI-CSharp.dll
Syntax
public readonly struct Forecast

Properties

| Edit this page View Source

AirQuality

Declaration
public AirQuality AirQuality { get; }
Property Value
Type Description
AirQuality

AirQuality data

| Edit this page View Source

Clouds

Declaration
public int Clouds { get; }
Property Value
Type Description
int

Cloud cover as percentage

| Edit this page View Source

ConditionCode

Declaration
public int ConditionCode { get; }
Property Value
Type Description
int

Weather condition unique code

| Edit this page View Source

ConditionIconUrl

Declaration
public string ConditionIconUrl { get; }
Property Value
Type Description
string

Weather icon url

| Edit this page View Source

ConditionText

Declaration
public string ConditionText { get; }
Property Value
Type Description
string

Weather condition text

| Edit this page View Source

FeelsLikeCelsius

Declaration
public double FeelsLikeCelsius { get; }
Property Value
Type Description
double

Feels like temperature in celsius

| Edit this page View Source

FeelsLikeFahrenheit

Declaration
public double FeelsLikeFahrenheit { get; }
Property Value
Type Description
double

Feels like temperature in fahrenheit

| Edit this page View Source

GustKph

Declaration
public double GustKph { get; }
Property Value
Type Description
double

Wind gust in kilometer per hour

| Edit this page View Source

GustMph

Declaration
public double GustMph { get; }
Property Value
Type Description
double

Wind gust in miles per hour

| Edit this page View Source

Humidity

Declaration
public int Humidity { get; }
Property Value
Type Description
int

Humidity as percentage

| Edit this page View Source

IsDay

Declaration
public bool IsDay { get; }
Property Value
Type Description
bool

Whether to show day condition icon or night icon

| Edit this page View Source

LastUpdated

Declaration
public string LastUpdated { get; }
Property Value
Type Description
string

Local time when the real time data was updated

| Edit this page View Source

LastUpdatedEpoch

Declaration
public long LastUpdatedEpoch { get; }
Property Value
Type Description
long

Local time when the real time data was updated in unix time

| Edit this page View Source

PrecipitationIn

Declaration
public double PrecipitationIn { get; }
Property Value
Type Description
double

Precipitation amount in inches

| Edit this page View Source

PrecipitationMm

Declaration
public double PrecipitationMm { get; }
Property Value
Type Description
double

Precipitation amount in millimeters

| Edit this page View Source

PressureIn

Declaration
public double PressureIn { get; }
Property Value
Type Description
double

Pressure in inches

| Edit this page View Source

PressureMb

Declaration
public double PressureMb { get; }
Property Value
Type Description
double

Pressure in millibars

| Edit this page View Source

TemperatureCelsius

Declaration
public double TemperatureCelsius { get; }
Property Value
Type Description
double

Temperature in celsius

| Edit this page View Source

TemperatureFahrenheit

Declaration
public double TemperatureFahrenheit { get; }
Property Value
Type Description
double

Temperature in fahrenheit

| Edit this page View Source

UV

Declaration
public double UV { get; }
Property Value
Type Description
double

UV Index

| Edit this page View Source

Valid

Declaration
public bool Valid { get; }
Property Value
Type Description
bool

Whether or not the API request was successfull

| Edit this page View Source

WindDegree

Declaration
public int WindDegree { get; }
Property Value
Type Description
int

Wind direction in degrees

| Edit this page View Source

WindDirection

Declaration
public string WindDirection { get; }
Property Value
Type Description
string

Wind direction as 16 point compass. e.g.: NSW

| Edit this page View Source

WindKph

Declaration
public double WindKph { get; }
Property Value
Type Description
double

Wind speed in kilometer per hour

| Edit this page View Source

WindMph

Declaration
public double WindMph { get; }
Property Value
Type Description
double

Wind speed in miles per hour

Methods

| Edit this page View Source

ToString()

Generates string of all Members and their values

Declaration
public override string ToString()
Returns
Type Description
string

Printable string of members and their values

Overrides
ValueType.ToString()
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX