Beispiel #1
0
            /// <summary>
            /// <para>Set given field.</para>
            /// </summary>
            /// <param name="value">The field value.</param>
            /// <param name="fieldName">The field name.</param>
            /// <param name="reader">The json reader.</param>
            protected override void SetField(SearchResult value, string fieldName, enc.IJsonReader reader)
            {
                switch (fieldName)
                {
                case "matches":
                    value.Matches = ReadList <SearchMatch>(reader, Dropbox.Api.Files.SearchMatch.Decoder);
                    break;

                case "more":
                    value.More = enc.BooleanDecoder.Instance.Decode(reader);
                    break;

                case "start":
                    value.Start = enc.UInt64Decoder.Instance.Decode(reader);
                    break;

                default:
                    reader.Skip();
                    break;
                }
            }
Beispiel #2
0
            /// <summary>
            /// <para>Set given field.</para>
            /// </summary>
            /// <param name="value">The field value.</param>
            /// <param name="fieldName">The field name.</param>
            /// <param name="reader">The json reader.</param>
            protected override void SetField(CreateSharedLinkArg value, string fieldName, enc.IJsonReader reader)
            {
                switch (fieldName)
                {
                case "path":
                    value.Path = enc.StringDecoder.Instance.Decode(reader);
                    break;

                case "short_url":
                    value.ShortUrl = enc.BooleanDecoder.Instance.Decode(reader);
                    break;

                case "pending_upload":
                    value.PendingUpload = Dropbox.Api.Sharing.PendingUploadMode.Decoder.Decode(reader);
                    break;

                default:
                    reader.Skip();
                    break;
                }
            }
            /// <summary>
            /// <para>Set given field.</para>
            /// </summary>
            /// <param name="value">The field value.</param>
            /// <param name="fieldName">The field name.</param>
            /// <param name="reader">The json reader.</param>
            protected override void SetField(UpdateFolderMemberArg value, string fieldName, enc.IJsonReader reader)
            {
                switch (fieldName)
                {
                case "shared_folder_id":
                    value.SharedFolderId = enc.StringDecoder.Instance.Decode(reader);
                    break;

                case "member":
                    value.Member = Dropbox.Api.Sharing.MemberSelector.Decoder.Decode(reader);
                    break;

                case "access_level":
                    value.AccessLevel = Dropbox.Api.Sharing.AccessLevel.Decoder.Decode(reader);
                    break;

                default:
                    reader.Skip();
                    break;
                }
            }
            /// <summary>
            /// <para>Set given field.</para>
            /// </summary>
            /// <param name="value">The field value.</param>
            /// <param name="fieldName">The field name.</param>
            /// <param name="reader">The json reader.</param>
            protected override void SetField(PropertyFieldTemplate value, string fieldName, enc.IJsonReader reader)
            {
                switch (fieldName)
                {
                case "name":
                    value.Name = enc.StringDecoder.Instance.Decode(reader);
                    break;

                case "description":
                    value.Description = enc.StringDecoder.Instance.Decode(reader);
                    break;

                case "type":
                    value.Type = Dropbox.Api.Properties.PropertyType.Decoder.Decode(reader);
                    break;

                default:
                    reader.Skip();
                    break;
                }
            }
