/// <summary> /// <para>Decode fields without ensuring start and end object.</para> /// </summary> /// <param name="reader">The json reader.</param> /// <returns>The decoded object.</returns> public override TemplateAttributeTooLarge DecodeFields(enc.IJsonReader reader) { return(TemplateAttributeTooLarge.Instance); }
/// <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(ListTeamDevicesResult value, string fieldName, enc.IJsonReader reader) { switch (fieldName) { case "devices": value.Devices = ReadList <MemberDevices>(reader, Dropbox.Api.Team.MemberDevices.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; } }
/// <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(PaperDocUntrashedDetails value, string fieldName, enc.IJsonReader reader) { switch (fieldName) { case "event_uuid": value.EventUuid = 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(UpdatePropertyTemplateResult value, string fieldName, enc.IJsonReader reader) { switch (fieldName) { case "template_id": value.TemplateId = 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(GetFileMetadataBatchResult value, string fieldName, enc.IJsonReader reader) { switch (fieldName) { case "file": value.File = enc.StringDecoder.Instance.Decode(reader); break; case "result": value.Result = Dropbox.Api.Sharing.GetFileMetadataIndividualResult.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(ExportMembersReportFailType value, string fieldName, enc.IJsonReader reader) { switch (fieldName) { case "description": value.Description = 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(SharedContentChangeViewerInfoPolicyDetails value, string fieldName, enc.IJsonReader reader) { switch (fieldName) { case "target_index": value.TargetIndex = enc.Int64Decoder.Instance.Decode(reader); break; case "new_value": value.NewValue = global::Dropbox.Api.TeamLog.EnableDisableChangePolicy.Decoder.Decode(reader); break; case "original_folder_name": value.OriginalFolderName = enc.StringDecoder.Instance.Decode(reader); break; case "shared_folder_type": value.SharedFolderType = enc.StringDecoder.Instance.Decode(reader); break; case "previous_value": value.PreviousValue = global::Dropbox.Api.TeamLog.EnableDisableChangePolicy.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(CommitInfoWithProperties value, string fieldName, enc.IJsonReader reader) { switch (fieldName) { case "path": value.Path = enc.StringDecoder.Instance.Decode(reader); break; case "mode": value.Mode = global::Dropbox.Api.Files.WriteMode.Decoder.Decode(reader); break; case "autorename": value.Autorename = enc.BooleanDecoder.Instance.Decode(reader); break; case "client_modified": value.ClientModified = enc.DateTimeDecoder.Instance.Decode(reader); break; case "mute": value.Mute = enc.BooleanDecoder.Instance.Decode(reader); break; case "property_groups": value.PropertyGroups = ReadList <global::Dropbox.Api.Properties.PropertyGroup>(reader, global::Dropbox.Api.Properties.PropertyGroup.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(UserMembershipInfo value, string fieldName, enc.IJsonReader reader) { switch (fieldName) { case "access_type": value.AccessType = global::Dropbox.Api.Sharing.AccessLevel.Decoder.Decode(reader); break; case "user": value.User = global::Dropbox.Api.Sharing.UserInfo.Decoder.Decode(reader); break; case "permissions": value.Permissions = ReadList <MemberPermission>(reader, global::Dropbox.Api.Sharing.MemberPermission.Decoder); break; case "initials": value.Initials = enc.StringDecoder.Instance.Decode(reader); break; case "is_inherited": value.IsInherited = 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(ListFileMembersCountResult value, string fieldName, enc.IJsonReader reader) { switch (fieldName) { case "members": value.Members = Dropbox.Api.Sharing.SharedFileMembers.Decoder.Decode(reader); break; case "member_count": value.MemberCount = enc.UInt32Decoder.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(TfaRemoveSecurityKeyDetails value, string fieldName, enc.IJsonReader reader) { switch (fieldName) { default: reader.Skip(); break; } }
/// <summary> /// <para>Decode fields without ensuring start and end object.</para> /// </summary> /// <param name="reader">The json reader.</param> /// <returns>The decoded object.</returns> public override Other DecodeFields(enc.IJsonReader reader) { return(Other.Instance); }
/// <summary> /// <para>Decode fields without ensuring start and end object.</para> /// </summary> /// <param name="reader">The json reader.</param> /// <returns>The decoded object.</returns> public override RestrictedContent DecodeFields(enc.IJsonReader reader) { return(RestrictedContent.Instance); }
/// <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(TemplateNotFound value, string fieldName, enc.IJsonReader reader) { switch (fieldName) { case "template_not_found": value.Value = 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(TeamMergeRequestAcceptedShownToPrimaryTeamDetails value, string fieldName, enc.IJsonReader reader) { switch (fieldName) { case "secondary_team": value.SecondaryTeam = enc.StringDecoder.Instance.Decode(reader); break; case "sent_by": value.SentBy = 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(SharedFolderMetadata value, string fieldName, enc.IJsonReader reader) { switch (fieldName) { case "access_type": value.AccessType = Dropbox.Api.Sharing.AccessLevel.Decoder.Decode(reader); break; case "is_inside_team_folder": value.IsInsideTeamFolder = enc.BooleanDecoder.Instance.Decode(reader); break; case "is_team_folder": value.IsTeamFolder = enc.BooleanDecoder.Instance.Decode(reader); break; case "name": value.Name = enc.StringDecoder.Instance.Decode(reader); break; case "policy": value.Policy = Dropbox.Api.Sharing.FolderPolicy.Decoder.Decode(reader); break; case "preview_url": value.PreviewUrl = enc.StringDecoder.Instance.Decode(reader); break; case "shared_folder_id": value.SharedFolderId = enc.StringDecoder.Instance.Decode(reader); break; case "time_invited": value.TimeInvited = enc.DateTimeDecoder.Instance.Decode(reader); break; case "owner_team": value.OwnerTeam = Dropbox.Api.Users.Team.Decoder.Decode(reader); break; case "parent_shared_folder_id": value.ParentSharedFolderId = enc.StringDecoder.Instance.Decode(reader); break; case "path_lower": value.PathLower = enc.StringDecoder.Instance.Decode(reader); break; case "link_metadata": value.LinkMetadata = Dropbox.Api.Sharing.SharedContentLinkMetadata.Decoder.Decode(reader); break; case "permissions": value.Permissions = ReadList <FolderPermission>(reader, Dropbox.Api.Sharing.FolderPermission.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(StartedEnterpriseAdminSessionDetails value, string fieldName, enc.IJsonReader reader) { switch (fieldName) { case "federation_extra_details": value.FederationExtraDetails = global::Dropbox.Api.TeamLog.FedExtraDetails.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(GetStorageReport value, string fieldName, enc.IJsonReader reader) { switch (fieldName) { case "start_date": value.StartDate = enc.StringDecoder.Instance.Decode(reader); break; case "total_usage": value.TotalUsage = ReadList <ulong?>(reader, enc.UInt64Decoder.NullableInstance); break; case "shared_usage": value.SharedUsage = ReadList <ulong?>(reader, enc.UInt64Decoder.NullableInstance); break; case "unshared_usage": value.UnsharedUsage = ReadList <ulong?>(reader, enc.UInt64Decoder.NullableInstance); break; case "shared_folders": value.SharedFolders = ReadList <ulong?>(reader, enc.UInt64Decoder.NullableInstance); break; case "member_storage_map": value.MemberStorageMap = ReadList <col.IList <StorageBucket> >(reader, enc.Decoder.CreateListDecoder(global::Dropbox.Api.Team.StorageBucket.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(ClassificationChangePolicyDetails value, string fieldName, enc.IJsonReader reader) { switch (fieldName) { case "previous_value": value.PreviousValue = global::Dropbox.Api.TeamLog.ClassificationPolicyEnumWrapper.Decoder.Decode(reader); break; case "new_value": value.NewValue = global::Dropbox.Api.TeamLog.ClassificationPolicyEnumWrapper.Decoder.Decode(reader); break; case "classification_type": value.ClassificationType = global::Dropbox.Api.TeamLog.ClassificationType.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(SsoChangePolicyDetails value, string fieldName, enc.IJsonReader reader) { switch (fieldName) { case "new_value": value.NewValue = global::Dropbox.Api.TeamLog.SsoPolicy.Decoder.Decode(reader); break; case "previous_value": value.PreviousValue = global::Dropbox.Api.TeamLog.SsoPolicy.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(DeviceSessionArg value, string fieldName, enc.IJsonReader reader) { switch (fieldName) { case "session_id": value.SessionId = enc.StringDecoder.Instance.Decode(reader); break; case "team_member_id": value.TeamMemberId = 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(ExternalSharingReportFailedDetails value, string fieldName, enc.IJsonReader reader) { switch (fieldName) { case "failure_reason": value.FailureReason = global::Dropbox.Api.Team.TeamReportFailureReason.Decoder.Decode(reader); break; default: reader.Skip(); break; } }
/// <summary> /// <para>Decode fields without ensuring start and end object.</para> /// </summary> /// <param name="reader">The json reader.</param> /// <returns>The decoded object.</returns> public override Complete DecodeFields(enc.IJsonReader reader) { return(new Complete(global::Dropbox.Api.Files.DeleteBatchResult.Decoder.DecodeFields(reader))); }
/// <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(SaveCopyReferenceResult value, string fieldName, enc.IJsonReader reader) { switch (fieldName) { case "metadata": value.Metadata = global::Dropbox.Api.Files.Metadata.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(SharedContentRemoveInviteeDetails value, string fieldName, enc.IJsonReader reader) { switch (fieldName) { case "target_index": value.TargetIndex = enc.Int64Decoder.Instance.Decode(reader); break; case "original_folder_name": value.OriginalFolderName = 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(NamespaceId value, string fieldName, enc.IJsonReader reader) { switch (fieldName) { case "namespace_id": value.Value = 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(TeamFolderCreateArg value, string fieldName, enc.IJsonReader reader) { switch (fieldName) { case "name": value.Name = enc.StringDecoder.Instance.Decode(reader); break; case "sync_setting": value.SyncSetting = global::Dropbox.Api.Files.SyncSettingArg.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(ListFolderResult value, string fieldName, enc.IJsonReader reader) { switch (fieldName) { case "entries": value.Entries = ReadList <Metadata>(reader, global::Dropbox.Api.Files.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>Decode fields without ensuring start and end object.</para> /// </summary> /// <param name="reader">The json reader.</param> /// <returns>The decoded object.</returns> public override TeamMember DecodeFields(enc.IJsonReader reader) { return(new TeamMember(global::Dropbox.Api.TeamLog.TeamMemberLogInfo.Decoder.DecodeFields(reader))); }
/// <summary> /// <para>Decode fields without ensuring start and end object.</para> /// </summary> /// <param name="reader">The json reader.</param> /// <returns>The decoded object.</returns> public override TooManyTemplates DecodeFields(enc.IJsonReader reader) { return(TooManyTemplates.Instance); }