Esempio n. 1
0
        public StoreLocatorViewModel(INavigation navigation)
        {
            _navigation = navigation;

            var settings = GoogleApiSettings.Builder.WithApiKey(Environment.GetEnvironmentVariable("GOOGLE_PLACES_API_KEY")).Build();

            _api = new GooglePlacesApiService(settings);

            _storeRepository = new StoreRepository();

            Task.Run(async() => await GetLocationAndStoresAsync());

            SetupObservables();
        }
Esempio n. 2
0
 public GetSuggestionHandler(IGooglePlacesApiService googlePlacesApiService, IMemoryCache cache)
 {
     _googlePlacesApiService = googlePlacesApiService;
     _cache = cache;
 }