Beispiel #5
0
            /// <summary>
            /// <para>Set given field.</para>
            /// </summary>
            /// <param name="value">The field value.</param>
            /// <param name="fieldName">The field name.</param>
            /// <param name="reader">The json reader.</param>
            protected override void SetField(MembersListResult value, string fieldName, enc.IJsonReader reader)
            {
                switch (fieldName)
                {
                case "members":
                    value.Members = ReadList <TeamMemberInfo>(reader, Dropbox.Api.Team.TeamMemberInfo.Decoder);
                    break;

                case "cursor":
                    value.Cursor = enc.StringDecoder.Instance.Decode(reader);
                    break;

                case "has_more":
                    value.HasMore = enc.BooleanDecoder.Instance.Decode(reader);
                    break;

                default:
                    reader.Skip();
                    break;
                }
            }
            /// <summary>
            /// <para>Set given field.</para>
            /// </summary>
            /// <param name="value">The field value.</param>
            /// <param name="fieldName">The field name.</param>
            /// <param name="reader">The json reader.</param>
            protected override void SetField(ListFolderResult value, string fieldName, enc.IJsonReader reader)
            {
                switch (fieldName)
                {
                case "entries":
                    value.Entries = ReadList(reader, Metadata.Decoder);
                    break;

                case "cursor":
                    value.Cursor = enc.StringDecoder.Instance.Decode(reader);
                    break;

                case "has_more":
                    value.HasMore = enc.BooleanDecoder.Instance.Decode(reader);
                    break;

                default:
                    reader.Skip();
                    break;
                }
            }
            /// <summary>
            /// <para>Set given field.</para>
            /// </summary>
            /// <param name="value">The field value.</param>
            /// <param name="fieldName">The field name.</param>
            /// <param name="reader">The json reader.</param>
            protected override void SetField(MemberPermission value, string fieldName, enc.IJsonReader reader)
            {
                switch (fieldName)
                {
                case "action":
                    value.Action = Dropbox.Api.Sharing.MemberAction.Decoder.Decode(reader);
                    break;

                case "allow":
                    value.Allow = enc.BooleanDecoder.Instance.Decode(reader);
                    break;

                case "reason":
                    value.Reason = Dropbox.Api.Sharing.PermissionDeniedReason.Decoder.Decode(reader);
                    break;

                default:
                    reader.Skip();
                    break;
                }
            }
            /// <summary>
            /// <para>Set given field.</para>
            /// </summary>
            /// <param name="value">The field value.</param>
            /// <param name="fieldName">The field name.</param>
            /// <param name="reader">The json reader.</param>
            protected override void SetField(CollectionLinkMetadata value, string fieldName, enc.IJsonReader reader)
            {
                switch (fieldName)
                {
                case "url":
                    value.Url = enc.StringDecoder.Instance.Decode(reader);
                    break;

                case "visibility":
                    value.Visibility = Dropbox.Api.Sharing.Visibility.Decoder.Decode(reader);
                    break;

                case "expires":
                    value.Expires = enc.DateTimeDecoder.Instance.Decode(reader);
                    break;

                default:
                    reader.Skip();
                    break;
                }
            }
Beispiel #9
0
            /// <summary>
            /// <para>Set given field.</para>
            /// </summary>
            /// <param name="value">The field value.</param>
            /// <param name="fieldName">The field name.</param>
            /// <param name="reader">The json reader.</param>
            protected override void SetField(TeamSharingPolicies value, string fieldName, enc.IJsonReader reader)
            {
                switch (fieldName)
                {
                case "shared_folder_member_policy":
                    value.SharedFolderMemberPolicy = Dropbox.Api.TeamPolicies.SharedFolderMemberPolicy.Decoder.Decode(reader);
                    break;

                case "shared_folder_join_policy":
                    value.SharedFolderJoinPolicy = Dropbox.Api.TeamPolicies.SharedFolderJoinPolicy.Decoder.Decode(reader);
                    break;

                case "shared_link_create_policy":
                    value.SharedLinkCreatePolicy = Dropbox.Api.TeamPolicies.SharedLinkCreatePolicy.Decoder.Decode(reader);
                    break;

                default:
                    reader.Skip();
                    break;
                }
            }
Beispiel #10
0
            /// <summary>
            /// <para>Set given field.</para>
            /// </summary>
            /// <param name="value">The field value.</param>
            /// <param name="fieldName">The field name.</param>
            /// <param name="reader">The json reader.</param>
            protected override void SetField(GroupUpdateArgs value, string fieldName, enc.IJsonReader reader)
            {
                switch (fieldName)
                {
                case "group":
                    value.Group = Dropbox.Api.Team.GroupSelector.Decoder.Decode(reader);
                    break;

                case "new_group_name":
                    value.NewGroupName = enc.StringDecoder.Instance.Decode(reader);
                    break;

                case "new_group_external_id":
                    value.NewGroupExternalId = enc.StringDecoder.Instance.Decode(reader);
                    break;

                default:
                    reader.Skip();
                    break;
                }
            }
Beispiel #11
0
            /// <summary>
            /// <para>Set given field.</para>
            /// </summary>
            /// <param name="value">The field value.</param>
            /// <param name="fieldName">The field name.</param>
            /// <param name="reader">The json reader.</param>
            protected override void SetField(GroupsListResult value, string fieldName, enc.IJsonReader reader)
            {
                switch (fieldName)
                {
                case "groups":
                    value.Groups = ReadList <GroupSummary>(reader, Dropbox.Api.Team.GroupSummary.Decoder);
                    break;

                case "cursor":
                    value.Cursor = enc.StringDecoder.Instance.Decode(reader);
                    break;

                case "has_more":
                    value.HasMore = enc.BooleanDecoder.Instance.Decode(reader);
                    break;

                default:
                    reader.Skip();
                    break;
                }
            }
