public WeatherViewModel() { GetWeatherCommand = new RelayCommand(async() => await GetWeather()); #if WINDOWS_UWP || __IOS__ || __ANDROID__ _geoLocationService = new GeoLocationService(); #endif }
/// <summary> /// /// </summary> /// <param name="languageServices"></param> /// <param name="userProfileServices"></param> /// <param name="geoLocationServices"></param> public UserProfileController(ILanguagesService languageServices, IUsersService userProfileServices, IGeoLocationService geoLocationServices) { _languageServices = languageServices; _userProfileServices = userProfileServices; _geoLocationServices = geoLocationServices; AccessTokenFormat = Startup.OAuthOptions.AccessTokenFormat; }
// Constructor public DetailPageViewModel(INavigationService navigationService, IRepository repository, IPageDialogService dialogService, IGeoLocationService geoLocationService) { _navigationService = navigationService; _repository = repository; _dialogService = dialogService; _geoLocationService = geoLocationService; }
public HitController( IGeoLocationService geoLocationService, IHitClientService hitClient) { _geoLocationService = geoLocationService; _hitClient = hitClient; }
/// <summary> /// Constructor /// </summary> /// <param name="membershipService"></param> /// <param name="userService"></param> /// <param name="applicationService"></param> /// <param name="jwtService"></param> /// <param name="cryptographyService"></param> /// <param name="eventService"></param> /// <param name="activeTokensRepository"></param> /// <param name="revokedTokensRepository"></param> /// <param name="scheduledJobService"></param> /// <param name="geoLocationOptions"></param> /// <param name="geoLocationService"></param> public TokenService( IMembershipService membershipService, IUserService userService, IApplicationService applicationService, IJwtService jwtService, ICryptographyService cryptographyService, IEventService eventService, IActiveTokensRepository activeTokensRepository, IRevokedTokensRepository revokedTokensRepository, IScheduledJobService scheduledJobService, IGeoLocationOptions geoLocationOptions, IGeoLocationService geoLocationService) { this.membershipService = membershipService; this.userService = userService; this.applicationService = applicationService; this.jwtService = jwtService; this.cryptographyService = cryptographyService; this.eventService = eventService; this.activeTokensRepository = activeTokensRepository; this.revokedTokensRepository = revokedTokensRepository; this.geoLocationOptions = geoLocationOptions; this.geoLocationService = geoLocationService; scheduledJobService.ScheduleTokenCleanerJobsAsync().ConfigureAwait(false); }
public SpotService( ApplicationDbContext applicationDbContext, IGeoLocationService geoLocationService, IMapper mapper) : base(applicationDbContext, mapper) { _geoLocationService = geoLocationService; _mapper = mapper; }
public AddressService(IUnitOfWork unitOfWork, IMapper mapper, IGeoLocationService geoLocationService) { UnitOfWork = unitOfWork; Mapper = mapper; GeoLocationService = geoLocationService; }
public PropertyCrossPresenter(PropertyCrossPersistentState state, PropertyDataSource dataSource, INavigationService navigationService, IGeoLocationService geolocationService) { _propertyDataSource = dataSource; _navigationService = navigationService; _state = state; _geolocationService = geolocationService; }
public PropertyFinderPresenter(PropertyFinderPersistentState state, PropertyDataSource dataSource, INavigationService navigationService, IGeoLocationService geolocationService) { _propertyDataSource = dataSource; _navigationService = navigationService; _state = state; _geolocationService = geolocationService; }
/// <summary> /// Initializes a new instance of the <see cref="POIController"/> class. /// </summary> /// <param name="poiRepo">The poi repo.</param> /// <param name="userTourRepo">The user tour repo.</param> /// <param name="userPOIRepo">The user poi repo.</param> /// <param name="geoLocationService">The geo location service.</param> public POIController(IPOIRepo poiRepo, IUserTourRepo userTourRepo, IUserPOIRepo userPOIRepo, IGeoLocationService geoLocationService) { _poiRepo = poiRepo; _userTourRepo = userTourRepo; _userPOIRepo = userPOIRepo; _geoLocationService = geoLocationService; }
/// <summary> /// /// </summary> /// <param name="geoLocationService"></param> /// <param name="logger"></param> public GeoLocationController( IGeoLocationService geoLocationService, ILogger <GeoLocationController> logger ) { _geoLocationService = geoLocationService; _logger = logger; }
public FitMeetRestService(IPageDialogService dialogService, IGeoLocationService geoService, IDependencyService dependencyService) { this.httpClient = new HttpClient() { BaseAddress = new Uri(BaseUri) }; _dialogService = dialogService; _geoService = geoService; _dependencyService = dependencyService; }
public CTimeService(IEventAggregator eventAggregator, IApplicationStateService applicationStateService, IGeoLocationService geoLocationService) { Guard.NotNull(eventAggregator, nameof(eventAggregator)); Guard.NotNull(applicationStateService, nameof(applicationStateService)); Guard.NotNull(geoLocationService, nameof(geoLocationService)); this._eventAggregator = eventAggregator; this._applicationStateService = applicationStateService; this._geoLocationService = geoLocationService; }
public DataFetcher( IStopAreaFetcher stopAreaFetcher, IDepartureFetcher departureFetcher, IGeoLocationService geoLocationService, ILogger <DataFetcher> logger) { this.stopAreaFetcher = stopAreaFetcher; this.departureFetcher = departureFetcher; this.geoLocationService = geoLocationService; this.logger = logger; }
public override void SetUp() { base.SetUp(); services.AddGeoLocationService(); Context.Initialize(services); Context.Current.Configure(services.BuildServiceProvider()); GeoLocationService = Context.Current.GetService <IGeoLocationService>(); }
public LoyaltyService( ApplicationDbContext applicationDbContext, IIdentityService identityService, IUserService userService, IGeoLocationService geoLocationService, IMapper mapper) : base(applicationDbContext, mapper) { _mapper = mapper; _identityService = identityService; _userService = userService; _geoLocationService = geoLocationService; }
public GameService( ApplicationDbContext applicationDbContext, IMapper mapper, IHubContext <GameHub> hubContext, IUserService userService, IGeoLocationService geoLocationService, IBotService botService) : base(applicationDbContext, mapper) { _hubContext = hubContext; _userService = userService; _geoLocationService = geoLocationService; _botService = botService; }
public ClientsHub( Log.Delegate log, IGeoLocationService geoLocationService, IAddClientService addClientService, IRemoveClientService removeClientService, IClientStatusService clientStatusService) { _log = log; _geoLocationService = geoLocationService; _addClientService = addClientService; _removeClientService = removeClientService; _clientStatusService = clientStatusService; }
protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); SetContentView(Resource.Layout.Map); InitMapFragment(); SetCurrentPositionButton(); SetStartListeningButton(); SetStopListeningButton(); _geoLocationService = Resolver.Resolve <IGeoLocationService>(); _googleApiClient = new Builder(this, this, this) .AddApi(LocationServices.API).Build(); }
public PropertyFinderViewModel(PropertyFinderPersistentState state, PropertyDataSource dataSource, INavigationService navigationService, IGeoLocationService geolocationService) { _propertyDataSource = dataSource; _navigationService = navigationService; _state = state; _geolocationService = geolocationService; _recentSearches = state.RecentSearches; foreach (var search in _recentSearches) { search.Parent = this; } }
public PropertyFinderViewModel(PropertyFinderPersistentState stateFactory, PropertyDataSource dataSource, IGeoLocationService geolocationService) { _state = stateFactory; _dataSource = dataSource; _geolocationService = geolocationService; SearchCommand = new MvxCommand(DoSearch); UseLocationCommand = new MvxCommand(DoUseLocation); ShowFavouritesCommand = new MvxCommand(DoShowFavourites); RecentSearchSelectedCommand = new MvxCommand<RecentSearch>(DoRecentSearchSelected); LocationSelectedCommand = new MvxCommand<Location>(DoLocationSelected); SuggestedLocations = new ObservableCollection<Location>(); RecentSearches = new ObservableCollection<RecentSearch>(); LoadRecentSearches(); }
public TripViewModel(IGeoLocationService _geoLocationService) { Current = this; this.geoLocationService = _geoLocationService; this._currentTripDataRepo = new TripDataRepository(); if (dispRequest == null) { dispRequest = new DisplayRequest(); dispRequest.RequestActive(); } smartTimer = new IntervalTimer(1); upTimer = new DispatcherTimer(); upTimer.Interval = TimeSpan.FromSeconds(1); upTimer.Tick += new EventHandler <object>(UpTimerTick); }
public GeoLocationPresenter(IGeoLocationView view, IAppContext context, IGeoLocationService geolocationService) : base(view) { if (context == null) { throw new ArgumentNullException("context"); } if (geolocationService == null) { throw new ArgumentNullException("geolocationService"); } _context = context; _geolocationService = geolocationService; View.Search += () => ViewOkClicked(); }
public PropertyFinderViewModel(PropertyFinderPersistentState stateFactory, PropertyDataSource dataSource, IGeoLocationService geolocationService) { _state = stateFactory; _dataSource = dataSource; _geolocationService = geolocationService; SearchCommand = new MvxCommand(DoSearch); UseLocationCommand = new MvxCommand(DoUseLocation); ShowFavouritesCommand = new MvxCommand(DoShowFavourites); RecentSearchSelectedCommand = new MvxCommand <RecentSearch>(DoRecentSearchSelected); LocationSelectedCommand = new MvxCommand <Location>(DoLocationSelected); SuggestedLocations = new ObservableCollection <Location>(); RecentSearches = new ObservableCollection <RecentSearch>(); LoadRecentSearches(); }
public ChallengeRequestService( ApplicationDbContext applicationDbContext, IUserService userService, IBotService botService, IChallengeService challengeService, IGeoLocationService geoLocationService, IMapper mapper, IHttpHandler httpHandler, IHubContext <ChallengeHub> hubContext) : base(applicationDbContext, mapper) { _userService = userService; _botService = botService; _challengeService = challengeService; _geoLocationService = geoLocationService; _hubContext = hubContext; _mapper = mapper; _httpHandler = httpHandler; }
public RegisterSetAddressViewModel(SetAddressNavigation setAddress, IScreen hostScreen = null, IGeoLocationService geoLocationService = null, IDialogService dialogService = null, ILogger logger = null) : base(hostScreen) { _hostScreen = hostScreen ?? Locator.Current.GetService <IScreen>(); _geoLocationService = geoLocationService ?? Locator.Current.GetService <IGeoLocationService>(); _dialogService = dialogService ?? Locator.Current.GetService <IDialogService>(); _logger = logger ?? Locator.Current.GetService <ILogger>(); Prepare(setAddress); CancelCommand = ReactiveCommand.CreateFromTask(Cancel); RegisterCommand = ReactiveCommand.CreateFromTask(Register); var validateSearchObservable = this.WhenAnyValue(vm => vm.AddressSearchText, (searchText) => searchText.Length > 3).StartWith(false); validateSearchObservable.ToProperty(this, vm => vm.CanSearch, out _canSearchPropertyHelper); SearchAddressCommand = ReactiveCommand.CreateFromTask(SearchAddress, validateSearchObservable); }
static async Task CalculateResults() { ServiceProvider provider = ConfigureServices(); ILocationServiceAdapter locationAdapter = provider.GetService <ILocationServiceAdapter>(); IGeoLocationService geoService = provider.GetService <IGeoLocationService>(); IUser[] users = await locationAdapter.GetUsers("https://jsonplaceholder.typicode.com/users"); GeoLocationResult result = geoService.GetFarthestUsers(users); Console.WriteLine($"Farthest distance is: {result.Distance} km"); Console.WriteLine(); result.UserOne.PrintUser(); Console.WriteLine(); result.UserTwo.PrintUser(); PrintResultsToDisk(result); }
/// <inheritdoc /> /// <remarks> /// Last modification: /// Add geo-location service. /// </remarks> public StopController(IGeoLocationService geoLocationService, IHostingEnvironment hostingEnvironment, ILogger <StopController> logger, ITravelRepository travelRepository) : base(hostingEnvironment, logger, travelRepository) => GeoLocationService = geoLocationService;
public CarPoolService() : base(UOW) { UserService = new UserService(); GeoLocationService = new GeoLocationService(); }
public LoadLocationUseCase(ILocationRepository locationRepository, IGeoLocationService geoLocationService) { _locationRepository = locationRepository; _geoLocationService = geoLocationService; }
public GeoLocationsController(IGeoLocationService geoLocationService, IMappingEngine mapping) { _geoLocationService = geoLocationService; _mapping = mapping; }
public PersonaService(IGeoLocationService geoLocationService, IDaoFactory daoFactory) { _geoLocationService = geoLocationService; _daoFactory = daoFactory; }
/// <summary> /// Initializes a new instance of the <see cref="UserTourController"/> class. /// </summary> /// <param name="userTourRepo">The user tour repo.</param> /// <param name="userPOIRepo">The user poi repo.</param> /// <param name="geoLocationService">The geo location service.</param> public UserTourController(IUserTourRepo userTourRepo, IUserPOIRepo userPOIRepo, IGeoLocationService geoLocationService) { _userTourRepo = userTourRepo; _userPOIRepo = userPOIRepo; _geoLocationService = geoLocationService; }
/// <summary> /// Constructor of the LanguagesController /// </summary> /// <param name="languageServices">To inject the languagesServices object</param> /// <param name="geoLocationServices">To inject the geoLocationServices object</param> public LanguagesController(ILanguagesService languageServices, IGeoLocationService geoLocationServices) { _languageServices = languageServices; _geoLocationServices = geoLocationServices; }
public GeolocationController(IGeoLocationService geoLocationService) { _geoLocationService = geoLocationService; }
public GetGeoLocation(IGeoLocationService geoLocationService) { this.GeoLocationService = geoLocationService; }