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


C# JObject.GetInt64方法代码示例

本文整理汇总了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");
 }
开发者ID:abjerner,项目名称:Skybrud.Social.MailChimp,代码行数:10,代码来源:MailChimpUser.cs

示例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");
 }
开发者ID:abjerner,项目名称:Skybrud.Social.MailChimp,代码行数:7,代码来源:MailChimpMetadataLogin.cs

示例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");
 }
开发者ID:abjerner,项目名称:Skybrud.Social.MailChimp,代码行数:9,代码来源:MailChimpMetadata.cs

示例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)
         }
     };
 }
开发者ID:karltynan,项目名称:SirTrevor-for-Umbraco,代码行数:13,代码来源:TweetUserMention.cs

示例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);
 }
开发者ID:abjerner,项目名称:Skybrud.Social.Box,代码行数:16,代码来源:BoxFolderInfo.cs


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