Ejemplo n.º 1
0
        public async Task <SystemData> GetSystemData(SystemItemData systemItem)
        {
            Log.Information("Getting information for {SystemName} system", systemItem.Attributes.Name);
            Log.Debug("Requesting information for system ID {SystemId}", systemItem.Id);

            var requestUrl = systemsUrl + systemItem.Id;

            var json = await getJsonData(requestUrl).ConfigureAwait(false);

            var system = Systems.FromJson(json);

            return(system.Data);
        }