BibaWeatherInfo ProcessWeatherJSON(string text) { var jsonData = JsonUtility.FromJson <BibaWeatherResponse>(text); var weatherInfo = new BibaWeatherInfo(); weatherInfo.TimeStamp = DateTime.UtcNow; weatherInfo.Temperature = (float)jsonData.main.temp; weatherInfo.WeatherDescription = jsonData.weather[0].description; weatherInfo.WindSpeed = (float)jsonData.wind.speed; return(weatherInfo); }
public void TrackWeatherInfo(BibaWeatherInfo weatherInfo) { }