示例#1
0
        public IActionResult GetWeatherStation()
        {
            _provider.SetMeasurements(new WeatherData(WeatherHelper.GetTemperature(), WeatherHelper.GetHumidity(), WeatherHelper.GetPressure(), DateTime.Now));

            Result.WeatherCurrentCondition = actualCondition;
            Result.WeatherSimpleForecast   = simpleForecast;
            Result.WeatherStatistics       = statistics;

            return(Ok(Result));
        }