本文整理匯總了C#中Newtonsoft.Json.Linq.JObject.GetInt64方法的典型用法代碼示例。如果您正苦於以下問題:C# JObject.GetInt64方法的具體用法?C# JObject.GetInt64怎麽用?C# JObject.GetInt64使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Newtonsoft.Json.Linq.JObject
的用法示例。
在下文中一共展示了JObject.GetInt64方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: MailChimpUser
private MailChimpUser(JObject obj) : base(obj) {
Id = obj.GetInt64("id");
Username = obj.GetString("username");
Name = obj.GetString("name");
Email = obj.GetString("email");
Role = obj.GetString("role");
Avatar = obj.GetString("avatar");
GlobalUserId = obj.GetInt64("global_user_id");
DataCenterUniqueId = obj.GetString("dc_unique_id");
}
示例2: MailChimpMetadataLogin
private MailChimpMetadataLogin(JObject obj) : base(obj) {
Email = obj.GetString("email");
Avatar = obj.GetString("avatar");
LoginId = obj.GetInt64("login_id");
LoginName = obj.GetString("login_name");
LoginEmail = obj.GetString("login_email");
}
示例3: MailChimpMetadata
private MailChimpMetadata(JObject obj) : base(obj) {
DataCenter = obj.GetString("dc");
AccountName = obj.GetString("accountname");
Role = obj.GetString("role");
UserId = obj.GetInt64("user_id");
Login = obj.GetObject("login", MailChimpMetadataLogin.Parse);
LoginUrl = obj.GetString("login_url");
ApiEndpoint = obj.GetString("api_endpoint");
}
示例4: Parse
internal static TweetUserMention Parse(JObject obj)
{
JArray array = obj.GetArray("indices");
return new TweetUserMention {
ScreenName = obj.GetString("screen_name"),
Name = obj.GetString("name"),
Id = obj.GetInt64("id"),
Indices = new[] {
array.GetInt32(0),
array.GetInt32(1)
}
};
}
示例5: BoxFolderInfo
private BoxFolderInfo(JObject obj) : base(obj) {
Type = obj.GetString("type");
Id = obj.GetString("id");
Name = obj.GetString("name");
CreatedAt = obj.GetString("created_at", SocialDateTime.Parse);
ModifiedAt = obj.GetString("modified_at", SocialDateTime.Parse);
Description = obj.GetString("description");
Size = obj.GetInt64("size");
CreatedBy = obj.GetObject("created_by", BoxUserInfo.Parse);
ModifiedBy = obj.GetObject("modified_by", BoxUserInfo.Parse);
TrashedAt = obj.GetString("trashed_at", SocialDateTime.Parse);
PurgedAt = obj.GetString("purged_at", SocialDateTime.Parse);
ContentCreatedAt = obj.GetString("content_created_at", SocialDateTime.Parse);
ContentModifiedAt = obj.GetString("content_modified_at", SocialDateTime.Parse);
OwnedBy = obj.GetObject("owned_by", BoxUserInfo.Parse);
}