From 38cc775625a7560f2cd3384eb3ae68142983c9e0 Mon Sep 17 00:00:00 2001 From: nqztv Date: Thu, 27 Jul 2017 00:05:37 -0700 Subject: [PATCH] Change offending smash.gg API properties from bool to object According to Smashboards user Demandatwin, these are the offending properties. ThreeFold changed bool to object, while Demandatwin changed the bool to string. Might just need to change all bool properties if we're not using the JSON.NET package to deserialize. But since the smash.gg API will probably change again and break things, this is just a stopgap. --- SmashGGApiWrapper/Tournament.cs | 2 +- SmashGGApiWrapper/Videogame.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/SmashGGApiWrapper/Tournament.cs b/SmashGGApiWrapper/Tournament.cs index 5a31512..474b8b8 100644 --- a/SmashGGApiWrapper/Tournament.cs +++ b/SmashGGApiWrapper/Tournament.cs @@ -50,7 +50,7 @@ public class Tournament public string venueAddress { get; set; } public string region { get; set; } public string hashtag { get; set; } - public bool showCity { get; set; } + public object showCity { get; set; } public int attendeeLocationInfo { get; set; } public int attendeeContactInfo { get; set; } //public AttendeeFieldConfig attendeeFieldConfig { get; set; } diff --git a/SmashGGApiWrapper/Videogame.cs b/SmashGGApiWrapper/Videogame.cs index 2b77929..b7e8846 100644 --- a/SmashGGApiWrapper/Videogame.cs +++ b/SmashGGApiWrapper/Videogame.cs @@ -10,7 +10,7 @@ public class Videogame public string displayName { get; set; } public int minPerEntry { get; set; } public int maxPerEntry { get; set; } - public bool enabled { get; set; } + public object enabled { get; set; } public string slug { get; set; } public object isCardGame { get; set; } public object characterTerm { get; set; }