public GameControllerViewModel(IDeviceService deviceService, ILightService lightService, IButtonMapperStrategy buttonMapperStrategy, IMessenger messenger, IConfigurationService configurationService) { this._deviceService = deviceService; this._lightService = lightService; this._buttonMapperStrategy = buttonMapperStrategy; this._messenger = messenger; this._configurationService = configurationService; _messenger.Register <ButtonChangedMessage>(this, this.HandleButtonMessage); InitCommands(); Configuration = configurationService.ReadConfiguration(); InitGameControllerList(null); }
public DeviceService(IDeviceRepository deviceRepo, IButtonMapperStrategy buttonMapperStrategy, ILightService lightService) { this._deviceRepo = deviceRepo; this._buttonMapperStrategy = buttonMapperStrategy; this._lightService = lightService; }