예제 #1
0
        public async Task GetAllCovidRawData()
        {
            var allCountiesRawData = new Dictionary <string, string>();

            foreach (var county in CountyList.Where(county => !allCountiesRawData.ContainsKey(county.CountyName)))
            {
                string countyRawData = await CovidDataService.GetCARawCovidJsonDataByCounty(county.CountyName);

                allCountiesRawData.Add(county.CountyName, countyRawData);
            }

            await DownloadZip(allCountiesRawData, "COVID_Data", "CAOpenData_COVID_All_Counties");
        }
예제 #2
0
        public async Task GetCasesRawDataPerCounty()
        {
            string rawData = await CovidDataService.GetCARawCovidJsonDataByCounty(SelectedCounty?.CountyName);

            await DownloadJsonFile(rawData, $"{SelectedCounty?.CountyName}_CAOpenData_COVID_{DateTime.Now:yyyy-MM-dd}.json");
        }