Beispiel #12
0
            /// <summary>
            /// <para>Set given field.</para>
            /// </summary>
            /// <param name="value">The field value.</param>
            /// <param name="fieldName">The field name.</param>
            /// <param name="reader">The json reader.</param>
            protected override void SetField(ListTeamAppsResult value, string fieldName, enc.IJsonReader reader)
            {
                switch (fieldName)
                {
                case "apps":
                    value.Apps = ReadList <MemberLinkedApps>(reader, Dropbox.Api.Team.MemberLinkedApps.Decoder);
                    break;

                case "has_more":
                    value.HasMore = enc.BooleanDecoder.Instance.Decode(reader);
                    break;

                case "cursor":
                    value.Cursor = enc.StringDecoder.Instance.Decode(reader);
                    break;

                default:
                    reader.Skip();
                    break;
                }
            }
Beispiel #13
0
            /// <summary>
            /// <para>Set given field.</para>
            /// </summary>
            /// <param name="value">The field value.</param>
            /// <param name="fieldName">The field name.</param>
            /// <param name="reader">The json reader.</param>
            protected override void SetField(ThumbnailArg value, string fieldName, enc.IJsonReader reader)
            {
                switch (fieldName)
                {
                case "path":
                    value.Path = enc.StringDecoder.Instance.Decode(reader);
                    break;

                case "format":
                    value.Format = Dropbox.Api.Files.ThumbnailFormat.Decoder.Decode(reader);
                    break;

                case "size":
                    value.Size = Dropbox.Api.Files.ThumbnailSize.Decoder.Decode(reader);
                    break;

                default:
                    reader.Skip();
                    break;
                }
            }
Beispiel #14
0
            /// <summary>
            /// <para>Set given field.</para>
            /// </summary>
            /// <param name="value">The field value.</param>
            /// <param name="fieldName">The field name.</param>
            /// <param name="reader">The json reader.</param>
            protected override void SetField(TeamMemberInfo value, string fieldName, enc.IJsonReader reader)
            {
                switch (fieldName)
                {
                case "team_info":
                    value.TeamInfo = Dropbox.Api.Users.Team.Decoder.Decode(reader);
                    break;

                case "display_name":
                    value.DisplayName = enc.StringDecoder.Instance.Decode(reader);
                    break;

                case "member_id":
                    value.MemberId = enc.StringDecoder.Instance.Decode(reader);
                    break;

                default:
                    reader.Skip();
                    break;
                }
            }
            /// <summary>
            /// <para>Set given field.</para>
            /// </summary>
            /// <param name="value">The field value.</param>
            /// <param name="fieldName">The field name.</param>
            /// <param name="reader">The json reader.</param>
            protected override void SetField(GroupMembershipInfo value, string fieldName, enc.IJsonReader reader)
            {
                switch (fieldName)
                {
                case "access_type":
                    value.AccessType = Dropbox.Api.Sharing.AccessLevel.Decoder.Decode(reader);
                    break;

                case "group":
                    value.Group = Dropbox.Api.Sharing.GroupInfo.Decoder.Decode(reader);
                    break;

                case "permissions":
                    value.Permissions = ReadList <MemberPermission>(reader, Dropbox.Api.Sharing.MemberPermission.Decoder);
                    break;

                default:
                    reader.Skip();
                    break;
                }
            }
            /// <summary>
            /// <para>Set given field.</para>
            /// </summary>
            /// <param name="value">The field value.</param>
            /// <param name="fieldName">The field name.</param>
            /// <param name="reader">The json reader.</param>
            protected override void SetField(GetPropertyTemplateResult value, string fieldName, enc.IJsonReader reader)
            {
                switch (fieldName)
                {
                case "name":
                    value.Name = enc.StringDecoder.Instance.Decode(reader);
                    break;

                case "description":
                    value.Description = enc.StringDecoder.Instance.Decode(reader);
                    break;

                case "fields":
                    value.Fields = ReadList <PropertyFieldTemplate>(reader, Dropbox.Api.Properties.PropertyFieldTemplate.Decoder);
                    break;

                default:
                    reader.Skip();
                    break;
                }
            }
            /// <summary>
            /// <para>Set given field.</para>
            /// </summary>
            /// <param name="value">The field value.</param>
            /// <param name="fieldName">The field name.</param>
            /// <param name="reader">The json reader.</param>
            protected override void SetField(GroupMembersSetAccessTypeArg value, string fieldName, enc.IJsonReader reader)
            {
                switch (fieldName)
                {
                case "group":
                    value.Group = Dropbox.Api.Team.GroupSelector.Decoder.Decode(reader);
                    break;

                case "user":
                    value.User = Dropbox.Api.Team.UserSelectorArg.Decoder.Decode(reader);
                    break;

                case "access_type":
                    value.AccessType = Dropbox.Api.Team.GroupAccessType.Decoder.Decode(reader);
                    break;

                default:
                    reader.Skip();
                    break;
                }
            }
            /// <summary>
            /// <para>Set given field.</para>
            /// </summary>
            /// <param name="value">The field value.</param>
            /// <param name="fieldName">The field name.</param>
            /// <param name="reader">The json reader.</param>
            protected override void SetField(ListSharedLinksResult value, string fieldName, enc.IJsonReader reader)
            {
                switch (fieldName)
                {
                case "links":
                    value.Links = ReadList <SharedLinkMetadata>(reader, Dropbox.Api.Sharing.SharedLinkMetadata.Decoder);
                    break;

                case "has_more":
                    value.HasMore = enc.BooleanDecoder.Instance.Decode(reader);
                    break;

                case "cursor":
                    value.Cursor = enc.StringDecoder.Instance.Decode(reader);
                    break;

                default:
                    reader.Skip();
                    break;
                }
            }
