From 6f2eef87927e9a483f2a320c54bfdbc6c319c5d6 Mon Sep 17 00:00:00 2001 From: mmuffins Date: Tue, 22 May 2018 22:57:32 +0200 Subject: [PATCH] Fixed typo. --- SteamStorefrontAPI/appdetails/Classes/SteamApp.cs | 4 ++-- SteamStorefrontConsole/Program.cs | 5 +---- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/SteamStorefrontAPI/appdetails/Classes/SteamApp.cs b/SteamStorefrontAPI/appdetails/Classes/SteamApp.cs index 25536bb..c71ccdf 100644 --- a/SteamStorefrontAPI/appdetails/Classes/SteamApp.cs +++ b/SteamStorefrontAPI/appdetails/Classes/SteamApp.cs @@ -49,10 +49,10 @@ namespace SteamStorefrontAPI.Classes public PcRequirements PcRequirements { get; set; } [JsonProperty("mac_requirements")] - public List MacRequirements { get; set; } + public List MacRequirements { get; set; } [JsonProperty("linux_requirements")] - public List LinuxRequirements { get; set; } + public List LinuxRequirements { get; set; } [JsonProperty("legal_notice")] public string LegalNotice { get; set; } diff --git a/SteamStorefrontConsole/Program.cs b/SteamStorefrontConsole/Program.cs index b45b5ea..fd0f2e8 100644 --- a/SteamStorefrontConsole/Program.cs +++ b/SteamStorefrontConsole/Program.cs @@ -3,7 +3,6 @@ using SteamStorefrontAPI.Classes; using System; using System.Collections.Generic; using System.Linq; -using System.Net.Http; using System.Text; using System.Threading.Tasks; @@ -12,8 +11,6 @@ namespace SteamStorefrontConsole { class Program { - static HttpClient client = new HttpClient(); - static void Main(string[] args) { Task.Run(async () => await GetGame()).Wait(); @@ -24,7 +21,7 @@ namespace SteamStorefrontConsole { //var steamApp = Task.Run(async () => await AppDetails.GetAsync(637670)).Result; //var steamApp = Task.Run(async () => await AppDetails.GetAsync(443790)).Result; - var steamApp = Task.Run(async () => await AppDetails.GetAsync(213670)).Result; + var steamApp = await AppDetails.GetAsync(213670); Console.WriteLine(steamApp); }