예제 #1
0
 public MovieTestBase(MovieFixture fixture)
 {
     scope = fixture.RootServiceProvider.CreateScope();
     FilmingLocationService = scope.ServiceProvider.GetRequiredService <IFilmingLocationService>();
     MovieService           = scope.ServiceProvider.GetRequiredService <IMovieService>();
     GeocodingService       = scope.ServiceProvider.GetRequiredService <IGeocodingService>();
 }
예제 #2
0
 public FileService(IGeocodingService geocodingService, IMovieService movieService, IUploadHistoryStore historyStore, IBackgroundJobClient backgroundJobClient)
 {
     this.geocodingService    = geocodingService;
     this.movieService        = movieService;
     this.historyStore        = historyStore;
     this.backgroundJobClient = backgroundJobClient;
 }
예제 #3
0
        public MainViewModel(IMscsService mscsService, ISerializationService serializationService,
                             IPhotoService photoService, IMessageBoxService messageBoxService,
                             ITextToSpeechService textToSpeechService, ILocationService locationService,
                             IGeocodingService geocodingService, ISpeechToTextService speechToTextService,
                             IPublicTransportServices publicTransportServices,
                             ITranslationService translationService,
                             IMvxAndroidCurrentTopActivity activity)
        {
            this._mscsService             = mscsService;
            this._photoService            = photoService;
            this._messageBoxService       = messageBoxService;
            this._textToSpeechService     = textToSpeechService;
            this._locationService         = locationService;
            this._geocodingService        = geocodingService;
            this._speechToTextService     = speechToTextService;
            this._publicTransportServices = publicTransportServices;
            this._translationService      = translationService;

            this._checkNetwork  = new CheckInternetConnection();
            this._checkLocation = new CheckLocationAvailability();

            this._speechToTextService.MessageChanged += HandleMessageChanged;
            this._photoService.PhotoChanged          += HandlePhotoChanged;

            _textToSpeechService.Speak(
                "Witaj w aplikacji blind. Tapnij na ekran i powiedz komende dla danej funkcji. Aby uzyskaæ informacjê o dostêpnych funkcjach tapnij w ekran i powiedz menu");

            CheckSettingsAfterStart();
        }
 public LocationService(
     IMvxLog logger,
     IGeolocationService geolocation,
     IGeocodingService geocoding)
 {
     this.logger      = logger;
     this.geolocation = geolocation;
     this.geocoding   = geocoding;
 }
예제 #5
0
        public SettingsViewModel(IGeocodingService geocodingService)
        {
            this.geocodingService = geocodingService;
            var location = configEditor.GetLoaction();

            if (location != null)
            {
                IsCheckBoxChecked = true;
            }
        }
 public ModificarEscritorioCommandHandler(
     AutenticadorContext context,
     IMediator mediator,
     IHashService hashService,
     IGeocodingService geocodingService)
 {
     _context          = context;
     _mediator         = mediator;
     _hashService      = hashService;
     _geocodingService = geocodingService;
 }
 public CriarUsuarioInicialCommandHandler(
     AutenticadorContext context,
     PerfilOabContext oabContext,
     IMediator mediator,
     IHashService hashService,
     IGeocodingService geocodingService)
 {
     _context          = context;
     _oabContext       = oabContext;
     _mediator         = mediator;
     _hashService      = hashService;
     _geocodingService = geocodingService;
 }
 public OpportunityModel(
     IConfiguration config,
     IOpportunityDataAccess opportunityDataAccess,
     IEmailService emailService,
     IGeocodingService geolocationService,
     ILogoStorage logoStorage
     )
 {
     GoogleMapsApiKey      = config["GoogleMapsApiKey"];
     OpportunityDataAccess = opportunityDataAccess;
     EmailService          = emailService;
     GeolocationService    = geolocationService;
     LogoStorage           = logoStorage;
 }
        public async Task <Escritorio> AsOffice(IGeocodingService geocodingService)
        {
            var enderecoCompleto = $"{Endereco.Rua}, {Endereco.Numero} - {Endereco.Cidade} - {Endereco.Estado}";

            var(lat, lon) = await geocodingService.ObterCoordenadas(enderecoCompleto);

            return(new Escritorio(
                       new InformacoesDoEscritorio(NomeFantasia, RazaoSocial, CNPJ),
                       new Domain.Model.Entities.Endereco(
                           Endereco.CEP,
                           Endereco.Rua,
                           Endereco.Numero,
                           Endereco.Complemento,
                           Endereco.Bairro,
                           Endereco.Cidade,
                           Endereco.Estado,
                           lat,
                           lon
                           )
                       ));
        }
