Credits for this person.
Inheritance: ITmdbObject
コード例 #1
0
ファイル: Person.cs プロジェクト: MichaelHoltz/RelationMapper
        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");
        }
コード例 #2
0
ファイル: Person.cs プロジェクト: Fishes/TMDbWrapper
 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");
 }
コード例 #3
0
ファイル: Person.cs プロジェクト: jonstodle/TMDbWrapper
 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");
 }
コード例 #4
0
ファイル: Person.cs プロジェクト: ThadT/TMDbWrapper
 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)
     {
     }
 }