C# Class Com.Aurora.AuWeather.Models.HeWeather.HeWeatherModel

Show file Open project: aurora-lzzp/Aurora-Weather Class Usage Examples

Public Methods

Method Description
Generate ( string resstr, DataSource dataSource ) : HeWeatherModel
HeWeatherModel ( HeWeatherContract heweathercontract ) : Com.Aurora.Shared.Extensions
HeWeatherModel ( Now now, Forecast forecast ) : Com.Aurora.Shared.Extensions
HeWeatherModel ( WunderGroundContract wun ) : Com.Aurora.Shared.Extensions

Private Methods

Method Description
GenerateDailyForecast ( Daily daily ) : Com.Aurora.AuWeather.Models.HeWeather.DailyForecast[]
GenerateDailyForecast ( DailyForecastContract daily_forecast ) : Com.Aurora.AuWeather.Models.HeWeather.DailyForecast[]
GenerateDailyForecast ( forecastday forecast ) : Com.Aurora.AuWeather.Models.HeWeather.DailyForecast[]
GenerateHourlyForecast ( Hourly hourly ) : Com.Aurora.AuWeather.Models.HeWeather.HourlyForecast[]
GenerateHourlyForecast ( HourlyForecastContract hourly_forecast ) : Com.Aurora.AuWeather.Models.HeWeather.HourlyForecast[]
GenerateHourlyForecast ( hourly hourly_forecast ) : Com.Aurora.AuWeather.Models.HeWeather.HourlyForecast[]
GenerateWeatherAlarms ( WeatherAlarmContract alarms ) : Com.Aurora.AuWeather.Models.HeWeather.WeatherAlarm[]
ParseStatus ( string status_s ) : HeWeatherStatus
ParseStatus_C ( string status_s ) : HeWeatherStatus
ParseStatus_W ( WunderGroundContract w ) : HeWeatherStatus

Method Details

Generate() public static method

public static Generate ( string resstr, DataSource dataSource ) : HeWeatherModel
resstr string
dataSource DataSource
return HeWeatherModel

HeWeatherModel() public method

public HeWeatherModel ( HeWeatherContract heweathercontract ) : Com.Aurora.Shared.Extensions
heweathercontract Com.Aurora.AuWeather.Models.HeWeather.JsonContract.HeWeatherContract
return Com.Aurora.Shared.Extensions

HeWeatherModel() public method

public HeWeatherModel ( Now now, Forecast forecast ) : Com.Aurora.Shared.Extensions
now Com.Aurora.AuWeather.Core.Models.Caiyun.JsonContract.Now
forecast Com.Aurora.AuWeather.Core.Models.Caiyun.JsonContract.Forecast
return Com.Aurora.Shared.Extensions

HeWeatherModel() public method

public HeWeatherModel ( WunderGroundContract wun ) : Com.Aurora.Shared.Extensions
wun Com.Aurora.AuWeather.Core.Models.WunderGround.JsonContract.WunderGroundContract
return Com.Aurora.Shared.Extensions