예제 #10
0
 public ChooseLocationService(
     IGeocodingService geocodingService,
     IGeolocationService geolocationService,
     IPreferencesService preferencesService,
     ISessionService sessionService,
     ILoggingService loggingService,
     IDialogService dialogService,
     IConnectivityService connectivityService,
     ITaskHelper taskHelper,
     IRefitService refitService,
     ITaskHelperFactory taskHelperFactory)
 {
     this.geocodingService    = geocodingService;
     this.geolocationService  = geolocationService;
     this.preferencesService  = preferencesService;
     this.sessionService      = sessionService;
     this.loggingService      = loggingService;
     this.dialogService       = dialogService;
     this.connectivityService = connectivityService;
     this.taskHelper          = taskHelper;
     this.refitService        = refitService;
     this.taskHelperFactory   = taskHelperFactory;
 }
 public GeocodingProvider(
     IGeocodingService geocodingService)
 {
     _geocodingService = geocodingService;
 }
 public Covid19Controller(ICountyService countyService, IGeocodingService geocodingService)
 {
     _countyService    = countyService;
     _geocodingService = geocodingService;
 }
        public EditMatchFormViewModel(IRegionManager regionManager, IRefereeService refereeService, IInteractionService interactionService, IGeocodingService geocodingService)
        {
            CalculateRouteCommand = new MyDelegateCommand(CalculateRoute);

            this.regionManager      = regionManager;
            this.refereeService     = refereeService;
            this.interactionService = interactionService;
            this.geocodingService   = geocodingService;

            AddGoalCommand = new DelegateCommand(() =>
            {
                var teamId = Match.HomeTeamPlayers.Contains(SelectedPlayer) ? (SelectedType == GoalType.Own ? Match.AwayTeamId : Match.HomeTeamId) :
                             (SelectedType == GoalType.Own ? Match.HomeTeamId : Match.AwayTeamId);
                var goal = new GoalDTO()
                {
                    Scorer   = SelectedPlayer,
                    GoalType = SelectedType,
                    TeamId   = teamId,
                    Time     = Time
                };
                if (teamId == Match.HomeTeamId)
                {
                    HomeGoals.Add(goal);
                    var ordered = this.HomeGoals.OrderBy(x => x.Time).ToList();
                    this.HomeGoals.Clear();
                    this.HomeGoals.AddRange(ordered);
                    Match.HomeTeamScore = (Match.HomeTeamScore ?? 0) + 1;
                }
                else
                {
                    AwayGoals.Add(goal);
                    var ordered = this.AwayGoals.OrderBy(x => x.Time).ToList();
                    this.AwayGoals.Clear();
                    this.AwayGoals.AddRange(ordered);
                    Match.AwayTeamScore = (Match.AwayTeamScore ?? 0) + 1;
                }
                this.interactionService.ShowMessageBox("Success", "Goal was added successfully");
            });

            RemoveGoalCommand = new DelegateCommand <GoalDTO>((goal) =>
            {
                if (HomeGoals.Contains(goal))
                {
                    HomeGoals.Remove(goal);
                    Match.HomeTeamScore--;
                }
                else
                {
                    AwayGoals.Remove(goal);
                    Match.AwayTeamScore--;
                }
            });

            OkCommand = new DelegateCommand(async() =>
            {
                if (IsEditing)
                {
                    IsEnabled           = true;
                    Match.HomeTeamGoals = HomeGoals.ToArray();
                    Match.AwayTeamGoals = AwayGoals.ToArray();
                    if (Match.HomeTeamScore == null)
                    {
                        Match.HomeTeamScore = 0;
                    }
                    if (Match.AwayTeamScore == null)
                    {
                        Match.AwayTeamScore = 0;
                    }
                    await this.refereeService.SaveGoalsAsync(Match);
                    IsEnabled = false;
                }
                GlobalCommands.GoBackCommand.Execute(null);
            });
        }
 public CombinedAPIService(IMUAPService muapService, IGeocodingService geocodingService)
 {
     _muapService      = muapService;
     _geocodingService = geocodingService;
 }
 public ValidationFilterAttribute(ICountyService countyService, IGeocodingService geocodingService)
 {
     _countyService    = countyService;
     _geocodingService = geocodingService;
 }
예제 #16
0
 public UpdateProfileCommandHandler(IUnitOfWork unitOfWork, ILogger <UpdateProfileCommandHandler> logger, IGeocodingService geocodingService)
     : base(unitOfWork, logger) => _geocodingService = geocodingService;
예제 #17
0
 public FilmingLocationService(IGeocodingService geocodingService, ISearchService searchService, IFilmingLocationStore store)
 {
     this.geocodingService = geocodingService;
     this.searchService    = searchService;
     this.locationStore    = store;
 }
예제 #18
0
 public SaveStatsCommand(IStatService statService, IGeocodingService geocodingService)
 {
     _statService      = statService;
     _geocodingService = geocodingService;
 }
예제 #19
0
 public UrlService(IGeocodingService geocoder)
 {
     _geocoder = geocoder;
 }
예제 #20
0
 public MapViewModel(ILogService logService, ISessionService sessionService, ISession session, IGeocodingService geocodingService) : base(logService, sessionService)
 {
     _session          = session;
     _geocodingService = geocodingService;
 }
 public ContractorsController(ApplicationDbContext context, IGeocodingService geocodingService)
 {
     _context          = context;
     _geocodingService = geocodingService;
 }
예제 #22
0
 public GetGeoCommand(IGeocodingService geocodingService)
 {
     _geocodingService = geocodingService;
 }
예제 #23
0
 public ParseLocation(IGeocodingService geocodingService, ICoordinatesMapper coordinatesMapper)
 {
     _geocodingService  = geocodingService;
     _coordinatesMapper = coordinatesMapper;
 }
예제 #24
0
 public ApiProxyController(IEstablishmentService establishmentService, IGeocodingService geocodingService)
 {
     _establishmentService = establishmentService;
     _geocodingService     = geocodingService;
 }
예제 #25
0
 public GeocodingTestBase(GeocodingFixture fixture)
 {
     scope            = fixture.RootServiceProvider.CreateScope();
     GeocodingService = scope.ServiceProvider.GetRequiredService <IGeocodingService>();
 }
 public GeocodingController(IGeocodingService geocodingService)
 {
     GeocodingService = geocodingService;
 }