コード例 #1
0
 public SensorsController(SmartPlayerContext smartPlayerContext,
                          IAccelerometerAndGyroscopeRepository accelerometerAndGyroscopeRepository,
                          IGPSLocationRepository gpsLocationRepository,
                          IPlayerInGameRepository playerInGameRepository,
                          IModuleRepository moduleRepository,
                          IMapper mapper,
                          IPitchRepository pitchRepository,
                          IGameRepository gameRepository)
 {
     _smartPlayerContext = smartPlayerContext;
     _accelerometerAndGyroscopeRepository = accelerometerAndGyroscopeRepository;
     GPSLocationRepository   = gpsLocationRepository;
     _playerInGameRepository = playerInGameRepository;
     _moduleRepository       = moduleRepository;
     _mapper          = mapper;
     _pitchRepository = pitchRepository;
     _gameRepository  = gameRepository;
     _gpsService      = new GPSService();
 }
コード例 #2
0
 public PlayerInGameRepository(SmartPlayerContext smartPlayerContext) : base(smartPlayerContext)
 {
 }
コード例 #3
0
 public GPSLocationRepository(SmartPlayerContext smartPlayerContext) : base(smartPlayerContext)
 {
 }
コード例 #4
0
 public AccelerometerAndGyroscopeRepository(SmartPlayerContext smartPlayerContext) : base(smartPlayerContext)
 {
 }
コード例 #5
0
 public GameController(IGameRepository gameRepository, SmartPlayerContext smartPlayerContext)
 {
     _smartPlayerContext = smartPlayerContext;
     _gameRepository     = gameRepository;
 }
コード例 #6
0
 public ModuleRepository(SmartPlayerContext smartPlayerContext) : base(smartPlayerContext)
 {
 }
コード例 #7
0
 public MainController(SmartPlayerContext smartPlayerContext)
 {
     _smartPlayerContext = smartPlayerContext;
 }
コード例 #8
0
 public PitchRepository(SmartPlayerContext smartPlayerContext) : base(smartPlayerContext)
 {
 }
コード例 #9
0
 public PlayerController(SmartPlayerContext smartPlayerContext, IPlayerInGameRepository playerInGameRepository)
 {
     _smartPlayerContext     = smartPlayerContext;
     _playerInGameRepository = playerInGameRepository;
 }
コード例 #10
0
 public BaseRepository(SmartPlayerContext smartPlayerContext)
 {
     _smartPlayerContext = smartPlayerContext;
     _dbSet = _smartPlayerContext.Set <TAggregate>();
 }