C# Class DarkSkySharp.DarkSky

Show file Open project: greymouser/DarkSkySharp Class Usage Examples

Public Methods

Method Description
Forecast ( Geolocation location ) : ForecastObject

Call the DarkSky forecast API. lat/lon of location to forecast ForecastObject that represents the v1 forecast return result.

Precipitation ( int>.List locationsAndTimes ) : PrecipitationObject

Call the DarkSky precipitation API. List of key-value pairs of locations and times. PrecipitationObject that represents the v1 precipitation return result.

Private Methods

Method Description
DoGetRequest ( string url ) : string

Method Details

Forecast() public method

Call the DarkSky forecast API. lat/lon of location to forecast ForecastObject that represents the v1 forecast return result.
public Forecast ( Geolocation location ) : ForecastObject
location Geolocation
return ForecastObject

Precipitation() public method

Call the DarkSky precipitation API. List of key-value pairs of locations and times. PrecipitationObject that represents the v1 precipitation return result.
public Precipitation ( int>.List locationsAndTimes ) : PrecipitationObject
locationsAndTimes int>.List
return PrecipitationObject