Beispiel #19
0
            /// <summary>
            /// <para>Set given field.</para>
            /// </summary>
            /// <param name="value">The field value.</param>
            /// <param name="fieldName">The field name.</param>
            /// <param name="reader">The json reader.</param>
            protected override void SetField(BasicAccount value, string fieldName, enc.IJsonReader reader)
            {
                switch (fieldName)
                {
                case "account_id":
                    value.AccountId = enc.StringDecoder.Instance.Decode(reader);
                    break;

                case "name":
                    value.Name = Name.Decoder.Decode(reader);
                    break;

                case "is_teammate":
                    value.IsTeammate = enc.BooleanDecoder.Instance.Decode(reader);
                    break;

                default:
                    reader.Skip();
                    break;
                }
            }
            /// <summary>
            /// <para>Set given field.</para>
            /// </summary>
            /// <param name="value">The field value.</param>
            /// <param name="fieldName">The field name.</param>
            /// <param name="reader">The json reader.</param>
            protected override void SetField(RemoveFolderMemberArg value, string fieldName, enc.IJsonReader reader)
            {
                switch (fieldName)
                {
                case "shared_folder_id":
                    value.SharedFolderId = enc.StringDecoder.Instance.Decode(reader);
                    break;

                case "member":
                    value.Member = Dropbox.Api.Sharing.MemberSelector.Decoder.Decode(reader);
                    break;

                case "leave_a_copy":
                    value.LeaveACopy = enc.BooleanDecoder.Instance.Decode(reader);
                    break;

                default:
                    reader.Skip();
                    break;
                }
            }
            /// <summary>
            /// <para>Set given field.</para>
            /// </summary>
            /// <param name="value">The field value.</param>
            /// <param name="fieldName">The field name.</param>
            /// <param name="reader">The json reader.</param>
            protected override void SetField(DeletedMetadata value, string fieldName, enc.IJsonReader reader)
            {
                switch (fieldName)
                {
                case "name":
                    value.Name = enc.StringDecoder.Instance.Decode(reader);
                    break;

                case "path_lower":
                    value.PathLower = enc.StringDecoder.Instance.Decode(reader);
                    break;

                case "parent_shared_folder_id":
                    value.ParentSharedFolderId = enc.StringDecoder.Instance.Decode(reader);
                    break;

                default:
                    reader.Skip();
                    break;
                }
            }
