public RefitSampleViewModel() { Title = "Refit sample"; //The code is commented for a reason. You can check which version do you prefere - Refit or BaseApiService? //weatherApiService = RestService.For<IWeatherApiService>("https://api.openweathermap.org"); weatherApiService = new WeatherApiService("https://api.openweathermap.org"); }
public WeatherApiController(IWeatherApiService weatherApiService) { _weatherApiService = weatherApiService; }
public MainWindowViewModel() { _cityWeather = new CityWeather(); _cityWeathers = new BindableCollection <CityWeather>(); _service = new WeatherApiService(URL); }
public IndexModel(IWeatherApiService weatherApiService) { _weatherApiService = weatherApiService; }
public HomeController(IYahooApiService yahooApiService, IWeatherApiService weatherApiService) { _yahooApiService = yahooApiService; _weatherApiService = weatherApiService; }
public CacheService(IWeatherApiService weatherApiService) { _weatherApiService = weatherApiService; }