void ITmdbObject.ProcessJson(JSONObject jsonObject) { Adult = jsonObject.GetSafeBoolean("adult"); Aliases = jsonObject.ProcessStringArray("also_known_as"); Biography = jsonObject.GetSafeString("biography"); Birthday = jsonObject.GetSafeDateTime("birthday"); Deathday = jsonObject.GetSafeDateTime("deathday"); //Bug Fix for homepage String homepage = jsonObject.GetSafeString("homepage"); if (homepage != null) { Homepage = new Uri(homepage); } Id = (int)jsonObject.GetSafeNumber("id"); Name = jsonObject.GetSafeString("name"); PlaceOfBirth = jsonObject.GetSafeString("place_of_birth"); ProfilePath = jsonObject.GetSafeString("profile_path"); _credits = jsonObject.ProcessObject <Credit>("credits"); }
void ITmdbObject.ProcessJson(JSONObject jsonObject) { Adult = jsonObject.GetSafeBoolean("adult"); Aliases = jsonObject.ProcessStringArray("also_known_as"); Biography = jsonObject.GetSafeString("biography"); Birthday = jsonObject.GetSafeDateTime("birthday"); Deathday = jsonObject.GetSafeDateTime("deathday"); Homepage = new Uri(jsonObject.GetSafeString("homepage")); Id = (int)jsonObject.GetSafeNumber("id"); Name = jsonObject.GetSafeString("name"); PlaceOfBirth = jsonObject.GetSafeString("place_of_birth"); ProfilePath = jsonObject.GetSafeString("profile_path"); _credits = jsonObject.ProcessObject<Credit>("credits"); }
void ITmdbObject.ProcessJson(JsonObject jsonObject) { Adult = jsonObject.GetSafeBoolean("adult"); Biography = jsonObject.GetSafeString("biography"); Birthday = jsonObject.GetSafeString("birthday"); Deathday = jsonObject.GetSafeString("deathday"); Homepage = jsonObject.GetSafeUri("homepage"); Id = (int)jsonObject.GetSafeNumber("id"); Name = jsonObject.GetSafeString("name"); PlaceOfBirth = jsonObject.GetSafeString("place_of_birth"); ProfilePath = jsonObject.GetSafeString("profile_path"); _credits = jsonObject.ProcessObject<Credit>("credits"); }
void ITmdbObject.ProcessJson(JsonObject jsonObject) { try { Name = jsonObject.GetSafeString("name"); Adult = jsonObject.GetSafeBoolean("adult"); Biography = jsonObject.GetSafeString("biography"); Birthday = jsonObject.GetSafeString("birthday"); Deathday = jsonObject.GetSafeString("deathday"); if (!string.IsNullOrEmpty(jsonObject.GetSafeString("homepage"))) { Homepage = new Uri(jsonObject.GetSafeString("homepage")); } Id = (int) jsonObject.GetSafeNumber("id"); PlaceOfBirth = jsonObject.GetSafeString("place_of_birth"); ProfilePath = jsonObject.GetSafeString("profile_path"); _credits = jsonObject.ProcessObject<Credit>("credits"); } catch (Exception ex) { } }