コード例 #1
0
        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");
        }
コード例 #2
0
 public WeatherApiController(IWeatherApiService weatherApiService)
 {
     _weatherApiService = weatherApiService;
 }
コード例 #3
0
 public MainWindowViewModel()
 {
     _cityWeather  = new CityWeather();
     _cityWeathers = new BindableCollection <CityWeather>();
     _service      = new WeatherApiService(URL);
 }
コード例 #4
0
 public IndexModel(IWeatherApiService weatherApiService)
 {
     _weatherApiService = weatherApiService;
 }
コード例 #5
0
 public HomeController(IYahooApiService yahooApiService, IWeatherApiService weatherApiService)
 {
     _yahooApiService   = yahooApiService;
     _weatherApiService = weatherApiService;
 }
コード例 #6
0
 public CacheService(IWeatherApiService weatherApiService)
 {
     _weatherApiService = weatherApiService;
 }