コード例 #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);
        }
コード例 #2
0
 public Task <EmptyResponse> CoinFlipCreateJoin(CoinFlipJoinRequest request)
 {
     return(SendGrpcAction(async() => await _discordService.CoinFlipJoinAsync(request, DefaultSettings.GetDefaultSettings(2)), false));
 }
コード例 #3
0
 public override Task <EmptyResponse> CoinFlipJoin(CoinFlipJoinRequest request, ServerCallContext context)
 {
     OnCoinFlipJoin?.Invoke(this, request);
     return(Task.FromResult(new EmptyResponse()));
 }