当前位置: 首页>>代码示例>>C#>>正文


C# JSONObject.ProcessObjectArray方法代码示例

本文整理汇总了C#中JSONObject.ProcessObjectArray方法的典型用法代码示例。如果您正苦于以下问题:C# JSONObject.ProcessObjectArray方法的具体用法?C# JSONObject.ProcessObjectArray怎么用?C# JSONObject.ProcessObjectArray使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在JSONObject的用法示例。


在下文中一共展示了JSONObject.ProcessObjectArray方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1:

 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.ProcessObjectArray<Part>("parts");         
 }
开发者ID:Fishes,项目名称:TMDbWrapper,代码行数:8,代码来源:Collection.cs

示例2:

 void ITmdbObject.ProcessJson(JSONObject jsonObject)
 {
     AirDate = jsonObject.GetSafeDateTime("air_date");
     EpisodeSummaries = jsonObject.ProcessObjectArray<Episode>("episodes");
     Name = jsonObject.GetSafeString("name");
     Overview = jsonObject.GetSafeString("overview");
     Id = (int)jsonObject.GetSafeNumber("id");
     PosterPath = jsonObject.GetSafeString("poster_path");
     SeasonNumber = (int)jsonObject.GetSafeNumber("season_number");
 }
开发者ID:Fishes,项目名称:TMDbWrapper,代码行数:10,代码来源:Season.cs

示例3:

        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.ProcessObjectArray<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.ProcessObjectArray<ProductionCompany>("production_companies");
            ProductionCountries = jsonObject.ProcessObjectArray<ProductionCountry>("production_countries");
            ReleaseDate = jsonObject.GetSafeDateTime("release_date");
            Revenue = (int)jsonObject.GetSafeNumber("revenue");
            Runtime = (int)jsonObject.GetSafeNumber("runtime");
            SpokenLanguages = jsonObject.ProcessObjectArray<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");

        }
开发者ID:Fishes,项目名称:TMDbWrapper,代码行数:28,代码来源:Movie.cs

示例4:

 void ITmdbObject.ProcessJson(JSONObject jsonObject)
 {
     Id = (int)jsonObject.GetSafeNumber("id");
     Backdrops = jsonObject.ProcessObjectArray<Backdrop>("backdrops");
     Posters = jsonObject.ProcessObjectArray<Poster>("posters");
 }
开发者ID:Fishes,项目名称:TMDbWrapper,代码行数:6,代码来源:Images.cs

示例5:

 void ITmdbObject.ProcessJson(JSONObject jsonObject)
 {
     Id = (int)jsonObject.GetSafeNumber("id");
     Cast = jsonObject.ProcessObjectArray<CastPerson>("cast");
     Crew = jsonObject.ProcessObjectArray<CrewPerson>("crew");
 }
开发者ID:Fishes,项目名称:TMDbWrapper,代码行数:6,代码来源:Credits.cs

示例6:

 void ITmdbObject.ProcessJson(JSONObject jsonObject)
 {
     Id = (int)jsonObject.GetSafeNumber("id");
     QuickTime = jsonObject.ProcessObjectArray<Trailer>("quicktime");
     Youtube = jsonObject.ProcessObjectArray<Trailer>("youtube");
 }
开发者ID:Fishes,项目名称:TMDbWrapper,代码行数:6,代码来源:Trailers.cs

示例7:

 void ITmdbObject.ProcessJson(JSONObject jsonObject)
 {
     AirDate = jsonObject.GetSafeDateTime("air_date");
     Crew = jsonObject.ProcessObjectArray<CrewPerson>("crew");
     EpisodeNumber = (int)jsonObject.GetSafeNumber("episode_number");
     GuestStars = jsonObject.ProcessObjectArray<CastPerson>("guest_stars");
     Name = jsonObject.GetSafeString("name");
     Overview = jsonObject.GetSafeString("overview");
     Id = (int)jsonObject.GetSafeNumber("id");
     ProductionCode = jsonObject.GetSafeString("production_code");
     SeasonNumber = (int)jsonObject.GetSafeNumber("season_number");
     StillPath = jsonObject.GetSafeString("still_path");
     VoteAverage = jsonObject.GetSafeNumber("vote_average");
     VoteCount = (int)jsonObject.GetSafeNumber("vote_count");
 }
开发者ID:Fishes,项目名称:TMDbWrapper,代码行数:15,代码来源:EpisodeSummary.cs

示例8:

 void ITmdbObject.ProcessJson(JSONObject jsonObject)
 {
     BackdropPath = jsonObject.GetSafeString("backdrop_path");
     CreatedBy = jsonObject.ProcessObjectArray<Creator>("created_by");
     EpisodeRuntime = jsonObject.ProcessIntArray("episode_run_time");
     FirstAirDate = jsonObject.GetSafeDateTime("first_air_date");
     Genres = jsonObject.ProcessObjectArray<Genre>("genres");
     Homepage = jsonObject.GetSafeUri("homepage");
     Id = (int)jsonObject.GetSafeNumber("id");
     InProduction = jsonObject.GetSafeBoolean("in_production");
     Languages = jsonObject.ProcessStringArray("languages");
     LastAirDate = jsonObject.GetSafeDateTime("last_air_date");
     Name = jsonObject.GetSafeString("name");
     Networks = jsonObject.ProcessObjectArray<Network>("networks");
     NumberOfEpisodes = (int)jsonObject.GetSafeNumber("number_of_episodes");
     NumberOfSeasons = (int)jsonObject.GetSafeNumber("number_of_seasons");
     OriginalName = jsonObject.GetSafeString("original_name");
     OriginCountry = jsonObject.ProcessStringArray("origin_country");
     Overview = jsonObject.GetSafeString("overview");
     Popularity = (int)jsonObject.GetSafeNumber("popularity");
     PosterPath = jsonObject.GetSafeString("poster_path");
     ProductionCompanies = jsonObject.ProcessObjectArray<ProductionCompany>("production_companies");
     SeasonSummaries = jsonObject.ProcessObjectArray<SeasonSummary>("seasons");
     Status = jsonObject.GetSafeString("status");
     VoteAverage = jsonObject.GetSafeNumber("vote_average");
     VoteCount = (int)jsonObject.GetSafeNumber("vote_count");
 }
开发者ID:Fishes,项目名称:TMDbWrapper,代码行数:27,代码来源:TVSeries.cs

示例9:

 void ITmdbObject.ProcessJson(JSONObject jsonObject)
 {
     Crew = jsonObject.ProcessObjectArray<Crew>("crew");
     Cast = jsonObject.ProcessObjectArray<Role>("cast");
 }
开发者ID:Fishes,项目名称:TMDbWrapper,代码行数:5,代码来源:Credit.cs


注:本文中的JSONObject.ProcessObjectArray方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。