本文整理汇总了C#中JSONObject.ProcessStringArray方法的典型用法代码示例。如果您正苦于以下问题:C# JSONObject.ProcessStringArray方法的具体用法?C# JSONObject.ProcessStringArray怎么用?C# JSONObject.ProcessStringArray使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类JSONObject
的用法示例。
在下文中一共展示了JSONObject.ProcessStringArray方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ProcessJson
public void ProcessJson(JSONObject jsonObject)
{
BaseUrl = jsonObject.GetSafeUri("base_url");
SecureBaseUrl = jsonObject.GetSafeUri("secure_base_url");
BackdropSizes = jsonObject.ProcessStringArray("backdrop_sizes");
LogoSizes = jsonObject.ProcessStringArray("logo_sizes");
PosterSizes = jsonObject.ProcessStringArray("poster_sizes");
ProfileSizes = jsonObject.ProcessStringArray("profile_sizes");
StillSizes = jsonObject.ProcessStringArray("still_sizes");
}
示例2: 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");
}
示例3:
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");
}
示例4: ProcessJson
public void ProcessJson(JSONObject jsonObject)
{
ImageConfiguration = jsonObject.ProcessObject<ImageConfiguration>("images");
ChangeKeys = jsonObject.ProcessStringArray("change_keys");
}