async Task PerformSearch()
        {
            try
            {
                IsLoading = true;
                var city = await _api.GetCity(SearchText);

                NavigateTo(ShowCityDetails, city);
            }
            catch (Exception ee)
            {
                var e = ee.Message;
                await ShowErrorDialog();
            }
            finally
            {
                IsLoading = false;
            }
        }
Exemplo n.º 2
0
 public ApiRequest <Dictionary <string, string> > GetWeather(string city)
 {
     return(new ApiRequest <Dictionary <string, string> >(() => _api.GetCity(city)));
 }