Exemplo n.º 1
0
        private async void DiscordServiceServerOnCoinFlipJoin(object sender, CoinFlipJoinRequest request)
        {
            var @event = Event.CoinFlipJoin;
            var msg    = $"{request.Request.UserId} JOINED COINFLIP, Value: {request.Request.Value}: {request.Request.CoinFlipId}";

            await SendMessageToUserSubscribed(@event, msg);
        }
 public Task <EmptyResponse> CoinFlipCreateJoin(CoinFlipJoinRequest request)
 {
     return(SendGrpcAction(async() => await _discordService.CoinFlipJoinAsync(request, DefaultSettings.GetDefaultSettings(2)), false));
 }
Exemplo n.º 3
0
 public override Task <EmptyResponse> CoinFlipJoin(CoinFlipJoinRequest request, ServerCallContext context)
 {
     OnCoinFlipJoin?.Invoke(this, request);
     return(Task.FromResult(new EmptyResponse()));
 }