private void FetchWeatherData() { _lastFetch = DateTime.Now; var location = LocationProvider.GetLocation(); var request = _client.CreateRequest("weather", Method.GET); request.AddParameter("lat", location.Latitude) .AddParameter("lon", location.Longitude); request.RequestFormat = DataFormat.Json; request.JsonSerializer = new RestSharpJsonNetSerializer(); var response = _client.Get <RootObject>(request); print(response.Content); WeatherSystem.StartRain(); }