private static ComparedUser ParseComparedUser(JObject o) { var comparedUser = new ComparedUser() { OnlineId = (String)o["onlineId"], Earned = (Boolean)o["earned"], EarnedDate = o["earnedDate"] != null ? (string)o["earnedDate"] : string.Empty }; return(comparedUser); }
private static ComparedUser ParseComparedUser(JObject o) { var comparedUser = new ComparedUser() { OnlineId = (String)o["onlineId"], Progress = (int)o["progress"], LastUpdateDate = o["lastUpdateDate"] != null ? (string)o["lastUpdateDate"] : string.Empty, EarnedTrophies = (JObject)o["earnedTrophies"] != null?ParseEarnedTrophies((JObject)o["earnedTrophies"]) : null }; return(comparedUser); }