Ejemplo n.º 1
0
        public override async Task <MatchResponse> GetGlobalHistory(GetGlobalHistoryRequest request, ServerCallContext context)
        {
            var res = await _mongoDbService.GetGlobalHistory(request);

            var matchHistory = RemapMatchHistories(res);

            return(new MatchResponse
            {
                Data = { matchHistory },
                Pagaination = new PaginationResponse
                {
                    Offset = res.CurrentIndex,
                    Total = (int)res.Total,
                }
            });
        }