示例#1
0
        public async Task AcceptDraw(RequestAcceptDraw request)
        {
            if (!request.Accept)
            {
                return;
            }
            BaseResponse <BaseResult> check = await CheckGamePlayRequest(request);

            if (!check.OK)
            {
                return;
            }
            Board board = GetBoard(request.BoardId);

            await Draw(board, "Hai bên đồng ý HÒA");

            return;
        }
示例#2
0
 public async Task RequestAcceptDraw(RequestAcceptDraw request)
 {
     request.ConnectionId = Context.ConnectionId;
     await _service.AcceptDraw(request);
 }