Beispiel #1
0
 public FindClosestPlacesCommand(
     IPlaces placesApi,
     IGeolocatorService geoLocator,
     ICategoriesService categoryService,
     CancellationToken cancellationToken)
 {
     this.categoryService   = categoryService;
     this.cancellationToken = cancellationToken;
     this.geoLocator        = geoLocator;
     this.placesApi         = placesApi;
 }
        public AddressPickerViewModel(IOrderWorkflowService orderWorkflowService,
                                      IPlaces placesService,
                                      IGeolocService geolocService,
                                      IAccountService accountService,
                                      ILocationService locationService,
                                      IPostalCodeService postalCodeService,
                                      IGeocoding geocodingService)
        {
            _orderWorkflowService = orderWorkflowService;
            _geolocService        = geolocService;
            _placesService        = placesService;
            _accountService       = accountService;
            _locationService      = locationService;
            _postalCodeService    = postalCodeService;
            _geocodingService     = geocodingService;

            Observe(_orderWorkflowService.GetAndObserveAddressSelectionMode(), addressSelectionMode => AddressSelectionMode   = addressSelectionMode);
            Observe(_orderWorkflowService.GetAndObserveDropOffSelectionMode(), dropOffSelectionMode => IsDropOffSelectionMode = dropOffSelectionMode);

            FilteredPlaces = new AddressViewModel[0];
        }
Beispiel #3
0
 public PlaceDetailService(IPlaces client)
 {
     _client = client;
 }
Beispiel #4
0
 public PlacesViewModel(IPlaces placesServices, IGeolocator geolocator)
 {
     this.geolocator     = geolocator;
     this.placesServices = placesServices;
 }
Beispiel #5
0
 public NearbyPlacesService(IPlaces client, IAccountDao accountDao)
 {
     _client     = client;
     _accountDao = accountDao;
 }
 /// <summary>
 /// Constructor method to bring in the IPlaces interface upon instantiation.
 /// </summary>
 /// <param name="places">The IPlaces interface to bring in.</param>
 public PlacesController(IPlaces places)
 {
     _places = places;
 }