Пример #1
0
 public MemberController(IUserProfileService userProfileService, IVUserProfileService vUserProfileService, IDirectionService directionService, IMapper mapper)
 {
     _userProfileService  = userProfileService ?? throw new ArgumentNullException(nameof(userProfileService));
     _vUserProfileService = vUserProfileService ?? throw new ArgumentNullException(nameof(vUserProfileService));
     _directionService    = directionService ?? throw new ArgumentNullException(nameof(directionService));
     _mapper = mapper;
 }
Пример #2
0
 public UserProfileController(IUserProfileService userProfileService,
                              IVUserProfileService vUserProfileService,
                              IDirectionService directionService)
 {
     _userProfileService  = userProfileService;
     _vUserProfileService = vUserProfileService;
     _directionService    = directionService;
 }
Пример #3
0
 public MapController(IPollutionRepository pollutionRepo, ISchoolRepository schoolRepo,
                      IJourneyRepository journeyRepo, IIntersectionService interactionService,
                      IDirectionService directionService)
 {
     _pollutionRepo      = pollutionRepo;
     _schoolRepo         = schoolRepo;
     _journeyRepo        = journeyRepo;
     _interactionService = interactionService;
     _directionService   = directionService;
 }
Пример #4
0
		public UserProfileController(
			IUserProfileService userProfileService,
			IvUserProfileService vUserProfileService,
			IDirectionService directionService,
			IMapper mapper)
		{
			_userProfileService = userProfileService;
			_vUserProfileService = vUserProfileService;
			_directionService = directionService;
			_mapper = mapper;
		}
Пример #5
0
 public DirectionsController(IDirectionService directionsService,
                             IDirectionsCache directionsCache, ILogger <DirectionsController> logger,
                             IUserRouteTracer userRouteTracer,
                             ISubscriptionService subscriptionService)
 {
     this.directionsService = directionsService;
     this.directionsCache   = directionsCache;
     _logger              = logger;
     _userRouteTracer     = userRouteTracer;
     _subscriptionService = subscriptionService;
 }
 public ApplicationAddressService(
     ITransactionService transactionService,
     IMappingService mappingService,
     IAddressService domainAddressService,
     IDirectionService directionService,
     IGeocoderService geocoderService)
     : base(transactionService)
 {
     MappingService       = mappingService;
     DomainAddressService = domainAddressService;
     DirectionService     = directionService;
     GeocoderService      = geocoderService;
 }
 public ApplicationRouteService(
     ITransactionService transactionService,
     IDirectionService directionService,
     IRouteService domainRouteService,
     IRouteLegService domainRouteLegService,
     IApplicationAddressService addressService)
     : base(transactionService)
 {
     DirectionService      = directionService;
     DomainRouteService    = domainRouteService;
     DomainRouteLegService = domainRouteLegService;
     AddressService        = addressService;
 }
Пример #8
0
        public CommandInvoker(IPlateauService plateauService, IRoverService roverService, ILogger <CommandInvoker> logger, IDirectionService directionService)
        {
            _plateauService   = plateauService;
            _roverService     = roverService;
            _logger           = logger;
            _directionService = directionService;

            _commandTypeDictionary = new Dictionary <string, CommandType>
            {
                { @"^\d+ \d+$", CommandType.CreatePlateauCommand },
                { @"^\d+ \d+ [NSEW]$", CommandType.CreateMarsRoverCommand },
                { @"^[LMR]+$", CommandType.MoveRoverCommand }
            };
        }
Пример #9
0
        public MinionViewModel(INavigationService navigationService,
                               IDirectionService service,
                               ILocationManager locationManager)
        {
            _locationManager = locationManager;

            this.service = service;

            this.service.OnCompassDirectionReceived()
            .Subscribe((heading) =>
            {
                this.Heading = heading.Value;
            });
        }
Пример #10
0
        public MasterViewModel(INavigationService navigationService, IDirectionService service)
        {
            this.service = service;

            this.service.OnGpsReceived()
            .Subscribe((position) =>
            {
                Device.BeginInvokeOnMainThread(() =>
                {
                    Locations.Clear();
                    Locations.Add(new Location()
                    {
                        Position = new Xamarin.Forms.Maps.Position(position.Latitude, position.Longitude)
                    });
                });
            });
        }
Пример #11
0
        public HuntingViewModel(Guid scavengerId)
        {
            _isHunting        = false;
            _movementService  = DependencyService.Get <IMovementService>();
            _directionService = DependencyService.Get <IDirectionService>();
            _scavengerService = DependencyService.Get <IScavengerService>();
            _soundService     = DependencyService.Get <ISoundService>();
            _scavengerClient  = DependencyService.Get <IScavengerClient>();

            _directionService.OnDirectionChanged    += _directionService_OnDirectionChanged;
            _movementService.CurrentPositionChanged += _movementService_CurrentPointChanged;
            _scavengerClient.OnEggFound             += Client_OnEggFound;
            _scavengerId = scavengerId;

            _scavengerService.OnConnected    += ScavengerService_OnConnected;
            _scavengerService.OnDisconnected += ScavengerService_OnDisconnected;
            //var locationService = DependencyService.Get<ILocationService>();
            //locationService.LocationChanged += _locationService_LocationChanged;
        }
Пример #12
0
 public LeftCommand(IRoverService marsRoverService, IDirectionService directionManagerStrategy)
 {
     _roverService     = marsRoverService;
     _directionService = directionManagerStrategy;
 }
Пример #13
0
 public DirectionTest()
 {
     _directionService = ServiceProvider.GetRequiredService <IDirectionService>();
 }
Пример #14
0
 public RouteService(IDirectionService directionService, IMapper mapper)
 {
     _directionService = directionService;
     _mapper           = mapper;
 }
 public DirectionsController()
 {
     _directionService = new DirectionService(db);
 }
Пример #16
0
 public DirectionController(IDirectionService directionService)
 {
     _directionService = directionService;
 }
Пример #17
0
 public DirectionController(IDirectionService service)
 {
     _service = service;
 }