fix up some deserialization problems

This commit is contained in:
Tommy Parnell
2015-05-02 22:02:19 -04:00
parent 59cea319ef
commit 17e6997119
3 changed files with 5 additions and 2 deletions

View File

@@ -331,7 +331,7 @@ namespace Untappd.Net.Responses.Feeds.ActivityFeed
[JsonProperty("count")]
public int Count { get; set; }
[JsonProperty("auth_toast")]
[JsonProperty("auth_toast", NullValueHandling = NullValueHandling.Ignore)]
public bool AuthToast { get; set; }
[JsonProperty("items")]
@@ -516,6 +516,7 @@ namespace Untappd.Net.Responses.Feeds.ActivityFeed
public Meta Meta { get; set; }
[JsonProperty("notifications")]
[JsonConverter(typeof(SingleObjectArrayConverter<Notifications>))]
public Notifications Notifications { get; set; }
[JsonProperty("response")]

View File

@@ -348,7 +348,7 @@ namespace Untappd.Net.Responses.Feeds.UserActivityFeed
[JsonProperty("count")]
public int Count { get; set; }
[JsonProperty("auth_toast")]
[JsonProperty("auth_toast", NullValueHandling = NullValueHandling.Ignore)]
public bool AuthToast { get; set; }
[JsonProperty("items")]
@@ -483,6 +483,7 @@ namespace Untappd.Net.Responses.Feeds.UserActivityFeed
public Meta Meta { get; set; }
[JsonProperty("notifications")]
[JsonConverter(typeof(SingleObjectArrayConverter<Notifications>))]
public Notifications Notifications { get; set; }
[JsonProperty("response")]

View File

@@ -872,6 +872,7 @@ namespace Untappd.Net.Responses.UserInfo
public Meta Meta { get; set; }
[JsonProperty("notifications")]
[JsonConverter(typeof(SingleObjectArrayConverter<Notifications>))]
public Notifications Notifications { get; set; }
[JsonProperty("response")]