Added additional steamapp sections.

This commit is contained in:
mmuffins 2018-05-24 21:18:45 +02:00
parent 64475fcda0
commit ba7b79dfc4

View File

@ -22,7 +22,7 @@ namespace SteamStorefrontAPI.Classes
public int SteamAppid { get; set; } public int SteamAppid { get; set; }
[JsonProperty("required_age")] [JsonProperty("required_age")]
public string RequiredAge { get; set; } public int RequiredAge { get; set; }
[JsonProperty("is_free")] [JsonProperty("is_free")]
public bool IsFree { get; set; } public bool IsFree { get; set; }
@ -105,6 +105,16 @@ namespace SteamStorefrontAPI.Classes
[JsonProperty("background")] [JsonProperty("background")]
public string Background { get; set; } public string Background { get; set; }
[JsonProperty("controller_support", NullValueHandling = NullValueHandling.Ignore)]
[JsonConverter(typeof(ControllerSupportConverter))]
public ControllerSupport? ControllerSupport { get; set; }
[JsonProperty("dlc")]
public List<int> DLC { get; set; }
[JsonProperty("reviews")]
public List<string> Reviews { get; set; }
public static SteamApp FromJson(string json) { public static SteamApp FromJson(string json) {
var serializerSettings = new JsonSerializerSettings var serializerSettings = new JsonSerializerSettings