Exemplo n.º 1
0
        static async Task MainAsync(string[] args)
        {
            client.BaseAddress = new Uri("https://api.warframe.market/v1/items");
            HttpResponseMessage httpResponse = client.GetAsync(client.BaseAddress).GetAwaiter().GetResult();
            string    jsonString             = httpResponse.Content.ReadAsStringAsync().GetAwaiter().GetResult();
            BaseItems baseItems = BaseItems.FromJson(jsonString);



            baseItems.Payload.Items.En.OrderBy(e => e.ItemName);
            Console.Title = baseItems.Payload.Items.En.Where(c => c.UrlName.Contains("prime")).ToList().Count + "Items";

            Dictionary <String, List <Order> > f**k = await TestMethod(baseItems.Payload.Items.En.Where(c => c.UrlName.Contains("prime")));


            Console.ReadLine();
        }