public PlaceService(CarTrackerDbContext db, IPlaceRequester placeRequester, IGooglePlaceService googlePlaceService) { this._db = db; this._placeRequester = placeRequester; this._googlePlaceService = googlePlaceService; }
public PlaceDetailsViewModel(IGooglePlaceService googlePlaceService, INavigationService navigationService, PlacesSearchResult.Result place) { _googlePlaceService = googlePlaceService; _navigationService = navigationService; Place = place; //RefreshCommand.Execute(null); }
/// <summary> /// Gets the ShowDialogCommand. /// Use the "mvvmr*" snippet group to create more such commands. /// </summary> /// <summary> /// Initializes a new instance of the MainViewModel class. /// </summary> public MainViewModel( IDataService dataService, INavigationService navigationService, IGooglePlaceService googlePlaceService, IDialogService dialogService) { _dataService = dataService; _navigationService = navigationService; _googlePlaceService = googlePlaceService; _dialogService = dialogService; Places = new ObservableCollection <PlaceDetailsViewModel>(); RefreshCommand.Execute(null); }