Esempio n. 1
0
        public override async void Execute(object?parameter)
        {
            if (_playerView.Wager == null)
            {
                return;
            }

            _hasWagered = true;
            _playerView.IsQuestionVisible = !_playerView.IsFinalJeopardy;
            await _server.SubmitWager(_playerView.Settings.Guid, (int)Math.Min(_playerView.Wager.Value, _playerView.MaximumWager));

            NotifyExecutabilityChanged();
        }
Esempio n. 2
0
 public async Task <bool> SubmitWager(Guid settingsGuid, int playerViewWager)
 {
     _logger.Trace();
     return(await(_messageHubImplementation?.SubmitWager(settingsGuid, playerViewWager) ?? Task.FromResult(false)));
 }