示例#1
0
 void ITmdbObject.ProcessJson(JsonObject jsonObject)
 {
     BackdropPath = jsonObject.GetSafeString("backdrop_path");
     Id = (int)jsonObject.GetSafeNumber("id");
     Name = jsonObject.GetSafeString("name");
     PosterPath = jsonObject.GetSafeString("poster_path");
     Parts = jsonObject.ProcessArray<Part>("parts");         
 }
示例#2
0
        void ITmdbObject.ProcessJson(JsonObject jsonObject)
        {
            Adult = jsonObject.GetSafeBoolean("adult");
            BackdropPath = jsonObject.GetSafeString("backdrop_path");
            BelongsToCollection = jsonObject.ProcessObject<BelongsToCollection>("belongs_to_collection");
            Budget = (int)jsonObject.GetSafeNumber("budget");
            Genres = jsonObject.ProcessArray<Genre>("genres");            
            Homepage = jsonObject.GetSafeUri("homepage");
            Id = (int)jsonObject.GetSafeNumber("id");
            ImdbId = jsonObject.GetSafeString("imdb_id");
            OriginalTitle = jsonObject.GetSafeString("original_title");
            Overview = jsonObject.GetSafeString("overview");
            Popularity = (int)jsonObject.GetSafeNumber("popularity");
            PosterPath = jsonObject.GetSafeString("poster_path");
            ProductionCompanies = jsonObject.ProcessArray<ProductionCompany>("production_companies");
            ProductionCountries = jsonObject.ProcessArray<ProductionCountry>("production_countries");
            ReleaseDate = jsonObject.GetSafeString("release_date");
            Revenue = (int)jsonObject.GetSafeNumber("revenue");
            Runtime = (int)jsonObject.GetSafeNumber("runtime");
            SpokenLanguages = jsonObject.ProcessArray<SpokenLanguage>("spoken_languages");
            Status = jsonObject.GetSafeString("status");
            Tagline = jsonObject.GetSafeString("tagline");
            Title = jsonObject.GetSafeString("title");
            VoteAverage = jsonObject.GetSafeNumber("vote_average");
            VoteCount = (int)jsonObject.GetSafeNumber("vote_count");
            _credits = jsonObject.ProcessObject<Credits>("casts");

        }
示例#3
0
 void ITmdbObject.ProcessJson(JsonObject jsonObject)
 {
     Crew = jsonObject.ProcessArray<Crew>("crew");
     Cast = jsonObject.ProcessArray<Role>("cast");
 }
示例#4
0
 void ITmdbObject.ProcessJson(JsonObject jsonObject)
 {
     Id = (int)jsonObject.GetSafeNumber("id");
     QuickTime = jsonObject.ProcessArray<Trailer>("quicktime");
     Youtube = jsonObject.ProcessArray<Trailer>("youtube");
 }
示例#5
0
 void ITmdbObject.ProcessJson(JsonObject jsonObject)
 {
     Id = (int)jsonObject.GetSafeNumber("id");
     Backdrops = jsonObject.ProcessArray<Backdrop>("backdrops");
     Posters = jsonObject.ProcessArray<Poster>("posters");
 }