本文整理汇总了C#中JsonObject.GetSafeNumber方法的典型用法代码示例。如果您正苦于以下问题:C# JsonObject.GetSafeNumber方法的具体用法?C# JsonObject.GetSafeNumber怎么用?C# JsonObject.GetSafeNumber使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类JsonObject
的用法示例。
在下文中一共展示了JsonObject.GetSafeNumber方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1:
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");
}
示例2:
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");
}
示例3:
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");
VoteAverage = jsonObject.GetSafeNumber("vote_average");
VoteCount = (int)jsonObject.GetSafeNumber("vote_count");
}
示例4:
void ITmdbObject.ProcessJson(JsonObject jsonObject)
{
Adult = jsonObject.GetSafeBoolean("adult");
BackdropPath = jsonObject.GetSafeString("backdrop_path");
Id = (int)jsonObject.GetSafeNumber("id");
OriginalTitle = jsonObject.GetSafeString("release_date");
PosterPath = jsonObject.GetSafeString("poster_path");
Popularity = jsonObject.GetSafeNumber("popularity");
Title = jsonObject.GetSafeString("title");
VoteAverage = jsonObject.GetSafeNumber("vote_average");
VoteCount = (int)jsonObject.GetSafeNumber("vote_count");
}
示例5:
void ITmdbObject.ProcessJson(JsonObject jsonObject)
{
Id = (int)jsonObject.GetSafeNumber("id");
BackdropPath = jsonObject.GetSafeString("backdrop_path");
Name = jsonObject.GetSafeString("name");
PosterPath = jsonObject.GetSafeString("poster_path");
}
示例6:
void ITmdbObject.ProcessJson(JsonObject jsonObject)
{
BackdropPath = jsonObject.GetSafeString("backdrop_path");
Id = (int)jsonObject.GetSafeNumber("id");
PosterPath = jsonObject.GetSafeString("poster_path");
ReleaseDate = jsonObject.GetSafeString("release_date");
Title = jsonObject.GetSafeString("title");
}
示例7:
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.GetSafeString("release_date");
Adult = jsonObject.GetSafeBoolean("adult");
}
示例8:
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");
}
示例9:
void ITmdbObject.ProcessJson(JsonObject jsonObject)
{
Id = (int)jsonObject.GetSafeNumber("id");
QuickTime = jsonObject.ProcessArray<Trailer>("quicktime");
Youtube = jsonObject.ProcessArray<Trailer>("youtube");
}
示例10:
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");
}
示例11:
void ITmdbObject.ProcessJson(JsonObject jsonObject)
{
Id = (int)jsonObject.GetSafeNumber("id");
Name = jsonObject.GetSafeString("name");
}
示例12: Uri
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)
{
}
}
示例13:
void ITmdbObject.ProcessJson(JsonObject jsonObject)
{
Id = (int)jsonObject.GetSafeNumber("id");
Backdrops = jsonObject.ProcessArray<Backdrop>("backdrops");
Posters = jsonObject.ProcessArray<Poster>("posters");
}