Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 public void TrackWeatherInfo(BibaWeatherInfo weatherInfo)
 {
 }