Beispiel #22
0
            /// <summary>
            /// <para>Set given field.</para>
            /// </summary>
            /// <param name="value">The field value.</param>
            /// <param name="fieldName">The field name.</param>
            /// <param name="reader">The json reader.</param>
            protected override void SetField(GetSharedLinkMetadataArg value, string fieldName, enc.IJsonReader reader)
            {
                switch (fieldName)
                {
                case "url":
                    value.Url = enc.StringDecoder.Instance.Decode(reader);
                    break;

                case "path":
                    value.Path = enc.StringDecoder.Instance.Decode(reader);
                    break;

                case "link_password":
                    value.LinkPassword = enc.StringDecoder.Instance.Decode(reader);
                    break;

                default:
                    reader.Skip();
                    break;
                }
            }
Beispiel #23
0
            /// <summary>
            /// <para>Set given field.</para>
            /// </summary>
            /// <param name="value">The field value.</param>
            /// <param name="fieldName">The field name.</param>
            /// <param name="reader">The json reader.</param>
            protected override void SetField(PhotoMetadata value, string fieldName, enc.IJsonReader reader)
            {
                switch (fieldName)
                {
                case "dimensions":
                    value.Dimensions = Dropbox.Api.Files.Dimensions.Decoder.Decode(reader);
                    break;

                case "location":
                    value.Location = Dropbox.Api.Files.GpsCoordinates.Decoder.Decode(reader);
                    break;

                case "time_taken":
                    value.TimeTaken = enc.DateTimeDecoder.Instance.Decode(reader);
                    break;

                default:
                    reader.Skip();
                    break;
                }
            }
            /// <summary>
            /// <para>Set given field.</para>
            /// </summary>
            /// <param name="value">The field value.</param>
            /// <param name="fieldName">The field name.</param>
            /// <param name="reader">The json reader.</param>
            protected override void SetField(GroupMembersAddArg value, string fieldName, enc.IJsonReader reader)
            {
                switch (fieldName)
                {
                case "group":
                    value.Group = Dropbox.Api.Team.GroupSelector.Decoder.Decode(reader);
                    break;

                case "members":
                    value.Members = ReadList <MemberAccess>(reader, Dropbox.Api.Team.MemberAccess.Decoder);
                    break;

                case "return_members":
                    value.ReturnMembers = enc.BooleanDecoder.Instance.Decode(reader);
                    break;

                default:
                    reader.Skip();
                    break;
                }
            }
            /// <summary>
            /// <para>Set given field.</para>
            /// </summary>
            /// <param name="value">The field value.</param>
            /// <param name="fieldName">The field name.</param>
            /// <param name="reader">The json reader.</param>
            protected override void SetField(FolderSharingInfo value, string fieldName, enc.IJsonReader reader)
            {
                switch (fieldName)
                {
                case "read_only":
                    value.ReadOnly = enc.BooleanDecoder.Instance.Decode(reader);
                    break;

                case "parent_shared_folder_id":
                    value.ParentSharedFolderId = enc.StringDecoder.Instance.Decode(reader);
                    break;

                case "shared_folder_id":
                    value.SharedFolderId = enc.StringDecoder.Instance.Decode(reader);
                    break;

                default:
                    reader.Skip();
                    break;
                }
            }
Beispiel #26
0
            /// <summary>
            /// <para>Set given field.</para>
            /// </summary>
            /// <param name="value">The field value.</param>
            /// <param name="fieldName">The field name.</param>
            /// <param name="reader">The json reader.</param>
            protected override void SetField(FolderPolicy value, string fieldName, enc.IJsonReader reader)
            {
                switch (fieldName)
                {
                case "acl_update_policy":
                    value.AclUpdatePolicy = AclUpdatePolicy.Decoder.Decode(reader);
                    break;

                case "shared_link_policy":
                    value.SharedLinkPolicy = SharedLinkPolicy.Decoder.Decode(reader);
                    break;

                case "member_policy":
                    value.MemberPolicy = MemberPolicy.Decoder.Decode(reader);
                    break;

                default:
                    reader.Skip();
                    break;
                }
            }
