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");
 }
 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");
 }
 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");
 }
 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
0
 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);
 }