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


C# JSONObject.GetSafeString方法代码示例

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


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

示例1:

 void ITmdbObject.ProcessJson(JSONObject jsonObject)
 {
     Id = (int)jsonObject.GetSafeNumber("id");
     BackdropPath = jsonObject.GetSafeString("backdrop_path");
     Name = jsonObject.GetSafeString("name");
     PosterPath = jsonObject.GetSafeString("poster_path");
 }
开发者ID:Fishes,项目名称:TMDbWrapper,代码行数:7,代码来源:CollectionSummary.cs

示例2:

 void ITmdbObject.ProcessJson(JSONObject jsonObject)
 {
     Adult = jsonObject.GetSafeBoolean("adult");
     Id = (int)jsonObject.GetSafeNumber("id");
     Name = jsonObject.GetSafeString("name");
     ProfilePath = jsonObject.GetSafeString("profile_path");
 }
开发者ID:Fishes,项目名称:TMDbWrapper,代码行数:7,代码来源:PersonSummary.cs

示例3:

 void ITmdbObject.ProcessJson(JSONObject jsonObject)
 {
     Id = (int)jsonObject.GetSafeNumber("id");
     Name = jsonObject.GetSafeString("name");
     Character = jsonObject.GetSafeString("character");
     Order = (int)jsonObject.GetSafeNumber("order");
     ProfilePath = jsonObject.GetSafeString("profile_path");
 }
开发者ID:Fishes,项目名称:TMDbWrapper,代码行数:8,代码来源:CastPerson.cs

示例4:

 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

示例5:

 void ITmdbObject.ProcessJson(JSONObject jsonObject)
 {
     Id = (int)jsonObject.GetSafeNumber("id");
     Name = jsonObject.GetSafeString("name");
     Job = jsonObject.GetSafeString("Job");
     Department = jsonObject.GetSafeString("department");
     ProfilePath = jsonObject.GetSafeString("profile_path");
 }
开发者ID:Fishes,项目名称:TMDbWrapper,代码行数:8,代码来源:CrewPerson.cs

示例6:

 void ITmdbObject.ProcessJson(JSONObject jsonObject)
 {
     FilePath = jsonObject.GetSafeString("file_path");
     Width = (int)jsonObject.GetSafeNumber("width");
     Height = (int)jsonObject.GetSafeNumber("height");
     iso639_1 = jsonObject.GetSafeString("iso_639_1");
     AspectRatio = jsonObject.GetSafeNumber("aspect_ratio");
 }
开发者ID:Fishes,项目名称:TMDbWrapper,代码行数:8,代码来源:Image.cs

示例7:

 void ITmdbObject.ProcessJson(JSONObject jsonObject)
 {
     BackdropPath = jsonObject.GetSafeString("backdrop_path");
     Id = (int)jsonObject.GetSafeNumber("id");
     PosterPath = jsonObject.GetSafeString("poster_path");
     ReleaseDate = jsonObject.GetSafeDateTime("release_date");
     Title = jsonObject.GetSafeString("title");
 }
开发者ID:Fishes,项目名称:TMDbWrapper,代码行数:8,代码来源:Part.cs

示例8:

 void ITmdbObject.ProcessJson(JSONObject jsonObject)
 {
     Description = jsonObject.GetSafeString("description");
     Headquarters = jsonObject.GetSafeString("headquarters");
     Homepage = jsonObject.GetSafeUri("homepage");
     Id = (int)jsonObject.GetSafeNumber("id");
     LogoPath = jsonObject.GetSafeString("logo_path");
     Name = jsonObject.GetSafeString("name");
     ParentCompany = (int)jsonObject.GetSafeNumber("parent_company");
 }
开发者ID:Fishes,项目名称:TMDbWrapper,代码行数:10,代码来源:Company.cs

示例9:

 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

示例10:

 void ITmdbObject.ProcessJson(JSONObject jsonObject)
 {
     Id = (int)jsonObject.GetSafeNumber("id");
     Title = jsonObject.GetSafeString("title");
     Character = jsonObject.GetSafeString("character");
     OriginalTitle = jsonObject.GetSafeString("original_title");
     PosterPath = jsonObject.GetSafeString("poster_path");
     ReleaseDate = jsonObject.GetSafeDateTime("release_date");
     Adult = jsonObject.GetSafeBoolean("adult");
 }
开发者ID:Fishes,项目名称:TMDbWrapper,代码行数:10,代码来源:Role.cs

示例11:

 void ITmdbObject.ProcessJson(JSONObject jsonObject)
 {
     Adult = jsonObject.GetSafeBoolean("adult");
     BackdropPath = jsonObject.GetSafeString("backdrop_path");
     Id = (int)jsonObject.GetSafeNumber("id");
     ReleaseDate = jsonObject.GetSafeDateTime("release_date");
     OriginalTitle = jsonObject.GetSafeString("original_title");
     PosterPath = jsonObject.GetSafeString("poster_path");
     Popularity = jsonObject.GetSafeNumber("popularity");
     Title = jsonObject.GetSafeString("title");
     VoteAverage = jsonObject.GetSafeNumber("vote_average");
     VoteCount = (int)jsonObject.GetSafeNumber("vote_count");
 }
开发者ID:Fishes,项目名称:TMDbWrapper,代码行数:13,代码来源:MovieSummary.cs

示例12:

 void ITmdbObject.ProcessJson(JSONObject jsonObject)
 {
     AirDate = jsonObject.GetSafeDateTime("air_date");
     Id = (int)jsonObject.GetSafeNumber("id");
     PosterPath = jsonObject.GetSafeString("poster_path");
     SeasonNumber = (int)jsonObject.GetSafeNumber("season_number");
 }
开发者ID:Fishes,项目名称:TMDbWrapper,代码行数:7,代码来源:SeasonSummary.cs

示例13:

 void ITmdbObject.ProcessJson(JSONObject jsonObject)
 {
     Name = jsonObject.GetSafeString("name");
     Iso_3166_1 = jsonObject.GetSafeString("iso_3166_1");
 }
开发者ID:Fishes,项目名称:TMDbWrapper,代码行数:5,代码来源:ProductionCountry.cs

示例14:

 void ITmdbObject.ProcessJson(JSONObject jsonObject)
 {
     Iso3166_1 = jsonObject.GetSafeString("iso_3166_1");
     Title = jsonObject.GetSafeString("title");
 }
开发者ID:Fishes,项目名称:TMDbWrapper,代码行数:5,代码来源:AlternativeTitle.cs

示例15: Uri

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


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