コード例 #1
0
        private async Task SetTote(PlaceBetStartMessage pars)
        {
            _user      = pars.UserId;
            _toteValue = await _getTote.GetAsync(pars.ToteId);

            var balance = await _balance.GetAsync(_cp.Period, _user, _toteValue.Currency, false);

            var balanceAmount = balance.Count > 0 ? balance[0].Amount : 0;
            await _slack.Dialog(pars.TriggerId, LongMessagesToUser.ToteDialog(_toteValue, balanceAmount));

            // await _response.ResponseWithBlocks(pars.ResponseUrl, LongMessagesToUser.ToteOptionsButtons(_toteValue, balanceAmount).ToList(), true);
        }
コード例 #2
0
ファイル: UserContexts.cs プロジェクト: kucheruk/gamemaster
        private void StartBetDialog(PlaceBetStartMessage msg)
        {
            var name  = $"bet_{msg.UserId}";
            var child = Context.Child(name);

            if (child.IsNobody())
            {
                child = Context.ActorOf(Context.DI().Props <UserToteContextActor>(), name);
            }

            child.Forward(msg);
        }