Implemented RequirementsConverter.

This commit is contained in:
mmuffins 2018-05-24 21:12:42 +02:00
parent 884027869b
commit 64475fcda0
2 changed files with 10 additions and 13 deletions

View File

@ -125,11 +125,7 @@ namespace SteamStorefrontAPI.Classes
public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer)
{
if(reader.TokenType != JsonToken.StartObject) return null;
var value = serializer.Deserialize<Requirements>(reader);
//TODO: Fix the requirements converter
return null;
return serializer.Deserialize<Requirements>(reader);
}
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)

View File

@ -19,15 +19,16 @@ namespace SteamStorefrontConsole
static async Task GetGame()
{
//var steamApp1 = await AppDetails.GetAsync(637670);
//var steamApp2 = await AppDetails.GetAsync(443790);
//var steamApp3 = await AppDetails.GetAsync(460810, "JP");
//var steamApp4 = await AppDetails.GetAsync(322330);
var steamApp1 = await AppDetails.GetAsync(637670);
var steamApp2 = await AppDetails.GetAsync(443790);
var steamApp3 = await AppDetails.GetAsync(460810, "JP");
var steamApp4 = await AppDetails.GetAsync(322330);
var steamApp5 = await AppDetails.GetAsync(241930);
var package1 = await PackageDetails.GetAsync(68179);
var package2 = await PackageDetails.GetAsync(68179, "JP");
var package3 = await PackageDetails.GetAsync(235158);
var package4 = await PackageDetails.GetAsync(235158, "US");
//var package1 = await PackageDetails.GetAsync(68179);
//var package2 = await PackageDetails.GetAsync(68179, "JP");
//var package3 = await PackageDetails.GetAsync(235158);
//var package4 = await PackageDetails.GetAsync(235158, "US");
//var featured = await Featured.GetAsync();
//var featuredCategories = await FeaturedCategories.GetAsync();