Rocket.Chat.Net.Driver.RocketChatDriver.GetStatisticsAsync C# (CSharp) Method

GetStatisticsAsync() public method

public GetStatisticsAsync ( bool refresh = false ) : Task>
refresh bool
return Task>
        public async Task<MethodResult<StatisticsResult>> GetStatisticsAsync(bool refresh = false)
        {
            _logger.Info("Requesting statistics.");
            var results = await _client.CallAsync("getStatistics", TimeoutToken).ConfigureAwait(false);

            return results.ToObject<MethodResult<StatisticsResult>>(JsonSerializer);
        }