當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。