本文整理汇总了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);
}