Beispiel #27
0
            /// <summary>
            /// <para>Set given field.</para>
            /// </summary>
            /// <param name="value">The field value.</param>
            /// <param name="fieldName">The field name.</param>
            /// <param name="reader">The json reader.</param>
            protected override void SetField(SharedLinkSettings value, string fieldName, enc.IJsonReader reader)
            {
                switch (fieldName)
                {
                case "requested_visibility":
                    value.RequestedVisibility = Dropbox.Api.Sharing.RequestedVisibility.Decoder.Decode(reader);
                    break;

                case "link_password":
                    value.LinkPassword = enc.StringDecoder.Instance.Decode(reader);
                    break;

                case "expires":
                    value.Expires = enc.DateTimeDecoder.Instance.Decode(reader);
                    break;

                default:
                    reader.Skip();
                    break;
                }
            }
            /// <summary>
            /// <para>Set given field.</para>
            /// </summary>
            /// <param name="value">The field value.</param>
            /// <param name="fieldName">The field name.</param>
            /// <param name="reader">The json reader.</param>
            protected override void SetField(SharedFolderMetadata value, string fieldName, enc.IJsonReader reader)
            {
                switch (fieldName)
                {
                case "name":
                    value.Name = enc.StringDecoder.Instance.Decode(reader);
                    break;

                case "shared_folder_id":
                    value.SharedFolderId = enc.StringDecoder.Instance.Decode(reader);
                    break;

                case "access_type":
                    value.AccessType = Dropbox.Api.Sharing.AccessLevel.Decoder.Decode(reader);
                    break;

                case "is_team_folder":
                    value.IsTeamFolder = enc.BooleanDecoder.Instance.Decode(reader);
                    break;

                case "policy":
                    value.Policy = Dropbox.Api.Sharing.FolderPolicy.Decoder.Decode(reader);
                    break;

                case "path_lower":
                    value.PathLower = enc.StringDecoder.Instance.Decode(reader);
                    break;

                case "permissions":
                    value.Permissions = ReadList <FolderPermission>(reader, Dropbox.Api.Sharing.FolderPermission.Decoder);
                    break;

                default:
                    reader.Skip();
                    break;
                }
            }
Beispiel #29
0
            /// <summary>
            /// <para>Set given field.</para>
            /// </summary>
            /// <param name="value">The field value.</param>
            /// <param name="fieldName">The field name.</param>
            /// <param name="reader">The json reader.</param>
            protected override void SetField(DevicesActive value, string fieldName, enc.IJsonReader reader)
            {
                switch (fieldName)
                {
                case "windows":
                    value.Windows = ReadList <ulong?>(reader, enc.UInt64Decoder.NullableInstance);
                    break;

                case "macos":
                    value.Macos = ReadList <ulong?>(reader, enc.UInt64Decoder.NullableInstance);
                    break;

                case "linux":
                    value.Linux = ReadList <ulong?>(reader, enc.UInt64Decoder.NullableInstance);
                    break;

                case "ios":
                    value.Ios = ReadList <ulong?>(reader, enc.UInt64Decoder.NullableInstance);
                    break;

                case "android":
                    value.Android = ReadList <ulong?>(reader, enc.UInt64Decoder.NullableInstance);
                    break;

                case "other":
                    value.Other = ReadList <ulong?>(reader, enc.UInt64Decoder.NullableInstance);
                    break;

                case "total":
                    value.Total = ReadList <ulong?>(reader, enc.UInt64Decoder.NullableInstance);
                    break;

                default:
                    reader.Skip();
                    break;
                }
            }
            /// <summary>
            /// <para>Set given field.</para>
            /// </summary>
            /// <param name="value">The field value.</param>
            /// <param name="fieldName">The field name.</param>
            /// <param name="reader">The json reader.</param>
            protected override void SetField(FolderMetadata value, string fieldName, enc.IJsonReader reader)
            {
                switch (fieldName)
                {
                case "name":
                    value.Name = enc.StringDecoder.Instance.Decode(reader);
                    break;

                case "path_lower":
                    value.PathLower = enc.StringDecoder.Instance.Decode(reader);
                    break;

                case "path_display":
                    value.PathDisplay = enc.StringDecoder.Instance.Decode(reader);
                    break;

                case "id":
                    value.Id = enc.StringDecoder.Instance.Decode(reader);
                    break;

                case "parent_shared_folder_id":
                    value.ParentSharedFolderId = enc.StringDecoder.Instance.Decode(reader);
                    break;

                case "shared_folder_id":
                    value.SharedFolderId = enc.StringDecoder.Instance.Decode(reader);
                    break;

                case "sharing_info":
                    value.SharingInfo = Dropbox.Api.Files.FolderSharingInfo.Decoder.Decode(reader);
                    break;

                default:
                    reader.Skip();
                    break;
                }
            }