예제 #1
0
        //Returns a dictionary with as key the json string and as value the count
        private static Dictionary <string, int> DownloadJSON(Dictionary <int, int> ids)
        {
            var result = new Dictionary <string, int>();

            foreach (var id in ids)
            {
                Console.Write($"Downloading data of card {id.Key}...   \r");
                result.Add(HTTPRequest.GET(cardDataURL + id.Key), id.Value);
                Thread.Sleep(200);
            }
            return(result);
        }