├── .gitignore ├── .travis.yml ├── Example ├── ObjectiveDropbox.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ └── contents.xcworkspacedata │ └── xcshareddata │ │ ├── xcbaselines │ │ └── 6003F5AD195388D20070C39A.xcbaseline │ │ │ ├── 274AEA50-D3F5-47E6-BC5B-CB1A1A75EA56.plist │ │ │ ├── F207A088-5AB1-4E69-B36E-D21A35A98DD7.plist │ │ │ └── Info.plist │ │ └── xcschemes │ │ └── ObjectiveDropbox-Example.xcscheme ├── ObjectiveDropbox.xcworkspace │ └── contents.xcworkspacedata ├── ObjectiveDropbox │ ├── DropboxAppDelegate.h │ ├── DropboxAppDelegate.m │ ├── DropboxViewController.h │ ├── DropboxViewController.m │ ├── DropboxViewModel.h │ ├── DropboxViewModel.m │ ├── DropboxViewModelProtocol.h │ ├── Images.xcassets │ │ ├── AppIcon.appiconset │ │ │ └── Contents.json │ │ └── Contents.json │ ├── Main.storyboard │ ├── ObjectiveDropbox-Info.plist │ ├── ObjectiveDropbox-Prefix.pch │ ├── en.lproj │ │ └── InfoPlist.strings │ ├── main.m │ └── Картинка.jpg ├── Podfile ├── Podfile.lock ├── Pods │ ├── Local Podspecs │ │ └── ObjectiveDropbox.podspec.json │ ├── Manifest.lock │ ├── OCMock │ │ ├── License.txt │ │ ├── README.md │ │ └── Source │ │ │ └── OCMock │ │ │ ├── NSInvocation+OCMAdditions.h │ │ │ ├── NSInvocation+OCMAdditions.m │ │ │ ├── NSMethodSignature+OCMAdditions.h │ │ │ ├── NSMethodSignature+OCMAdditions.m │ │ │ ├── NSNotificationCenter+OCMAdditions.h │ │ │ ├── NSNotificationCenter+OCMAdditions.m │ │ │ ├── NSObject+OCMAdditions.h │ │ │ ├── NSObject+OCMAdditions.m │ │ │ ├── NSValue+OCMAdditions.h │ │ │ ├── NSValue+OCMAdditions.m │ │ │ ├── OCClassMockObject.h │ │ │ ├── OCClassMockObject.m │ │ │ ├── OCMArg.h │ │ │ ├── OCMArg.m │ │ │ ├── OCMArgAction.h │ │ │ ├── OCMArgAction.m │ │ │ ├── OCMBlockArgCaller.h │ │ │ ├── OCMBlockArgCaller.m │ │ │ ├── OCMBlockCaller.h │ │ │ ├── OCMBlockCaller.m │ │ │ ├── OCMBoxedReturnValueProvider.h │ │ │ ├── OCMBoxedReturnValueProvider.m │ │ │ ├── OCMConstraint.h │ │ │ ├── OCMConstraint.m │ │ │ ├── OCMExceptionReturnValueProvider.h │ │ │ ├── OCMExceptionReturnValueProvider.m │ │ │ ├── OCMExpectationRecorder.h │ │ │ ├── OCMExpectationRecorder.m │ │ │ ├── OCMFunctions.h │ │ │ ├── OCMFunctions.m │ │ │ ├── OCMFunctionsPrivate.h │ │ │ ├── OCMIndirectReturnValueProvider.h │ │ │ ├── OCMIndirectReturnValueProvider.m │ │ │ ├── OCMInvocationExpectation.h │ │ │ ├── OCMInvocationExpectation.m │ │ │ ├── OCMInvocationMatcher.h │ │ │ ├── OCMInvocationMatcher.m │ │ │ ├── OCMInvocationStub.h │ │ │ ├── OCMInvocationStub.m │ │ │ ├── OCMLocation.h │ │ │ ├── OCMLocation.m │ │ │ ├── OCMMacroState.h │ │ │ ├── OCMMacroState.m │ │ │ ├── OCMNotificationPoster.h │ │ │ ├── OCMNotificationPoster.m │ │ │ ├── OCMObserverRecorder.h │ │ │ ├── OCMObserverRecorder.m │ │ │ ├── OCMPassByRefSetter.h │ │ │ ├── OCMPassByRefSetter.m │ │ │ ├── OCMRealObjectForwarder.h │ │ │ ├── OCMRealObjectForwarder.m │ │ │ ├── OCMRecorder.h │ │ │ ├── OCMRecorder.m │ │ │ ├── OCMReturnValueProvider.h │ │ │ ├── OCMReturnValueProvider.m │ │ │ ├── OCMStubRecorder.h │ │ │ ├── OCMStubRecorder.m │ │ │ ├── OCMVerifier.h │ │ │ ├── OCMVerifier.m │ │ │ ├── OCMock.h │ │ │ ├── OCMockObject.h │ │ │ ├── OCMockObject.m │ │ │ ├── OCObserverMockObject.h │ │ │ ├── OCObserverMockObject.m │ │ │ ├── OCPartialMockObject.h │ │ │ ├── OCPartialMockObject.m │ │ │ ├── OCProtocolMockObject.h │ │ │ └── OCProtocolMockObject.m │ ├── Pods.xcodeproj │ │ └── project.pbxproj │ └── Target Support Files │ │ ├── OCMock │ │ ├── Info.plist │ │ ├── OCMock-dummy.m │ │ ├── OCMock-prefix.pch │ │ ├── OCMock-umbrella.h │ │ ├── OCMock.modulemap │ │ └── OCMock.xcconfig │ │ ├── ObjectiveDropbox │ │ ├── Info.plist │ │ ├── ObjectiveDropbox-dummy.m │ │ ├── ObjectiveDropbox-prefix.pch │ │ ├── ObjectiveDropbox-umbrella.h │ │ ├── ObjectiveDropbox.modulemap │ │ ├── ObjectiveDropbox.xcconfig │ │ └── ResourceBundle-ObjectiveDropbox-Info.plist │ │ ├── Pods-ObjectiveDropbox_Example │ │ ├── Info.plist │ │ ├── Pods-ObjectiveDropbox_Example-acknowledgements.markdown │ │ ├── Pods-ObjectiveDropbox_Example-acknowledgements.plist │ │ ├── Pods-ObjectiveDropbox_Example-dummy.m │ │ ├── Pods-ObjectiveDropbox_Example-frameworks.sh │ │ ├── Pods-ObjectiveDropbox_Example-resources.sh │ │ ├── Pods-ObjectiveDropbox_Example-umbrella.h │ │ ├── Pods-ObjectiveDropbox_Example.debug.xcconfig │ │ ├── Pods-ObjectiveDropbox_Example.modulemap │ │ └── Pods-ObjectiveDropbox_Example.release.xcconfig │ │ └── Pods-ObjectiveDropbox_Tests │ │ ├── Info.plist │ │ ├── Pods-ObjectiveDropbox_Tests-acknowledgements.markdown │ │ ├── Pods-ObjectiveDropbox_Tests-acknowledgements.plist │ │ ├── Pods-ObjectiveDropbox_Tests-dummy.m │ │ ├── Pods-ObjectiveDropbox_Tests-frameworks.sh │ │ ├── Pods-ObjectiveDropbox_Tests-resources.sh │ │ ├── Pods-ObjectiveDropbox_Tests-umbrella.h │ │ ├── Pods-ObjectiveDropbox_Tests.debug.xcconfig │ │ ├── Pods-ObjectiveDropbox_Tests.modulemap │ │ └── Pods-ObjectiveDropbox_Tests.release.xcconfig └── Tests │ ├── DateToDropboxStringConverterTests.m │ ├── DropboxAccessLevelDictionaryParserTests.m │ ├── DropboxAccountTypeParserTests.m │ ├── DropboxAclUpdatePolicySerializerTests.m │ ├── DropboxAddFolderMemberArgDictionarySerializerTests.m │ ├── DropboxAddFolderMemberArgTests.m │ ├── DropboxAddMemberDictionarySerializerTests.m │ ├── DropboxAddMemberTests.m │ ├── DropboxBasicAccountDictionaryParserTests.m │ ├── DropboxCommitInfo+DictionarySerializerTests.m │ ├── DropboxCommitInfoTests.m │ ├── DropboxCreateFolderArgDictionarySerializerTests.m │ ├── DropboxCreateFolderArgTests.m │ ├── DropboxCreateSharedLinkSettingsArgDictionarySerializerTests.m │ ├── DropboxCreateSharedLinkWithSettingsArgTests.m │ ├── DropboxDeleteArgDictionarySerializerTests.m │ ├── DropboxDeleteArgTests.m │ ├── DropboxDimensionsDictionaryParserTests.m │ ├── DropboxDimensionsTests.m │ ├── DropboxDownloadArgDictionarySerializerTests.m │ ├── DropboxDownloadArgTests.m │ ├── DropboxDropboxAccessLevelDictionarySeriailzerTests.m │ ├── DropboxFileLinkMetadataDictionaryParserTests.m │ ├── DropboxFileMetadataDictionaryParserTests.m │ ├── DropboxFileSharingInfoDictionaryParserTests.m │ ├── DropboxFileSystemSharingInfoDictionaryParserTests.m │ ├── DropboxFolderActionSerializerTests.m │ ├── DropboxFolderMetadataDictionaryParserTests.m │ ├── DropboxFolderPermissionDictionaryParserTests.m │ ├── DropboxFolderPolicyDictionaryParserTests.m │ ├── DropboxFolderSharingInfoDictionaryParserTests.m │ ├── DropboxFullAccountDictionaryParserTests.m │ ├── DropboxFullTeamDictionaryParserTests.m │ ├── DropboxGetAccountArgDictionarySerializerTests.m │ ├── DropboxGetAccountArgTests.m │ ├── DropboxGetAccountBatchArgDictionarySerializerTests.m │ ├── DropboxGetAccountBatchArgTests.m │ ├── DropboxGetMetadataArgDictionarySerializerTests.m │ ├── DropboxGetMetadataArgTests.m │ ├── DropboxGetMetadataArgsDictionarySerializerTests.m │ ├── DropboxGetMetadataArgsTests.m │ ├── DropboxGetPreviewArgDictionarySerializerTests.m │ ├── DropboxGetPreviewArgTests.m │ ├── DropboxGetSharedLinkMetadataArgDictionarySerializerTests.m │ ├── DropboxGetSharedLinkMetadataArgTests.m │ ├── DropboxGetTemporaryLinkArgDictionarySerializerTests.m │ ├── DropboxGetTemporaryLinkArgTests.m │ ├── DropboxGetTemporaryLinkResultDictionaryParserTests.m │ ├── DropboxGetThumbnailArgDictionarySerializerTests.m │ ├── DropboxGetThumbnailArgTests.m │ ├── DropboxGpsCoordinatesDictionaryParserTests.m │ ├── DropboxGpsCoordinatesTests.m │ ├── DropboxGroupInfoDictionaryParserTests.m │ ├── DropboxGroupMembershipInfoDictionaryParserTests.m │ ├── DropboxGroupTypeParserTests.m │ ├── DropboxHttpHelperTests.m │ ├── DropboxIndividualSpaceAllocationDictionaryParserTests.m │ ├── DropboxInviteeInfoDictionaryParserTests.m │ ├── DropboxInviteeMembershipInfoDictionaryParserTests.m │ ├── DropboxJobStatusResultDictionaryParserTests.m │ ├── DropboxLaunchEmptyResultDictionaryParserTests.m │ ├── DropboxLinkPermissionsDictionaryParserTests.m │ ├── DropboxListFolderArgDictionarySerializerTests.m │ ├── DropboxListFolderArgTests.m │ ├── DropboxListFolderContinueArgDictionarySerializerTests.m │ ├── DropboxListFolderContinueArgTests.m │ ├── DropboxListFolderGetLatestCursorResultDictionaryParserTests.m │ ├── DropboxListFolderLongpollArgDictionarySerializerTests.m │ ├── DropboxListFolderLongpollArgTests.m │ ├── DropboxListFolderLongpollResultDictionaryParserTests.m │ ├── DropboxListFolderMembersArgsDictionarySerializerTests.m │ ├── DropboxListFolderMembersArgsTests.m │ ├── DropboxListFolderResultDictionaryParserTests.m │ ├── DropboxListFoldersArgsDictionarySerializerTests.m │ ├── DropboxListFoldersArgsTests.m │ ├── DropboxListFoldersContinueArgDictionarySerializerTests.m │ ├── DropboxListFoldersContinueArgTests.m │ ├── DropboxListFoldersResultDictionaryParserTests.m │ ├── DropboxListFolerMembersContinueArgDictionarySerializerTests.m │ ├── DropboxListRevisionsArgDictionarySerializerTests.m │ ├── DropboxListRevisionsArgTests.m │ ├── DropboxListRevisionsResultDictionaryParserTests.m │ ├── DropboxListSharedLinkResultDictionaryParserTests.m │ ├── DropboxListSharedLinksArgDictionarySerializerTests.m │ ├── DropboxListSharedLinksArgTests.m │ ├── DropboxMediaInfoDictionaryParserTests.m │ ├── DropboxMediaMetadataDictionaryParserTests.m │ ├── DropboxMemberActionParserTests.m │ ├── DropboxMemberActionSerializerTests.m │ ├── DropboxMemberPermissionDictionaryParserTests.m │ ├── DropboxMemberPolicySerializerTests.m │ ├── DropboxMemberSelectorDictionarySerializerTests.m │ ├── DropboxMemberSelectorTests.m │ ├── DropboxMetadataDictionaryParserTests.m │ ├── DropboxModifySharedLinkSettingsArgsDictionarySerializerTests.m │ ├── DropboxModifySharedLinkSettingsArgsTests.m │ ├── DropboxMountFolderArgDictionarySerializerTests.m │ ├── DropboxMountFolderArgTests.m │ ├── DropboxNSURLFileOperationsTests.m │ ├── DropboxNameDictionaryParserTests.m │ ├── DropboxPermissionDeniedReasonParserTests.m │ ├── DropboxPhotoMetadataDictionaryParserTests.m │ ├── DropboxPollArgDictionarySerializerTests.m │ ├── DropboxPollArgTests.m │ ├── DropboxRelinquishFolderMembershipArgTests.m │ ├── DropboxRelinquishFolderMembershipDictionarySerializerTests.m │ ├── DropboxRelocationArgDictionarySerializerTests.m │ ├── DropboxRelocationArgTests.m │ ├── DropboxRemoveFolderMemberArgDictionarySerializerTests.m │ ├── DropboxRemoveFolderMemberArgTests.m │ ├── DropboxRequestedVisibilityParserTests.m │ ├── DropboxResolvedVisibilityParserTests.m │ ├── DropboxRestoreArgDictionarySerializerTests.m │ ├── DropboxRestoreArgTests.m │ ├── DropboxRevokeSharedLinkArgDictionarySerializerTests.m │ ├── DropboxRevokeSharedLinkArgTests.m │ ├── DropboxRoutesTests.m │ ├── DropboxSearchArgDictionarySerializerTests.m │ ├── DropboxSearchArgTests.m │ ├── DropboxSearchMatchDictionaryParserTests.m │ ├── DropboxSearchMatchTypeParseManagerTests.m │ ├── DropboxSearchResultDictionaryParserTests.m │ ├── DropboxShareFolderArgDictionarySerializerTests.m │ ├── DropboxShareFolderArgTests.m │ ├── DropboxShareFolderJobStatusResultDictionaryParserTests.m │ ├── DropboxShareFolderLaunchDictionaryParserTests.m │ ├── DropboxShareFolderLaunchEnumParserTests.m │ ├── DropboxSharedFolderJoinPolicyParserTests.m │ ├── DropboxSharedFolderMemberPolicyParserTests.m │ ├── DropboxSharedFolderMembersDictionaryParserTests.m │ ├── DropboxSharedFolderMetadataDictionaryParserTests.m │ ├── DropboxSharedLinkAccessFailureReasonParserTests.m │ ├── DropboxSharedLinkCreatePolicyParserTests.m │ ├── DropboxSharedLinkMetadataDictionaryParserTests.m │ ├── DropboxSharedLinkMetadataParseManagerTests.m │ ├── DropboxSharedLinkPolicySerializerTests.m │ ├── DropboxSharedLinkSettingsDictionarySerializerTests.m │ ├── DropboxSharedLinkSettingsTests.m │ ├── DropboxSpaceAllocationDictionaryParserTests.m │ ├── DropboxSpaceUsageDictionaryParserTests.m │ ├── DropboxStringToDateConverterTests.m │ ├── DropboxTeamDictionaryParserTests.m │ ├── DropboxTeamMemberInfoDictionaryParserTests.m │ ├── DropboxTeamSharingPoliciesDictionaryParserTests.m │ ├── DropboxTeamSpaceAllocationDictionaryParserTests.m │ ├── DropboxThumbnailFormatToStringSerializerTests.m │ ├── DropboxThumbnailSizeToStringSerializerTests.m │ ├── DropboxTransferFolderArgDictionarySerializerTests.m │ ├── DropboxTransferFolderArgTests.m │ ├── DropboxUnmountFolderArgDictionarySerializerTests.m │ ├── DropboxUnmountFolderArgTests.m │ ├── DropboxUnshareFolderArgDictionarySerializerTests.m │ ├── DropboxUnshareFolderArgTests.m │ ├── DropboxUpdateFolderMemberArgDictionarySerializerTests.m │ ├── DropboxUpdateFolderMemberArgTests.m │ ├── DropboxUpdateFolderPolicyArgDictionarySerializerTests.m │ ├── DropboxUpdateFolderPolicyArgTests.m │ ├── DropboxUploadSessionAppendArgDictionarySerializerTests.m │ ├── DropboxUploadSessionAppendArgTests.m │ ├── DropboxUploadSessionCursorDictionarySerializerTests.m │ ├── DropboxUploadSessionCursorTests.m │ ├── DropboxUploadSessionFinishArgDictionarySerializerTests.m │ ├── DropboxUploadSessionFinishArgTests.m │ ├── DropboxUploadSessionStartArgDictionarySerializerTests.m │ ├── DropboxUploadSessionStartArgTests.m │ ├── DropboxUploadSessionStartResultDictionaryParserTests.m │ ├── DropboxUserInfoDictionaryParserTests.m │ ├── DropboxUserMembershipInfoDictionaryParserTests.m │ ├── DropboxVideoMetadataDictionaryParserTests.m │ ├── DropboxWriteModeDictionarySerializerTests.m │ ├── DropboxWriteModeTests.m │ ├── Tests-Info.plist │ ├── Tests-Prefix.pch │ └── en.lproj │ └── InfoPlist.strings ├── LICENSE ├── ObjectiveDropbox.podspec ├── Pod ├── Assets │ └── .gitkeep └── Classes │ ├── .gitkeep │ ├── Args │ ├── DropboxAddFolderMemberArg.h │ ├── DropboxAddFolderMemberArg.m │ ├── DropboxCreateFolderArg.h │ ├── DropboxCreateFolderArg.m │ ├── DropboxCreateSharedLinkWithSettingsArg.h │ ├── DropboxCreateSharedLinkWithSettingsArg.m │ ├── DropboxDeleteArg.h │ ├── DropboxDeleteArg.m │ ├── DropboxDownloadArg.h │ ├── DropboxDownloadArg.m │ ├── DropboxGetAccountArg.h │ ├── DropboxGetAccountArg.m │ ├── DropboxGetAccountBatchArg.h │ ├── DropboxGetAccountBatchArg.m │ ├── DropboxGetMetadataArg.h │ ├── DropboxGetMetadataArg.m │ ├── DropboxGetMetadataArgs.h │ ├── DropboxGetMetadataArgs.m │ ├── DropboxGetPreviewArg.h │ ├── DropboxGetPreviewArg.m │ ├── DropboxGetSharedLinkMetadataArg.h │ ├── DropboxGetSharedLinkMetadataArg.m │ ├── DropboxGetTemporaryLinkArg.h │ ├── DropboxGetTemporaryLinkArg.m │ ├── DropboxGetThumbnailArg.h │ ├── DropboxGetThumbnailArg.m │ ├── DropboxListFolderArg.h │ ├── DropboxListFolderArg.m │ ├── DropboxListFolderContinueArg.h │ ├── DropboxListFolderContinueArg.m │ ├── DropboxListFolderLongpollArg.h │ ├── DropboxListFolderLongpollArg.m │ ├── DropboxListFolderMembersArgs.h │ ├── DropboxListFolderMembersArgs.m │ ├── DropboxListFolderMembersContinueArg.h │ ├── DropboxListFolderMembersContinueArg.m │ ├── DropboxListFoldersArgs.h │ ├── DropboxListFoldersArgs.m │ ├── DropboxListFoldersContinueArg.h │ ├── DropboxListFoldersContinueArg.m │ ├── DropboxListRevisionsArg.h │ ├── DropboxListRevisionsArg.m │ ├── DropboxListSharedLinksArg.h │ ├── DropboxListSharedLinksArg.m │ ├── DropboxModifySharedLinkSettingsArgs.h │ ├── DropboxModifySharedLinkSettingsArgs.m │ ├── DropboxMountFolderArg.h │ ├── DropboxMountFolderArg.m │ ├── DropboxPollArg.h │ ├── DropboxPollArg.m │ ├── DropboxRelinquishFolderMembershipArg.h │ ├── DropboxRelinquishFolderMembershipArg.m │ ├── DropboxRelocationArg.h │ ├── DropboxRelocationArg.m │ ├── DropboxRemoveFolderMemberArg.h │ ├── DropboxRemoveFolderMemberArg.m │ ├── DropboxRestoreArg.h │ ├── DropboxRestoreArg.m │ ├── DropboxRevokeSharedLinkArg.h │ ├── DropboxRevokeSharedLinkArg.m │ ├── DropboxSearchArg.h │ ├── DropboxSearchArg.m │ ├── DropboxShareFolderArg.h │ ├── DropboxShareFolderArg.m │ ├── DropboxTransferFolderArg.h │ ├── DropboxTransferFolderArg.m │ ├── DropboxUnmountFolderArg.h │ ├── DropboxUnmountFolderArg.m │ ├── DropboxUnshareFolderArg.h │ ├── DropboxUnshareFolderArg.m │ ├── DropboxUpdateFolderMemberArg.h │ ├── DropboxUpdateFolderMemberArg.m │ ├── DropboxUpdateFolderPolicyArg.h │ ├── DropboxUpdateFolderPolicyArg.m │ ├── DropboxUploadSessionAppendArg.h │ ├── DropboxUploadSessionAppendArg.m │ ├── DropboxUploadSessionFinishArg.h │ ├── DropboxUploadSessionFinishArg.m │ ├── DropboxUploadSessionStartArg.h │ └── DropboxUploadSessionStartArg.m │ ├── Auth │ ├── DropboxAuthClient.h │ ├── DropboxAuthClient.m │ ├── DropboxAuthClientProtocol.h │ └── DropboxAuthDelegate.h │ ├── DropboxClient.h │ ├── DropboxClient.m │ ├── DropboxDefines.h │ ├── Entities │ ├── DropboxAccessLevel.h │ ├── DropboxAccountType.h │ ├── DropboxAclUpdatePolicy.h │ ├── DropboxAddMember.h │ ├── DropboxAddMember.m │ ├── DropboxBaseMembershipInfo.h │ ├── DropboxBaseMembershipInfo.m │ ├── DropboxBaseSpaceAllocation.h │ ├── DropboxBaseSpaceAllocation.m │ ├── DropboxBasicAccount.h │ ├── DropboxBasicAccount.m │ ├── DropboxCommitInfo.h │ ├── DropboxCommitInfo.m │ ├── DropboxDeletedMetadata.h │ ├── DropboxDeletedMetadata.m │ ├── DropboxDimensions.h │ ├── DropboxDimensions.m │ ├── DropboxFileLinkMetadata.h │ ├── DropboxFileLinkMetadata.m │ ├── DropboxFileMetadata.h │ ├── DropboxFileMetadata.m │ ├── DropboxFileSharingInfo.h │ ├── DropboxFileSharingInfo.m │ ├── DropboxFileSystemSharingInfo.h │ ├── DropboxFileSystemSharingInfo.m │ ├── DropboxFolderAction.h │ ├── DropboxFolderLinkMetadata.h │ ├── DropboxFolderLinkMetadata.m │ ├── DropboxFolderMetadata.h │ ├── DropboxFolderMetadata.m │ ├── DropboxFolderPermission.h │ ├── DropboxFolderPermission.m │ ├── DropboxFolderPolicy.h │ ├── DropboxFolderPolicy.m │ ├── DropboxFolderSharingInfo.h │ ├── DropboxFolderSharingInfo.m │ ├── DropboxFullAccount.h │ ├── DropboxFullAccount.m │ ├── DropboxFullTeam.h │ ├── DropboxFullTeam.m │ ├── DropboxGpsCoordinates.h │ ├── DropboxGpsCoordinates.m │ ├── DropboxGroupInfo.h │ ├── DropboxGroupInfo.m │ ├── DropboxGroupMembershipInfo.h │ ├── DropboxGroupMembershipInfo.m │ ├── DropboxGroupType.h │ ├── DropboxIndividualSpaceAllocation.h │ ├── DropboxIndividualSpaceAllocation.m │ ├── DropboxInviteeInfo.h │ ├── DropboxInviteeInfo.m │ ├── DropboxInviteeInfoEnum.h │ ├── DropboxInviteeMembershipInfo.h │ ├── DropboxInviteeMembershipInfo.m │ ├── DropboxLinkPermissions.h │ ├── DropboxLinkPermissions.m │ ├── DropboxMediaInfo.h │ ├── DropboxMediaInfo.m │ ├── DropboxMediaMetadata.h │ ├── DropboxMediaMetadata.m │ ├── DropboxMemberAction.h │ ├── DropboxMemberPermission.h │ ├── DropboxMemberPermission.m │ ├── DropboxMemberPolicy.h │ ├── DropboxMemberSelector.h │ ├── DropboxMemberSelector.m │ ├── DropboxMetadata.h │ ├── DropboxMetadata.m │ ├── DropboxName.h │ ├── DropboxName.m │ ├── DropboxPermissionDeniedReason.h │ ├── DropboxPhotoMetadata.h │ ├── DropboxPhotoMetadata.m │ ├── DropboxRequestedVisibility.h │ ├── DropboxResolvedVisibility.h │ ├── DropboxSearchMatch.h │ ├── DropboxSearchMatch.m │ ├── DropboxSearchMatchType.h │ ├── DropboxSearchMode.h │ ├── DropboxShareFolderLaunch.h │ ├── DropboxShareFolderLaunch.m │ ├── DropboxShareFolderLaunchEnum.h │ ├── DropboxSharedFolderJoinPolicy.h │ ├── DropboxSharedFolderMemberPolicy.h │ ├── DropboxSharedFolderMembers.h │ ├── DropboxSharedFolderMembers.m │ ├── DropboxSharedFolderMetadata.h │ ├── DropboxSharedFolderMetadata.m │ ├── DropboxSharedLinkAccessFailureReason.h │ ├── DropboxSharedLinkCreatePolicy.h │ ├── DropboxSharedLinkMetadata.h │ ├── DropboxSharedLinkMetadata.m │ ├── DropboxSharedLinkPolicy.h │ ├── DropboxSharedLinkSettings.h │ ├── DropboxSharedLinkSettings.m │ ├── DropboxSpaceAllocation.h │ ├── DropboxSpaceAllocation.m │ ├── DropboxSpaceAllocationEnum.h │ ├── DropboxSpaceUsage.h │ ├── DropboxSpaceUsage.m │ ├── DropboxTeam.h │ ├── DropboxTeam.m │ ├── DropboxTeamMemberInfo.h │ ├── DropboxTeamMemberInfo.m │ ├── DropboxTeamSharingPolicies.h │ ├── DropboxTeamSharingPolicies.m │ ├── DropboxTeamSpaceAllocation.h │ ├── DropboxTeamSpaceAllocation.m │ ├── DropboxThumbnailFormat.h │ ├── DropboxThumbnailSize.h │ ├── DropboxUploadSessionCursor.h │ ├── DropboxUploadSessionCursor.m │ ├── DropboxUserInfo.h │ ├── DropboxUserInfo.m │ ├── DropboxUserMembershipInfo.h │ ├── DropboxUserMembershipInfo.m │ ├── DropboxVideoMetadata.h │ ├── DropboxVideoMetadata.m │ ├── DropboxWriteMode.h │ ├── DropboxWriteMode.m │ └── Errors │ │ ├── DropboxError.h │ │ ├── DropboxError.m │ │ ├── DropboxErrorBadInputParameter.h │ │ ├── DropboxErrorBadInputParameter.m │ │ ├── DropboxErrorBadOrExpiredToken.h │ │ ├── DropboxErrorBadOrExpiredToken.m │ │ ├── DropboxErrorDropboxServers.h │ │ ├── DropboxErrorDropboxServers.m │ │ ├── DropboxErrorEndpointSpecific.h │ │ ├── DropboxErrorEndpointSpecific.m │ │ ├── DropboxErrorTooManyRequests.h │ │ ├── DropboxErrorTooManyRequests.m │ │ ├── DropboxErrors.h │ │ ├── ObjectiveDropboxError.h │ │ └── ObjectiveDropboxError.m │ ├── Helper categories │ ├── NSArray+ArrayOfDictionaries.h │ ├── NSArray+ArrayOfDictionaries.m │ ├── NSArray+ArrayOfStrings.h │ ├── NSArray+ArrayOfStrings.m │ ├── NSDate+DateToDropboxString.h │ ├── NSDate+DateToDropboxString.m │ ├── NSObject+GetTopMostViewController.h │ ├── NSObject+GetTopMostViewController.m │ ├── NSString+DropboxStringToDate.h │ ├── NSString+DropboxStringToDate.m │ ├── NSString+Helpers.h │ ├── NSString+Helpers.m │ ├── NSURL+FileOperations.h │ └── NSURL+FileOperations.m │ ├── Http │ ├── DropboxDownloadTask.h │ ├── DropboxDownloadTask.m │ ├── DropboxDownloadTaskDelegate.h │ ├── DropboxDownloadTaskStorage.h │ ├── DropboxDownloadTaskStorage.m │ ├── DropboxHttpHelper+PrivateMethods.h │ ├── DropboxHttpHelper.h │ ├── DropboxHttpHelper.m │ ├── DropboxUploadTask.h │ ├── DropboxUploadTask.m │ ├── DropboxUploadTaskStorage.h │ ├── DropboxUploadTaskStorage.m │ ├── DropboxUrlSessionDelegate.h │ ├── DropboxUrlSessionDelegate.m │ ├── DropboxUrlSessionDelegateProtocol.h │ └── DropboxUrlSessionHandlers.h │ ├── Parsers │ ├── DictionaryParseHelper.h │ ├── DictionaryParseHelper.m │ ├── DictionaryParseManager.h │ ├── DictionaryParser.h │ ├── DropboxAccessLevelDictionaryParser.h │ ├── DropboxAccessLevelDictionaryParser.m │ ├── DropboxAccountTypeParser.h │ ├── DropboxAccountTypeParser.m │ ├── DropboxAclUpdatePolicyParser.h │ ├── DropboxAclUpdatePolicyParser.m │ ├── DropboxBaseMembershipInfo+DictionaryParser.h │ ├── DropboxBaseMembershipInfo+DictionaryParser.m │ ├── DropboxBaseSpaceAllocation+DictionaryParser.h │ ├── DropboxBaseSpaceAllocation+DictionaryParser.m │ ├── DropboxBasicAccount+DictionaryParser.h │ ├── DropboxBasicAccount+DictionaryParser.m │ ├── DropboxDeletedMetadata+DictionaryParser.h │ ├── DropboxDeletedMetadata+DictionaryParser.m │ ├── DropboxDimensions+DictionaryParser.h │ ├── DropboxDimensions+DictionaryParser.m │ ├── DropboxFileLinkMetadata+DictionaryParser.h │ ├── DropboxFileLinkMetadata+DictionaryParser.m │ ├── DropboxFileMetadata+DictionaryParser.h │ ├── DropboxFileMetadata+DictionaryParser.m │ ├── DropboxFileSharingInfo+DictionaryParser.h │ ├── DropboxFileSharingInfo+DictionaryParser.m │ ├── DropboxFileSystemSharingInfo+DictionaryParser.h │ ├── DropboxFileSystemSharingInfo+DictionaryParser.m │ ├── DropboxFolderActionParser.h │ ├── DropboxFolderActionParser.m │ ├── DropboxFolderLinkMetadata+DictionaryParser.h │ ├── DropboxFolderLinkMetadata+DictionaryParser.m │ ├── DropboxFolderMetadata+DictionaryParser.h │ ├── DropboxFolderMetadata+DictionaryParser.m │ ├── DropboxFolderPermission+DictionaryParser.h │ ├── DropboxFolderPermission+DictionaryParser.m │ ├── DropboxFolderPolicy+DictionaryParser.h │ ├── DropboxFolderPolicy+DictionaryParser.m │ ├── DropboxFolderSharingInfo+DictionaryParser.h │ ├── DropboxFolderSharingInfo+DictionaryParser.m │ ├── DropboxFullAccount+DictionaryParser.h │ ├── DropboxFullAccount+DictionaryParser.m │ ├── DropboxFullTeam+DictionaryParser.h │ ├── DropboxFullTeam+DictionaryParser.m │ ├── DropboxGetTemporaryLinkResult+DictionaryParser.h │ ├── DropboxGetTemporaryLinkResult+DictionaryParser.m │ ├── DropboxGpsCoordinates+DictionaryParser.h │ ├── DropboxGpsCoordinates+DictionaryParser.m │ ├── DropboxGroupInfo+DictionaryParser.h │ ├── DropboxGroupInfo+DictionaryParser.m │ ├── DropboxGroupMembershipInfo+DictionaryParser.h │ ├── DropboxGroupMembershipInfo+DictionaryParser.m │ ├── DropboxGroupTypeParser.h │ ├── DropboxGroupTypeParser.m │ ├── DropboxIndividualSpaceAllocation+DictionaryParser.h │ ├── DropboxIndividualSpaceAllocation+DictionaryParser.m │ ├── DropboxInviteeInfo+DictionaryParser.h │ ├── DropboxInviteeInfo+DictionaryParser.m │ ├── DropboxInviteeInfoEnumParser.h │ ├── DropboxInviteeInfoEnumParser.m │ ├── DropboxInviteeMembershipInfo+DictionaryParser.h │ ├── DropboxInviteeMembershipInfo+DictionaryParser.m │ ├── DropboxJobStatusResult+DictionaryParser.h │ ├── DropboxJobStatusResult+DictionaryParser.m │ ├── DropboxLaunchEmptyResult+DictionaryParser.h │ ├── DropboxLaunchEmptyResult+DictionaryParser.m │ ├── DropboxLaunchEmptyResultEnumParser.h │ ├── DropboxLaunchEmptyResultEnumParser.m │ ├── DropboxLinkPermissions+DictionaryParser.h │ ├── DropboxLinkPermissions+DictionaryParser.m │ ├── DropboxListFolderGetLatestCursorResult+DictionaryParser.h │ ├── DropboxListFolderGetLatestCursorResult+DictionaryParser.m │ ├── DropboxListFolderLongpollResult+DictionaryParser.h │ ├── DropboxListFolderLongpollResult+DictionaryParser.m │ ├── DropboxListFolderResult+DictionaryParser.h │ ├── DropboxListFolderResult+DictionaryParser.m │ ├── DropboxListFoldersResult+DictionaryParser.h │ ├── DropboxListFoldersResult+DictionaryParser.m │ ├── DropboxListRevisionsResult+DictionaryParser.h │ ├── DropboxListRevisionsResult+DictionaryParser.m │ ├── DropboxListSharedLinksResult+DictionaryParser.h │ ├── DropboxListSharedLinksResult+DictionaryParser.m │ ├── DropboxMediaInfo+DictionaryParser.h │ ├── DropboxMediaInfo+DictionaryParser.m │ ├── DropboxMediaMetadata+DictionaryParser.h │ ├── DropboxMediaMetadata+DictionaryParser.m │ ├── DropboxMediaMetadataParseManager.h │ ├── DropboxMediaMetadataParseManager.m │ ├── DropboxMemberActionParser.h │ ├── DropboxMemberActionParser.m │ ├── DropboxMemberPermission+DictionaryParser.h │ ├── DropboxMemberPermission+DictionaryParser.m │ ├── DropboxMemberPolicyParser.h │ ├── DropboxMemberPolicyParser.m │ ├── DropboxMetadata+DictionaryParser.h │ ├── DropboxMetadata+DictionaryParser.m │ ├── DropboxMetadataParseManager.h │ ├── DropboxMetadataParseManager.m │ ├── DropboxName+DictionaryParser.h │ ├── DropboxName+DictionaryParser.m │ ├── DropboxPermissionDeniedReasonParser.h │ ├── DropboxPermissionDeniedReasonParser.m │ ├── DropboxPhotoMetadata+DictionaryParser.h │ ├── DropboxPhotoMetadata+DictionaryParser.m │ ├── DropboxRequestedVisibilityParser.h │ ├── DropboxRequestedVisibilityParser.m │ ├── DropboxResolvedVisibilityParser.h │ ├── DropboxResolvedVisibilityParser.m │ ├── DropboxSearchMatch+DictionaryParser.h │ ├── DropboxSearchMatch+DictionaryParser.m │ ├── DropboxSearchMatchTypeParseManager.h │ ├── DropboxSearchMatchTypeParseManager.m │ ├── DropboxSearchResult+DictionaryParser.h │ ├── DropboxSearchResult+DictionaryParser.m │ ├── DropboxShareFolderJobStatusResult+DictionaryParser.h │ ├── DropboxShareFolderJobStatusResult+DictionaryParser.m │ ├── DropboxShareFolderLaunch+DictionaryParser.h │ ├── DropboxShareFolderLaunch+DictionaryParser.m │ ├── DropboxShareFolderLaunchEnumParser.h │ ├── DropboxShareFolderLaunchEnumParser.m │ ├── DropboxSharedFolderJoinPolicyParser.h │ ├── DropboxSharedFolderJoinPolicyParser.m │ ├── DropboxSharedFolderMemberPolicyParser.h │ ├── DropboxSharedFolderMemberPolicyParser.m │ ├── DropboxSharedFolderMembers+DictionaryParser.h │ ├── DropboxSharedFolderMembers+DictionaryParser.m │ ├── DropboxSharedFolderMetadata+DictionaryParser.h │ ├── DropboxSharedFolderMetadata+DictionaryParser.m │ ├── DropboxSharedLinkAccessFailureReasonParser.h │ ├── DropboxSharedLinkAccessFailureReasonParser.m │ ├── DropboxSharedLinkCreatePolicyParser.h │ ├── DropboxSharedLinkCreatePolicyParser.m │ ├── DropboxSharedLinkMetadata+DictionaryParser.h │ ├── DropboxSharedLinkMetadata+DictionaryParser.m │ ├── DropboxSharedLinkMetadataParseManager.h │ ├── DropboxSharedLinkMetadataParseManager.m │ ├── DropboxSharedLinkPolicyParser.h │ ├── DropboxSharedLinkPolicyParser.m │ ├── DropboxSpaceAllocation+DictionaryParser.h │ ├── DropboxSpaceAllocation+DictionaryParser.m │ ├── DropboxSpaceAllocationEnumParser.h │ ├── DropboxSpaceAllocationEnumParser.m │ ├── DropboxSpaceUsage+DictionaryParser.h │ ├── DropboxSpaceUsage+DictionaryParser.m │ ├── DropboxTeam+DictionaryParser.h │ ├── DropboxTeam+DictionaryParser.m │ ├── DropboxTeamMemberInfo+DictionaryParser.h │ ├── DropboxTeamMemberInfo+DictionaryParser.m │ ├── DropboxTeamSharingPolicies+DictionaryParser.h │ ├── DropboxTeamSharingPolicies+DictionaryParser.m │ ├── DropboxTeamSpaceAllocation+DictionaryParser.h │ ├── DropboxTeamSpaceAllocation+DictionaryParser.m │ ├── DropboxUploadSessionStartResult+DictionaryParser.h │ ├── DropboxUploadSessionStartResult+DictionaryParser.m │ ├── DropboxUserInfo+DictionaryParser.h │ ├── DropboxUserInfo+DictionaryParser.m │ ├── DropboxUserMembershipInfo+DictionaryParser.h │ ├── DropboxUserMembershipInfo+DictionaryParser.m │ ├── DropboxVideoMetadata+DictionaryParser.h │ └── DropboxVideoMetadata+DictionaryParser.m │ ├── Results │ ├── DropboxGetTemporaryLinkResult.h │ ├── DropboxGetTemporaryLinkResult.m │ ├── DropboxJobStatusResult.h │ ├── DropboxJobStatusResult.m │ ├── DropboxLaunchEmptyResult.h │ ├── DropboxLaunchEmptyResult.m │ ├── DropboxLaunchEmptyResultEnum.h │ ├── DropboxListFolderGetLatestCursorResult.h │ ├── DropboxListFolderGetLatestCursorResult.m │ ├── DropboxListFolderLongpollResult.h │ ├── DropboxListFolderLongpollResult.m │ ├── DropboxListFolderResult.h │ ├── DropboxListFolderResult.m │ ├── DropboxListFoldersResult.h │ ├── DropboxListFoldersResult.m │ ├── DropboxListRevisionsResult.h │ ├── DropboxListRevisionsResult.m │ ├── DropboxListSharedLinksResult.h │ ├── DropboxListSharedLinksResult.m │ ├── DropboxSearchResult.h │ ├── DropboxSearchResult.m │ ├── DropboxShareFolderJobStatusResult.h │ ├── DropboxShareFolderJobStatusResult.m │ ├── DropboxUploadSessionStartResult.h │ └── DropboxUploadSessionStartResult.m │ ├── Routes │ ├── DropboxAuthRoutes.h │ ├── DropboxAuthRoutes.m │ ├── DropboxFilesRoutes.h │ ├── DropboxFilesRoutes.m │ ├── DropboxRoutes.h │ ├── DropboxRoutes.m │ ├── DropboxRoutesDelegate.h │ ├── DropboxSharingRoutes.h │ ├── DropboxSharingRoutes.m │ ├── DropboxUsersRoutes.h │ └── DropboxUsersRoutes.m │ ├── SSKeychain │ ├── SSKeychain.h │ ├── SSKeychain.m │ ├── SSKeychainQuery.h │ └── SSKeychainQuery.m │ ├── Serializers │ ├── DictionarySerializer.h │ ├── DropboxAccessLevelDictionarySerializer.h │ ├── DropboxAccessLevelDictionarySerializer.m │ ├── DropboxAclUpdatePolicySerializer.h │ ├── DropboxAclUpdatePolicySerializer.m │ ├── DropboxAddFolderMemberArg+DictionarySerializer.h │ ├── DropboxAddFolderMemberArg+DictionarySerializer.m │ ├── DropboxAddMember+DictionarySerializer.h │ ├── DropboxAddMember+DictionarySerializer.m │ ├── DropboxCommitInfo+DictionarySerializer.h │ ├── DropboxCommitInfo+DictionarySerializer.m │ ├── DropboxCreateFolderArg+DictionarySerializer.h │ ├── DropboxCreateFolderArg+DictionarySerializer.m │ ├── DropboxCreateSharedLinkWithSettingsArg+DictionarySerializer.h │ ├── DropboxCreateSharedLinkWithSettingsArg+DictionarySerializer.m │ ├── DropboxDeleteArg+DictionarySerializer.h │ ├── DropboxDeleteArg+DictionarySerializer.m │ ├── DropboxDownloadArg+DictionarySerializer.h │ ├── DropboxDownloadArg+DictionarySerializer.m │ ├── DropboxFolderActionSerializer.h │ ├── DropboxFolderActionSerializer.m │ ├── DropboxGetAccountArg+DictionarySerializer.h │ ├── DropboxGetAccountArg+DictionarySerializer.m │ ├── DropboxGetAccountBatchArg+DictionarySerializer.h │ ├── DropboxGetAccountBatchArg+DictionarySerializer.m │ ├── DropboxGetMetadataArg+DictionarySerializer.h │ ├── DropboxGetMetadataArg+DictionarySerializer.m │ ├── DropboxGetMetadataArgs+DictionarySerializer.h │ ├── DropboxGetMetadataArgs+DictionarySerializer.m │ ├── DropboxGetPreviewArg+DictionarySerializer.h │ ├── DropboxGetPreviewArg+DictionarySerializer.m │ ├── DropboxGetSharedLinkMetadataArg+DictionarySerializer.h │ ├── DropboxGetSharedLinkMetadataArg+DictionarySerializer.m │ ├── DropboxGetTemporaryLinkArg+DictionarySerializer.h │ ├── DropboxGetTemporaryLinkArg+DictionarySerializer.m │ ├── DropboxGetThumbnailArg+DictionarySerializer.h │ ├── DropboxGetThumbnailArg+DictionarySerializer.m │ ├── DropboxListFolderArg+DictionarySerializer.h │ ├── DropboxListFolderArg+DictionarySerializer.m │ ├── DropboxListFolderContinueArg+DictionarySerializer.h │ ├── DropboxListFolderContinueArg+DictionarySerializer.m │ ├── DropboxListFolderLongpollArg+DictionarySerializer.h │ ├── DropboxListFolderLongpollArg+DictionarySerializer.m │ ├── DropboxListFolderMembersArgs+DictionarySerializer.h │ ├── DropboxListFolderMembersArgs+DictionarySerializer.m │ ├── DropboxListFolderMembersContinueArg+DictionarySerializer.h │ ├── DropboxListFolderMembersContinueArg+DictionarySerializer.m │ ├── DropboxListFoldersArgs+DictionarySerializer.h │ ├── DropboxListFoldersArgs+DictionarySerializer.m │ ├── DropboxListFoldersContinueArg+DictionarySerializer.h │ ├── DropboxListFoldersContinueArg+DictionarySerializer.m │ ├── DropboxListRevisionsArg+DictionarySerializer.h │ ├── DropboxListRevisionsArg+DictionarySerializer.m │ ├── DropboxListSharedLinksArg+DictionarySerializer.h │ ├── DropboxListSharedLinksArg+DictionarySerializer.m │ ├── DropboxMemberActionSerializer.h │ ├── DropboxMemberActionSerializer.m │ ├── DropboxMemberPolicySerializer.h │ ├── DropboxMemberPolicySerializer.m │ ├── DropboxMemberSelector+DictionarySerializer.h │ ├── DropboxMemberSelector+DictionarySerializer.m │ ├── DropboxModifySharedLinkSettingsArgs+DictionarySerializer.h │ ├── DropboxModifySharedLinkSettingsArgs+DictionarySerializer.m │ ├── DropboxMountFolderArg+DictionarySerializer.h │ ├── DropboxMountFolderArg+DictionarySerializer.m │ ├── DropboxPollArg+DictionarySerializer.h │ ├── DropboxPollArg+DictionarySerializer.m │ ├── DropboxRelinquishFolderMembershipArg+DictionarySerializer.h │ ├── DropboxRelinquishFolderMembershipArg+DictionarySerializer.m │ ├── DropboxRelocationArg+DictionarySerializer.h │ ├── DropboxRelocationArg+DictionarySerializer.m │ ├── DropboxRemoveFolderMemberArg+DictionarySerializer.h │ ├── DropboxRemoveFolderMemberArg+DictionarySerializer.m │ ├── DropboxRequestedVisibilityStringSerializer.h │ ├── DropboxRequestedVisibilityStringSerializer.m │ ├── DropboxRestoreArg+DictionarySerializer.h │ ├── DropboxRestoreArg+DictionarySerializer.m │ ├── DropboxRevokeSharedLinkArg+DictionarySerializer.h │ ├── DropboxRevokeSharedLinkArg+DictionarySerializer.m │ ├── DropboxSearchArg+DictionarySerializer.h │ ├── DropboxSearchArg+DictionarySerializer.m │ ├── DropboxSearchModeStringSerializer.h │ ├── DropboxSearchModeStringSerializer.m │ ├── DropboxShareFolderArg+DictionarySerializer.h │ ├── DropboxShareFolderArg+DictionarySerializer.m │ ├── DropboxSharedLinkPolicySerializer.h │ ├── DropboxSharedLinkPolicySerializer.m │ ├── DropboxSharedLinkSettings+DictionarySerializer.h │ ├── DropboxSharedLinkSettings+DictionarySerializer.m │ ├── DropboxThumbnailFormatToStringSerializer.h │ ├── DropboxThumbnailFormatToStringSerializer.m │ ├── DropboxThumbnailSizeToStringSerializer.h │ ├── DropboxThumbnailSizeToStringSerializer.m │ ├── DropboxTransferFolderArg+DictionarySerializer.h │ ├── DropboxTransferFolderArg+DictionarySerializer.m │ ├── DropboxUnmountFolderArg+DictionarySerializer.h │ ├── DropboxUnmountFolderArg+DictionarySerializer.m │ ├── DropboxUnshareFolderArg+DictionarySerializer.h │ ├── DropboxUnshareFolderArg+DictionarySerializer.m │ ├── DropboxUpdateFolderMemberArg+DictionarySerializer.h │ ├── DropboxUpdateFolderMemberArg+DictionarySerializer.m │ ├── DropboxUpdateFolderPolicyArg+DictionarySerializer.h │ ├── DropboxUpdateFolderPolicyArg+DictionarySerializer.m │ ├── DropboxUploadSessionAppendArg+DictionarySerializer.h │ ├── DropboxUploadSessionAppendArg+DictionarySerializer.m │ ├── DropboxUploadSessionCursor+DictionarySerializer.h │ ├── DropboxUploadSessionCursor+DictionarySerializer.m │ ├── DropboxUploadSessionFinishArg+DictionarySerializer.h │ ├── DropboxUploadSessionFinishArg+DictionarySerializer.m │ ├── DropboxUploadSessionStartArg+DictionarySerializer.h │ ├── DropboxUploadSessionStartArg+DictionarySerializer.m │ ├── DropboxWriteMode+DictionarySerializer.h │ ├── DropboxWriteMode+DictionarySerializer.m │ └── EnumToStringSerializer.h │ └── ViewController │ ├── DropboxAuthViewController.h │ ├── DropboxAuthViewController.m │ └── DropboxAuthViewControllerProtocol.h ├── README.md └── _Pods.xcodeproj /.travis.yml: -------------------------------------------------------------------------------- 1 | # references: 2 | # * http://www.objc.io/issue-6/travis-ci.html 3 | # * https://github.com/supermarin/xcpretty#usage 4 | 5 | language: objective-c 6 | # cache: cocoapods 7 | # podfile: Example/Podfile 8 | # before_install: 9 | # - gem install cocoapods # Since Travis is not always on latest version 10 | # - pod install --project-directory=Example 11 | script: 12 | - set -o pipefail && xcodebuild test -workspace Example/ObjectiveDropbox.xcworkspace -scheme ObjectiveDropbox-Example -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO | xcpretty 13 | - pod lib lint 14 | -------------------------------------------------------------------------------- /Example/ObjectiveDropbox.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Example/ObjectiveDropbox.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Example/ObjectiveDropbox/DropboxAppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxAppDelegate.h 3 | // ObjectiveDropbox 4 | // 5 | // Created by Mikhail Motyzhenkov on 04/13/2016. 6 | // Copyright (c) 2016 Mikhail Motyzhenkov. All rights reserved. 7 | // 8 | 9 | @import UIKit; 10 | 11 | @interface DropboxAppDelegate : UIResponder 12 | 13 | @property (strong, nonatomic) UIWindow *window; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /Example/ObjectiveDropbox/DropboxViewModel.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxViewModel.h 3 | // ObjectiveDropbox 4 | // 5 | // Created by Михаил Мотыженков on 28.04.16. 6 | // Copyright © 2016 Mikhail Motyzhenkov. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "DropboxViewModelProtocol.h" 11 | #import "DropboxClient.h" 12 | 13 | @interface DropboxViewModel : NSObject 14 | 15 | - (void)startTesting; 16 | 17 | @property (nullable, weak) id delegate; 18 | @property (nonatomic, nonnull) DropboxClient *dropbox; 19 | 20 | @end 21 | -------------------------------------------------------------------------------- /Example/ObjectiveDropbox/Images.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /Example/ObjectiveDropbox/ObjectiveDropbox-Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header 3 | // 4 | // The contents of this file are implicitly included at the beginning of every source file. 5 | // 6 | 7 | #import 8 | 9 | #ifndef __IPHONE_5_0 10 | #warning "This project uses features only available in iOS SDK 5.0 and later." 11 | #endif 12 | 13 | #ifdef __OBJC__ 14 | @import UIKit; 15 | @import Foundation; 16 | #endif 17 | -------------------------------------------------------------------------------- /Example/ObjectiveDropbox/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /Example/ObjectiveDropbox/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // ObjectiveDropbox 4 | // 5 | // Created by Mikhail Motyzhenkov on 04/13/2016. 6 | // Copyright (c) 2016 Mikhail Motyzhenkov. All rights reserved. 7 | // 8 | 9 | @import UIKit; 10 | #import "DropboxAppDelegate.h" 11 | 12 | int main(int argc, char * argv[]) 13 | { 14 | @autoreleasepool { 15 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([DropboxAppDelegate class])); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Example/ObjectiveDropbox/Картинка.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/live-sound/ObjectiveDropbox/dc7bcf39929754457dfdb7bf4fbfbf20f834ae69/Example/ObjectiveDropbox/Картинка.jpg -------------------------------------------------------------------------------- /Example/Podfile: -------------------------------------------------------------------------------- 1 | source 'https://github.com/CocoaPods/Specs.git' 2 | use_frameworks! 3 | 4 | target 'ObjectiveDropbox_Example' do 5 | pod 'ObjectiveDropbox', :path => '../' 6 | end 7 | 8 | target 'ObjectiveDropbox_Tests' do 9 | pod 'OCMock' 10 | pod 'ObjectiveDropbox', :path => '../' 11 | end 12 | -------------------------------------------------------------------------------- /Example/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - ObjectiveDropbox (1.0.0) 3 | - OCMock (3.3) 4 | 5 | DEPENDENCIES: 6 | - ObjectiveDropbox (from `../`) 7 | - OCMock 8 | 9 | EXTERNAL SOURCES: 10 | ObjectiveDropbox: 11 | :path: ../ 12 | 13 | SPEC CHECKSUMS: 14 | ObjectiveDropbox: 67f70cad5f522e31deb8f9a43393af3da476aa97 15 | OCMock: d68685bde31f69cb61d518dcb39269080c78b5ed 16 | 17 | PODFILE CHECKSUM: d16ea92df6dc2a2232a616f17fcebb252b741c40 18 | 19 | COCOAPODS: 1.0.0 20 | -------------------------------------------------------------------------------- /Example/Pods/Manifest.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - ObjectiveDropbox (1.0.0) 3 | - OCMock (3.3) 4 | 5 | DEPENDENCIES: 6 | - ObjectiveDropbox (from `../`) 7 | - OCMock 8 | 9 | EXTERNAL SOURCES: 10 | ObjectiveDropbox: 11 | :path: ../ 12 | 13 | SPEC CHECKSUMS: 14 | ObjectiveDropbox: 67f70cad5f522e31deb8f9a43393af3da476aa97 15 | OCMock: d68685bde31f69cb61d518dcb39269080c78b5ed 16 | 17 | PODFILE CHECKSUM: d16ea92df6dc2a2232a616f17fcebb252b741c40 18 | 19 | COCOAPODS: 1.0.0 20 | -------------------------------------------------------------------------------- /Example/Pods/OCMock/README.md: -------------------------------------------------------------------------------- 1 | OCMock 2 | ====== 3 | 4 | OCMock is an Objective-C implementation of mock objects. 5 | 6 | For downloads, documentation, and support please visit [ocmock.org][]. 7 | 8 | [![Build Status](https://travis-ci.org/erikdoe/ocmock.svg?branch=master)](https://travis-ci.org/erikdoe/ocmock) 9 | 10 | [ocmock.org]: http://ocmock.org/ 11 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/OCMock/OCMock-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_OCMock : NSObject 3 | @end 4 | @implementation PodsDummy_OCMock 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/OCMock/OCMock-prefix.pch: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #endif 4 | 5 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/OCMock/OCMock-umbrella.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | #import "OCMock.h" 4 | #import "OCMockObject.h" 5 | #import "OCMArg.h" 6 | #import "OCMConstraint.h" 7 | #import "OCMLocation.h" 8 | #import "OCMMacroState.h" 9 | #import "OCMRecorder.h" 10 | #import "OCMStubRecorder.h" 11 | #import "NSNotificationCenter+OCMAdditions.h" 12 | #import "OCMFunctions.h" 13 | 14 | FOUNDATION_EXPORT double OCMockVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char OCMockVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/OCMock/OCMock.modulemap: -------------------------------------------------------------------------------- 1 | framework module OCMock { 2 | umbrella header "OCMock-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/OCMock/OCMock.xcconfig: -------------------------------------------------------------------------------- 1 | CONFIGURATION_BUILD_DIR = $PODS_CONFIGURATION_BUILD_DIR/OCMock 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Public" 4 | PODS_BUILD_DIR = $BUILD_DIR 5 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 6 | PODS_ROOT = ${SRCROOT} 7 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 8 | SKIP_INSTALL = YES 9 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/ObjectiveDropbox/ObjectiveDropbox-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_ObjectiveDropbox : NSObject 3 | @end 4 | @implementation PodsDummy_ObjectiveDropbox 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/ObjectiveDropbox/ObjectiveDropbox-prefix.pch: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #endif 4 | 5 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/ObjectiveDropbox/ObjectiveDropbox.modulemap: -------------------------------------------------------------------------------- 1 | framework module ObjectiveDropbox { 2 | umbrella header "ObjectiveDropbox-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/ObjectiveDropbox/ObjectiveDropbox.xcconfig: -------------------------------------------------------------------------------- 1 | CONFIGURATION_BUILD_DIR = $PODS_CONFIGURATION_BUILD_DIR/ObjectiveDropbox 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Public" 4 | OTHER_LDFLAGS = -framework "UIKit" -framework "WebKit" 5 | PODS_BUILD_DIR = $BUILD_DIR 6 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_ROOT = ${SRCROOT} 8 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 9 | SKIP_INSTALL = YES 10 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-ObjectiveDropbox_Example/Pods-ObjectiveDropbox_Example-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_ObjectiveDropbox_Example : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_ObjectiveDropbox_Example 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-ObjectiveDropbox_Example/Pods-ObjectiveDropbox_Example-umbrella.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | 4 | FOUNDATION_EXPORT double Pods_ObjectiveDropbox_ExampleVersionNumber; 5 | FOUNDATION_EXPORT const unsigned char Pods_ObjectiveDropbox_ExampleVersionString[]; 6 | 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-ObjectiveDropbox_Example/Pods-ObjectiveDropbox_Example.debug.xcconfig: -------------------------------------------------------------------------------- 1 | FRAMEWORK_SEARCH_PATHS = $(inherited) "$PODS_CONFIGURATION_BUILD_DIR/ObjectiveDropbox" 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 4 | OTHER_CFLAGS = $(inherited) -iquote "$PODS_CONFIGURATION_BUILD_DIR/ObjectiveDropbox/ObjectiveDropbox.framework/Headers" 5 | OTHER_LDFLAGS = $(inherited) -framework "ObjectiveDropbox" 6 | PODS_BUILD_DIR = $BUILD_DIR 7 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 8 | PODS_ROOT = ${SRCROOT}/Pods 9 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-ObjectiveDropbox_Example/Pods-ObjectiveDropbox_Example.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_ObjectiveDropbox_Example { 2 | umbrella header "Pods-ObjectiveDropbox_Example-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-ObjectiveDropbox_Example/Pods-ObjectiveDropbox_Example.release.xcconfig: -------------------------------------------------------------------------------- 1 | FRAMEWORK_SEARCH_PATHS = $(inherited) "$PODS_CONFIGURATION_BUILD_DIR/ObjectiveDropbox" 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 4 | OTHER_CFLAGS = $(inherited) -iquote "$PODS_CONFIGURATION_BUILD_DIR/ObjectiveDropbox/ObjectiveDropbox.framework/Headers" 5 | OTHER_LDFLAGS = $(inherited) -framework "ObjectiveDropbox" 6 | PODS_BUILD_DIR = $BUILD_DIR 7 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 8 | PODS_ROOT = ${SRCROOT}/Pods 9 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-ObjectiveDropbox_Tests/Pods-ObjectiveDropbox_Tests-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_ObjectiveDropbox_Tests : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_ObjectiveDropbox_Tests 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-ObjectiveDropbox_Tests/Pods-ObjectiveDropbox_Tests-umbrella.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | 4 | FOUNDATION_EXPORT double Pods_ObjectiveDropbox_TestsVersionNumber; 5 | FOUNDATION_EXPORT const unsigned char Pods_ObjectiveDropbox_TestsVersionString[]; 6 | 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-ObjectiveDropbox_Tests/Pods-ObjectiveDropbox_Tests.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_ObjectiveDropbox_Tests { 2 | umbrella header "Pods-ObjectiveDropbox_Tests-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Tests/Tests-Prefix.pch: -------------------------------------------------------------------------------- 1 | // The contents of this file are implicitly included at the beginning of every test case source file. 2 | 3 | #ifdef __OBJC__ 4 | 5 | 6 | 7 | #endif 8 | -------------------------------------------------------------------------------- /Example/Tests/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /Pod/Assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/live-sound/ObjectiveDropbox/dc7bcf39929754457dfdb7bf4fbfbf20f834ae69/Pod/Assets/.gitkeep -------------------------------------------------------------------------------- /Pod/Classes/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/live-sound/ObjectiveDropbox/dc7bcf39929754457dfdb7bf4fbfbf20f834ae69/Pod/Classes/.gitkeep -------------------------------------------------------------------------------- /Pod/Classes/Args/DropboxCreateFolderArg.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxCreateFolderArg.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 05.04.16. 6 | // 7 | // 8 | 9 | #import 10 | 11 | @interface DropboxCreateFolderArg : NSObject 12 | 13 | /** 14 | * Path in the user's Dropbox to create. Example: "/Homework/geometry" 15 | */ 16 | @property (nonatomic, nonnull) NSString *path; 17 | 18 | - (nonnull instancetype)initWithPath:(NSString * _Nonnull)path; 19 | 20 | @end 21 | -------------------------------------------------------------------------------- /Pod/Classes/Args/DropboxCreateFolderArg.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxCreateFolderArg.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 05.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxCreateFolderArg.h" 10 | 11 | @implementation DropboxCreateFolderArg 12 | 13 | - (instancetype)initWithPath:(NSString *)path 14 | { 15 | self = [self init]; 16 | if (self) { 17 | _path = path; 18 | } 19 | return self; 20 | } 21 | 22 | @end 23 | -------------------------------------------------------------------------------- /Pod/Classes/Args/DropboxCreateSharedLinkWithSettingsArg.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxCreateSharedLinkWithSettingsArg.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 24.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxCreateSharedLinkWithSettingsArg.h" 10 | 11 | @implementation DropboxCreateSharedLinkWithSettingsArg 12 | 13 | - (instancetype)initWithPath:(NSString *)path settings:(DropboxSharedLinkSettings *)settings 14 | { 15 | self = [super init]; 16 | if (self) { 17 | _path = path; 18 | _settings = settings; 19 | } 20 | return self; 21 | } 22 | 23 | - (instancetype)initWithPath:(NSString *)path 24 | { 25 | return [self initWithPath:path settings:nil]; 26 | } 27 | 28 | @end 29 | -------------------------------------------------------------------------------- /Pod/Classes/Args/DropboxDeleteArg.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxDeleteArg.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 05.04.16. 6 | // 7 | // 8 | 9 | #import 10 | 11 | @interface DropboxDeleteArg : NSObject 12 | 13 | /** 14 | * Path in the user's Dropbox to delete. Example: "/Homework/math/Prime_Numbers.txt" 15 | */ 16 | @property (nonatomic, nonnull) NSString *path; 17 | 18 | - (nonnull instancetype)initWithPath:(NSString * _Nonnull)path; 19 | 20 | @end 21 | -------------------------------------------------------------------------------- /Pod/Classes/Args/DropboxDeleteArg.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxDeleteArg.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 05.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxDeleteArg.h" 10 | 11 | @implementation DropboxDeleteArg 12 | 13 | - (instancetype)initWithPath:(NSString *)path 14 | { 15 | self = [self init]; 16 | if (self) { 17 | _path = path; 18 | } 19 | return self; 20 | } 21 | 22 | @end 23 | -------------------------------------------------------------------------------- /Pod/Classes/Args/DropboxDownloadArg.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxDownloadArg.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 05.04.16. 6 | // 7 | // 8 | 9 | #import 10 | 11 | @interface DropboxDownloadArg : NSObject 12 | 13 | /** 14 | * The path of the file to download. Examples: "/Homework/math/Prime_Numbers.txt", "id:a4ayc_80_OEAAAAAAAAAYa", "rev:a1c10ce0dd78" 15 | */ 16 | @property (nonatomic, nonnull) NSString *path; 17 | 18 | - (nonnull instancetype)initWithPath:(NSString * _Nonnull)path; 19 | 20 | @end 21 | -------------------------------------------------------------------------------- /Pod/Classes/Args/DropboxDownloadArg.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxDownloadArg.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 05.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxDownloadArg.h" 10 | 11 | @implementation DropboxDownloadArg 12 | 13 | - (instancetype)initWithPath:(NSString *)path 14 | { 15 | self = [self init]; 16 | if (self) { 17 | _path = path; 18 | } 19 | return self; 20 | } 21 | 22 | @end 23 | -------------------------------------------------------------------------------- /Pod/Classes/Args/DropboxGetAccountArg.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxGetAccountArg.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 27.04.16. 6 | // 7 | // 8 | 9 | #import 10 | 11 | @interface DropboxGetAccountArg : NSObject 12 | 13 | /** 14 | * A user's account identifier. 15 | */ 16 | @property (nonatomic, nonnull) NSString *accountID; 17 | 18 | - (nonnull instancetype)initWithAccountID:(NSString * _Nonnull)accountID; 19 | 20 | @end 21 | -------------------------------------------------------------------------------- /Pod/Classes/Args/DropboxGetAccountArg.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxGetAccountArg.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 27.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxGetAccountArg.h" 10 | 11 | @implementation DropboxGetAccountArg 12 | 13 | - (instancetype)initWithAccountID:(NSString *)accountID 14 | { 15 | self = [super init]; 16 | if (self) { 17 | _accountID = accountID; 18 | } 19 | return self; 20 | } 21 | 22 | - (instancetype)init 23 | { 24 | return [self initWithAccountID:@""]; 25 | } 26 | 27 | @end 28 | -------------------------------------------------------------------------------- /Pod/Classes/Args/DropboxGetAccountBatchArg.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxGetAccountBatchArg.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 27.04.16. 6 | // 7 | // 8 | 9 | #import 10 | 11 | @interface DropboxGetAccountBatchArg : NSObject 12 | 13 | /** 14 | * List of user account identifiers. Should not contain any duplicate account IDs. 15 | */ 16 | @property (nonatomic, nonnull) NSArray *accountIDs; 17 | 18 | 19 | - (nonnull instancetype)initWithAccountIDs:(NSString * _Nonnull)ID1, ... NS_REQUIRES_NIL_TERMINATION; 20 | 21 | @end 22 | -------------------------------------------------------------------------------- /Pod/Classes/Args/DropboxGetMetadataArg.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxGetMetadataArg.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 05.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxGetMetadataArg.h" 10 | 11 | @implementation DropboxGetMetadataArg 12 | 13 | - (instancetype)initWithPath:(NSString *)path includeMediaInfo:(BOOL)includeMediaInfo includeDeleted:(BOOL)includeDeleted 14 | { 15 | self = [self init]; 16 | if (self) { 17 | _path = path; 18 | _includeMediaInfo = includeMediaInfo; 19 | _includeDeleted = includeDeleted; 20 | } 21 | return self; 22 | } 23 | 24 | @end 25 | -------------------------------------------------------------------------------- /Pod/Classes/Args/DropboxGetPreviewArg.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxPreviewArg.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 05.04.16. 6 | // 7 | // 8 | 9 | #import 10 | 11 | @interface DropboxGetPreviewArg : NSObject 12 | 13 | /** 14 | * The path of the file to preview. Examples: "/Homework/math/Prime_Numbers.txt", "id:a4ayc_80_OEAAAAAAAAAYa", "rev:a1c10ce0dd78" 15 | */ 16 | @property (nonatomic, nonnull) NSString *path; 17 | 18 | - (nonnull instancetype)initWithPath:(NSString * _Nonnull)path; 19 | 20 | @end 21 | -------------------------------------------------------------------------------- /Pod/Classes/Args/DropboxGetPreviewArg.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxPreviewArg.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 05.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxGetPreviewArg.h" 10 | 11 | @implementation DropboxGetPreviewArg 12 | 13 | - (instancetype)initWithPath:(NSString *)path 14 | { 15 | self = [self init]; 16 | if (self) { 17 | _path = path; 18 | } 19 | return self; 20 | } 21 | 22 | @end 23 | -------------------------------------------------------------------------------- /Pod/Classes/Args/DropboxGetSharedLinkMetadataArg.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxGetSharedLinkMetadataArg.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 25.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxGetSharedLinkMetadataArg.h" 10 | 11 | @implementation DropboxGetSharedLinkMetadataArg 12 | 13 | - (instancetype)initWithUrl:(NSString *)url path:(NSString *)path linkPassword:(NSString *)linkPassword 14 | { 15 | self = [super init]; 16 | if (self) { 17 | _url = url; 18 | _path = path; 19 | _linkPassword = linkPassword; 20 | } 21 | return self; 22 | } 23 | 24 | - (instancetype)initWithUrl:(NSString *)url 25 | { 26 | return [self initWithUrl:url path:nil linkPassword:nil]; 27 | } 28 | 29 | @end 30 | -------------------------------------------------------------------------------- /Pod/Classes/Args/DropboxGetTemporaryLinkArg.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxGetTemporaryLinkArg.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 05.04.16. 6 | // 7 | // 8 | 9 | #import 10 | 11 | @interface DropboxGetTemporaryLinkArg : NSObject 12 | 13 | /** 14 | * The path to the file you want a temporary link to. Examples: "/Homework/math/Prime_Numbers.txt", "id:a4ayc_80_OEAAAAAAAAAYa", "rev:a1c10ce0dd78" 15 | */ 16 | @property (nonatomic, nonnull) NSString *path; 17 | 18 | - (nonnull instancetype)initWithPath:(NSString * _Nonnull)path; 19 | 20 | @end 21 | -------------------------------------------------------------------------------- /Pod/Classes/Args/DropboxGetTemporaryLinkArg.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxGetTemporaryLinkArg.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 05.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxGetTemporaryLinkArg.h" 10 | 11 | @implementation DropboxGetTemporaryLinkArg 12 | 13 | - (instancetype)initWithPath:(NSString *)path 14 | { 15 | self = [self init]; 16 | if (self) { 17 | _path = path; 18 | } 19 | return self; 20 | } 21 | 22 | @end 23 | -------------------------------------------------------------------------------- /Pod/Classes/Args/DropboxGetThumbnailArg.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxThumbnailArg.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 05.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxGetThumbnailArg.h" 10 | 11 | @implementation DropboxGetThumbnailArg 12 | 13 | - (instancetype)initWithPath:(NSString *)path format:(DropboxThumbnailFormat)format size:(DropboxThumbnailSize)size 14 | { 15 | self = [self init]; 16 | if (self) { 17 | _path = path; 18 | _size = size; 19 | _format = format; 20 | } 21 | return self; 22 | } 23 | 24 | @end 25 | -------------------------------------------------------------------------------- /Pod/Classes/Args/DropboxListFolderContinueArg.h: -------------------------------------------------------------------------------- 1 | // 2 | // ListFolderContinueArg.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 06.04.16. 6 | // 7 | // 8 | 9 | #import 10 | 11 | @interface DropboxListFolderContinueArg : NSObject 12 | 13 | /** 14 | * The cursor returned by your last call to listFolder or listFolderContinue. 15 | */ 16 | @property (nonatomic, nonnull) NSString *cursor; 17 | 18 | - (nonnull instancetype)initWithCursor:(NSString * _Nonnull)cursor; 19 | 20 | @end 21 | -------------------------------------------------------------------------------- /Pod/Classes/Args/DropboxListFolderContinueArg.m: -------------------------------------------------------------------------------- 1 | // 2 | // ListFolderContinueArg.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 06.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxListFolderContinueArg.h" 10 | 11 | @implementation DropboxListFolderContinueArg 12 | 13 | - (instancetype)initWithCursor:(NSString *)cursor 14 | { 15 | self = [self init]; 16 | if (self) { 17 | _cursor = cursor; 18 | } 19 | return self; 20 | } 21 | 22 | @end 23 | -------------------------------------------------------------------------------- /Pod/Classes/Args/DropboxListFolderLongpollArg.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxListFolderLongpollArg.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 06.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxListFolderLongpollArg.h" 10 | 11 | @implementation DropboxListFolderLongpollArg 12 | 13 | - (instancetype)initWithCursor:(NSString *)cursor timeout:(UInt64)timeout 14 | { 15 | self = [self init]; 16 | if (self) { 17 | _cursor = cursor; 18 | _timeout = timeout; 19 | } 20 | return self; 21 | } 22 | 23 | @end 24 | -------------------------------------------------------------------------------- /Pod/Classes/Args/DropboxListFolderMembersContinueArg.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxListFolderMembersContinueArg.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 26.04.16. 6 | // 7 | // 8 | 9 | #import 10 | 11 | @interface DropboxListFolderMembersContinueArg : NSObject 12 | 13 | /** 14 | * The cursor returned by your last call to listFolderMembers or listFolderMembersContinue. 15 | */ 16 | @property (nonatomic, nonnull) NSString *cursor; 17 | 18 | 19 | - (nonnull instancetype)initWithCursor:(NSString * _Nonnull)cursor; 20 | 21 | @end 22 | -------------------------------------------------------------------------------- /Pod/Classes/Args/DropboxListFolderMembersContinueArg.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxListFolderMembersContinueArg.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 26.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxListFolderMembersContinueArg.h" 10 | 11 | @implementation DropboxListFolderMembersContinueArg 12 | 13 | - (instancetype)initWithCursor:(NSString *)cursor 14 | { 15 | self = [self init]; 16 | if (self) { 17 | _cursor = cursor; 18 | } 19 | return self; 20 | } 21 | 22 | @end 23 | -------------------------------------------------------------------------------- /Pod/Classes/Args/DropboxListFoldersContinueArg.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxListFoldersContinueArg.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 26.04.16. 6 | // 7 | // 8 | 9 | #import 10 | 11 | @interface DropboxListFoldersContinueArg : NSObject 12 | 13 | /** 14 | * The cursor returned by the previous API call specified in the endpoint description. 15 | */ 16 | @property (nonatomic, nonnull) NSString *cursor; 17 | 18 | 19 | - (nonnull instancetype)initWithCursor:(NSString * _Nonnull)cursor; 20 | 21 | @end 22 | -------------------------------------------------------------------------------- /Pod/Classes/Args/DropboxListFoldersContinueArg.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxListFoldersContinueArg.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 26.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxListFoldersContinueArg.h" 10 | 11 | @implementation DropboxListFoldersContinueArg 12 | 13 | - (instancetype)initWithCursor:(NSString *)cursor 14 | { 15 | self = [super init]; 16 | if (self) { 17 | _cursor = cursor; 18 | } 19 | return self; 20 | } 21 | 22 | - (instancetype)init 23 | { 24 | return [self initWithCursor:@""]; 25 | } 26 | 27 | @end 28 | -------------------------------------------------------------------------------- /Pod/Classes/Args/DropboxListRevisionsArg.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxListRevisionsArg.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 06.04.16. 6 | // 7 | // 8 | 9 | #import 10 | 11 | @interface DropboxListRevisionsArg : NSObject 12 | 13 | /** 14 | * The path to the file you want to see the revisions of. 15 | */ 16 | @property (nonatomic, nonnull) NSString *path; 17 | 18 | /** 19 | * The maximum number of revision entries returned. The default for this field is 10. 20 | */ 21 | @property (nonatomic) UInt64 limit; 22 | 23 | - (nonnull instancetype)initWithPath:(NSString * _Nonnull)path limit:(UInt64)limit; 24 | 25 | @end 26 | -------------------------------------------------------------------------------- /Pod/Classes/Args/DropboxListRevisionsArg.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxListRevisionsArg.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 06.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxListRevisionsArg.h" 10 | 11 | @implementation DropboxListRevisionsArg 12 | 13 | - (instancetype)initWithPath:(NSString *)path limit:(UInt64)limit 14 | { 15 | self = [self init]; 16 | if (self) { 17 | _path = path; 18 | _limit = limit; 19 | } 20 | return self; 21 | } 22 | 23 | @end 24 | -------------------------------------------------------------------------------- /Pod/Classes/Args/DropboxMountFolderArg.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxMountFolderArg.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 26.04.16. 6 | // 7 | // 8 | 9 | #import 10 | 11 | @interface DropboxMountFolderArg : NSObject 12 | 13 | /** 14 | * The ID of the shared folder to mount. 15 | */ 16 | @property (nonatomic, nonnull) NSString *sharedFolderID; 17 | 18 | 19 | - (nonnull instancetype)initWithSharedFolderID:(NSString * _Nonnull)sharedFolderID; 20 | 21 | @end 22 | -------------------------------------------------------------------------------- /Pod/Classes/Args/DropboxMountFolderArg.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxMountFolderArg.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 26.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxMountFolderArg.h" 10 | 11 | @implementation DropboxMountFolderArg 12 | 13 | - (instancetype)initWithSharedFolderID:(NSString *)sharedFolderID 14 | { 15 | self = [super init]; 16 | if (self) { 17 | _sharedFolderID = sharedFolderID; 18 | } 19 | return self; 20 | } 21 | 22 | - (instancetype)init 23 | { 24 | return [self initWithSharedFolderID:@""]; 25 | } 26 | 27 | @end 28 | -------------------------------------------------------------------------------- /Pod/Classes/Args/DropboxPollArg.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxPollArg.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 22.04.16. 6 | // 7 | // 8 | 9 | #import 10 | 11 | /** 12 | * Arguments for methods that poll the status of an asynchronous job. This datatype comes from an imported namespace originally defined in the async namespace. 13 | */ 14 | @interface DropboxPollArg : NSObject 15 | 16 | /** 17 | * Id of the asynchronous job. This is the value of a response returned from the method that launched the job. 18 | */ 19 | @property (nonatomic, nonnull) NSString *asyncJobID; 20 | 21 | 22 | - (nonnull instancetype)initWithAsyncJobID:(NSString * _Nonnull)asyncJobID; 23 | 24 | @end 25 | -------------------------------------------------------------------------------- /Pod/Classes/Args/DropboxPollArg.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxPollArg.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 22.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxPollArg.h" 10 | 11 | @implementation DropboxPollArg 12 | 13 | - (instancetype)initWithAsyncJobID:(NSString *)asyncJobID 14 | { 15 | self = [super init]; 16 | if (self) { 17 | _asyncJobID = asyncJobID; 18 | } 19 | return self; 20 | } 21 | 22 | @end 23 | -------------------------------------------------------------------------------- /Pod/Classes/Args/DropboxRelinquishFolderMembershipArg.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxRelinquishFolderMembershipArg.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 26.04.16. 6 | // 7 | // 8 | 9 | #import 10 | 11 | @interface DropboxRelinquishFolderMembershipArg : NSObject 12 | 13 | /** 14 | * The ID for the shared folder. 15 | */ 16 | @property (nonatomic, nonnull) NSString *sharedFolderID; 17 | 18 | - (nonnull instancetype)initWithSharedFolderID:(NSString * _Nonnull)sharedFolderID; 19 | 20 | @end 21 | -------------------------------------------------------------------------------- /Pod/Classes/Args/DropboxRelinquishFolderMembershipArg.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxRelinquishFolderMembershipArg.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 26.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxRelinquishFolderMembershipArg.h" 10 | 11 | @implementation DropboxRelinquishFolderMembershipArg 12 | 13 | - (instancetype)initWithSharedFolderID:(NSString *)sharedFolderID 14 | { 15 | self = [super init]; 16 | if (self) { 17 | _sharedFolderID = sharedFolderID; 18 | } 19 | return self; 20 | } 21 | 22 | - (instancetype)init 23 | { 24 | return [self initWithSharedFolderID:@""]; 25 | } 26 | 27 | @end 28 | -------------------------------------------------------------------------------- /Pod/Classes/Args/DropboxRelocationArg.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxRelocationArg.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 05.04.16. 6 | // 7 | // 8 | 9 | #import 10 | 11 | @interface DropboxRelocationArg : NSObject 12 | 13 | /** 14 | * Path in the user's Dropbox to be copied or moved. 15 | */ 16 | @property (nonatomic, nonnull) NSString *fromPath; 17 | 18 | /** 19 | * Path in the user's Dropbox that is the destination. 20 | */ 21 | @property (nonatomic, nonnull) NSString *toPath; 22 | 23 | - (nonnull instancetype)initWithFromPath:(NSString * _Nonnull)fromPath toPath:(NSString * _Nonnull)toPath; 24 | 25 | @end 26 | -------------------------------------------------------------------------------- /Pod/Classes/Args/DropboxRelocationArg.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxRelocationArg.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 05.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxRelocationArg.h" 10 | 11 | @implementation DropboxRelocationArg 12 | 13 | - (instancetype)initWithFromPath:(NSString *)fromPath toPath:(NSString *)toPath 14 | { 15 | self = [self init]; 16 | if (self) { 17 | _fromPath = fromPath; 18 | _toPath = toPath; 19 | } 20 | return self; 21 | } 22 | 23 | @end 24 | -------------------------------------------------------------------------------- /Pod/Classes/Args/DropboxRestoreArg.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxRestoreArg.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 20.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxRestoreArg.h" 10 | 11 | @implementation DropboxRestoreArg 12 | 13 | - (instancetype)initWithPath:(NSString *)path rev:(NSString *)rev 14 | { 15 | self = [self init]; 16 | if (self) { 17 | _path = path; 18 | _rev = rev; 19 | } 20 | return self; 21 | } 22 | 23 | @end 24 | -------------------------------------------------------------------------------- /Pod/Classes/Args/DropboxRevokeSharedLinkArg.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxRevokeSharedLinkArg.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 27.04.16. 6 | // 7 | // 8 | 9 | #import 10 | 11 | @interface DropboxRevokeSharedLinkArg : NSObject 12 | 13 | /** 14 | * URL of the shared link. 15 | */ 16 | @property (nonatomic, nonnull) NSString *url; 17 | 18 | 19 | - (nonnull instancetype)initWithURL:(NSString * _Nonnull)url; 20 | 21 | @end 22 | -------------------------------------------------------------------------------- /Pod/Classes/Args/DropboxRevokeSharedLinkArg.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxRevokeSharedLinkArg.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 27.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxRevokeSharedLinkArg.h" 10 | 11 | @implementation DropboxRevokeSharedLinkArg 12 | 13 | - (instancetype)initWithURL:(NSString *)url 14 | { 15 | self = [super init]; 16 | if (self) { 17 | _url = url; 18 | } 19 | return self; 20 | } 21 | 22 | - (instancetype)init 23 | { 24 | return [self initWithURL:@""]; 25 | } 26 | 27 | @end 28 | -------------------------------------------------------------------------------- /Pod/Classes/Args/DropboxTransferFolderArg.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxTransferFolderArg.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 27.04.16. 6 | // 7 | // 8 | 9 | #import 10 | 11 | @interface DropboxTransferFolderArg : NSObject 12 | 13 | /** 14 | * The ID for the shared folder. 15 | */ 16 | @property (nonatomic, nonnull) NSString *sharedFolderID; 17 | 18 | /** 19 | * A account or team member ID to transfer ownership to. 20 | */ 21 | @property (nonatomic, nonnull) NSString *toDropboxID; 22 | 23 | 24 | - (nonnull instancetype)initWithSharedFolderID:(NSString * _Nonnull)sharedFolderID toDropboxID:(NSString * _Nonnull)toDropboxID; 25 | 26 | @end 27 | -------------------------------------------------------------------------------- /Pod/Classes/Args/DropboxTransferFolderArg.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxTransferFolderArg.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 27.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxTransferFolderArg.h" 10 | 11 | @implementation DropboxTransferFolderArg 12 | 13 | - (instancetype)initWithSharedFolderID:(NSString *)sharedFolderID toDropboxID:(NSString *)toDropboxID 14 | { 15 | self = [super init]; 16 | if (self) { 17 | _sharedFolderID = sharedFolderID; 18 | _toDropboxID = toDropboxID; 19 | } 20 | return self; 21 | } 22 | 23 | - (instancetype)init 24 | { 25 | return [self initWithSharedFolderID:@"" toDropboxID:@""]; 26 | } 27 | 28 | @end 29 | -------------------------------------------------------------------------------- /Pod/Classes/Args/DropboxUnmountFolderArg.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxUnmountFolderArg.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 27.04.16. 6 | // 7 | // 8 | 9 | #import 10 | 11 | @interface DropboxUnmountFolderArg : NSObject 12 | 13 | /** 14 | * The ID for the shared folder. 15 | */ 16 | @property (nonatomic, nonnull) NSString *sharedFolderID; 17 | 18 | - (nonnull instancetype)initWithSharedFolderID:(NSString * _Nonnull)sharedFolderID; 19 | 20 | @end 21 | -------------------------------------------------------------------------------- /Pod/Classes/Args/DropboxUnmountFolderArg.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxUnmountFolderArg.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 27.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxUnmountFolderArg.h" 10 | 11 | @implementation DropboxUnmountFolderArg 12 | 13 | - (instancetype)initWithSharedFolderID:(NSString *)sharedFolderID 14 | { 15 | self = [super init]; 16 | if (self) { 17 | _sharedFolderID = sharedFolderID; 18 | } 19 | return self; 20 | } 21 | 22 | - (instancetype)init 23 | { 24 | return [self initWithSharedFolderID:@""]; 25 | } 26 | 27 | @end 28 | -------------------------------------------------------------------------------- /Pod/Classes/Args/DropboxUploadSessionAppendArg.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxUploadSessionAppendArg.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 21.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxUploadSessionAppendArg.h" 10 | 11 | @implementation DropboxUploadSessionAppendArg 12 | 13 | - (instancetype)initWithCursor:(DropboxUploadSessionCursor *)cursor close:(BOOL)close 14 | { 15 | self = [super init]; 16 | if (self) { 17 | _cursor = cursor; 18 | _close = close; 19 | } 20 | return self; 21 | } 22 | 23 | @end 24 | -------------------------------------------------------------------------------- /Pod/Classes/Args/DropboxUploadSessionFinishArg.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxUploadSessionFinishArg.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 21.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxUploadSessionFinishArg.h" 10 | 11 | @implementation DropboxUploadSessionFinishArg 12 | 13 | - (instancetype)initWithCursor:(DropboxUploadSessionCursor *)cursor commit:(DropboxCommitInfo *)commit 14 | { 15 | self = [super init]; 16 | if (self) { 17 | _cursor = cursor; 18 | _commit = commit; 19 | } 20 | return self; 21 | } 22 | 23 | @end 24 | -------------------------------------------------------------------------------- /Pod/Classes/Args/DropboxUploadSessionStartArg.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxUploadSessionStartArg.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 21.04.16. 6 | // 7 | // 8 | 9 | #import 10 | 11 | @interface DropboxUploadSessionStartArg : NSObject 12 | 13 | /** 14 | * If true, current session will be closed. You cannot do upload_session/append any more to current session The default for this field is False. 15 | */ 16 | @property (nonatomic) BOOL close; 17 | 18 | - (nonnull instancetype)initWithClose:(BOOL)close; 19 | 20 | @end 21 | -------------------------------------------------------------------------------- /Pod/Classes/Args/DropboxUploadSessionStartArg.m: -------------------------------------------------------------------------------- 1 | 2 | // 3 | // DropboxUploadSessionStartArg.m 4 | // Pods 5 | // 6 | // Created by Михаил Мотыженков on 21.04.16. 7 | // 8 | // 9 | 10 | #import "DropboxUploadSessionStartArg.h" 11 | 12 | @implementation DropboxUploadSessionStartArg 13 | 14 | - (instancetype)initWithClose:(BOOL)close 15 | { 16 | self = [super init]; 17 | if (self) { 18 | _close = close; 19 | } 20 | return self; 21 | } 22 | 23 | - (instancetype)init 24 | { 25 | return [self initWithClose:NO]; 26 | } 27 | 28 | @end 29 | -------------------------------------------------------------------------------- /Pod/Classes/Auth/DropboxAuthClient.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxAuthClient.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 05.05.16. 6 | // 7 | // 8 | 9 | #import 10 | #import "DropboxAuthViewControllerProtocol.h" 11 | #import "DropboxAuthClientProtocol.h" 12 | 13 | @interface DropboxAuthClient : NSObject 14 | 15 | @property (nonatomic, weak, nullable) UIViewController *authViewController; 16 | @property (nonatomic, weak, nullable) id delegate; 17 | 18 | - (nonnull instancetype)initWithDelegate:(id _Nonnull)delegate; 19 | 20 | @end 21 | -------------------------------------------------------------------------------- /Pod/Classes/Auth/DropboxAuthDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxAuthCompletedProtocol.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 15.04.16. 6 | // 7 | // 8 | 9 | #import 10 | 11 | @protocol DropboxAuthDelegate 12 | 13 | - (void)dropboxAuthCompletedWithAccessToken:(NSString *)accessToken tokenType:(NSString *)tokenType uid:(NSString *)uid; 14 | - (void)dropboxAuthCanceled; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /Pod/Classes/Entities/DropboxAccountType.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxAccountType.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 27.04.16. 6 | // 7 | // 8 | 9 | typedef enum : NSUInteger { 10 | DATBasic, 11 | DATPro, 12 | DATBusiness, 13 | DATNotSet 14 | } DropboxAccountType; -------------------------------------------------------------------------------- /Pod/Classes/Entities/DropboxAclUpdatePolicy.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxAclUpdatePolicy.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 27.04.16. 6 | // 7 | // 8 | 9 | /** 10 | Policy governing who can change a shared folder's access control list (ACL). In other words, who can add, remove, or change the privileges of members. 11 | */ 12 | typedef enum : NSUInteger { 13 | /** 14 | * Only the owner can update the ACL. 15 | */ 16 | DAUPOwner, 17 | 18 | /** 19 | * Any editor can update the ACL. This may be further restricted to editors on the same team. 20 | */ 21 | DAUPEditors, 22 | DAUPNotSet 23 | } DropboxAclUpdatePolicy; -------------------------------------------------------------------------------- /Pod/Classes/Entities/DropboxAddMember.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxAddMember.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 22.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxAddMember.h" 10 | 11 | @implementation DropboxAddMember 12 | 13 | - (instancetype)initWithMember:(DropboxMemberSelector *)member accessLevel:(DropboxAccessLevel)accessLevel 14 | { 15 | self = [super init]; 16 | if (self) { 17 | _member = member; 18 | _accessLevel = accessLevel; 19 | } 20 | return self; 21 | } 22 | 23 | @end 24 | -------------------------------------------------------------------------------- /Pod/Classes/Entities/DropboxBaseMembershipInfo.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxBaseMembershipInfo.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 26.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxBaseMembershipInfo.h" 10 | 11 | @implementation DropboxBaseMembershipInfo 12 | 13 | - (instancetype)init 14 | { 15 | self = [super init]; 16 | if (self) { 17 | _accessType = DALNotSet; 18 | } 19 | return self; 20 | } 21 | 22 | @end 23 | -------------------------------------------------------------------------------- /Pod/Classes/Entities/DropboxBaseSpaceAllocation.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxBaseSpaceAllocation.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 28.04.16. 6 | // 7 | // 8 | 9 | #import 10 | 11 | @interface DropboxBaseSpaceAllocation : NSObject 12 | 13 | /** 14 | * The total space allocated to the user's account/team (bytes). 15 | */ 16 | @property (nonatomic) UInt64 allocated; 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /Pod/Classes/Entities/DropboxBaseSpaceAllocation.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxBaseSpaceAllocation.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 28.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxBaseSpaceAllocation.h" 10 | 11 | @implementation DropboxBaseSpaceAllocation 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /Pod/Classes/Entities/DropboxBasicAccount.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxBasicAccount.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 27.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxBasicAccount.h" 10 | 11 | @implementation DropboxBasicAccount 12 | 13 | - (instancetype)init 14 | { 15 | self = [super init]; 16 | if (self) { 17 | _accountID = @""; 18 | _email = @""; 19 | _name = [DropboxName new]; 20 | } 21 | return self; 22 | } 23 | 24 | @end 25 | -------------------------------------------------------------------------------- /Pod/Classes/Entities/DropboxDeletedMetadata.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxDeletedMetadata.h 3 | // ObjectiveDropbox 4 | // 5 | // Created by Михаил Мотыженков on 16.03.16. 6 | // Copyright © 2016 Михаил Мотыженков. All rights reserved. 7 | // 8 | 9 | #import "DropboxMetadata.h" 10 | 11 | @interface DropboxDeletedMetadata : DropboxMetadata 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /Pod/Classes/Entities/DropboxDimensions.h: -------------------------------------------------------------------------------- 1 | // 2 | // Dimensions.h 3 | // ObjectiveDropbox 4 | // 5 | // Created by Михаил Мотыженков on 15.03.16. 6 | // Copyright © 2016 Михаил Мотыженков. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface DropboxDimensions : NSObject 12 | 13 | /** 14 | * Height of the photo/video. 15 | */ 16 | @property (nonatomic) UInt64 height; 17 | 18 | /** 19 | * Width of the photo/video. 20 | */ 21 | @property (nonatomic) UInt64 width; 22 | 23 | - (BOOL)isEqualToDimensions:(DropboxDimensions *)another; 24 | 25 | @end 26 | -------------------------------------------------------------------------------- /Pod/Classes/Entities/DropboxFileLinkMetadata.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxFileLinkMetadata.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 25.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxFileLinkMetadata.h" 10 | 11 | @implementation DropboxFileLinkMetadata 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /Pod/Classes/Entities/DropboxFileSharingInfo.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxFileSharingInfo.h 3 | // ObjectiveDropbox 4 | // 5 | // Created by Михаил Мотыженков on 16.03.16. 6 | // Copyright © 2016 Михаил Мотыженков. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "DropboxFileSystemSharingInfo.h" 11 | 12 | @interface DropboxFileSharingInfo : DropboxFileSystemSharingInfo 13 | 14 | 15 | /** 16 | * The last user who modified the file. This field will be null if the user's account has been deleted. This field is optional. 17 | */ 18 | @property (nonatomic, nullable) NSString *modifiedBy; 19 | 20 | @end 21 | -------------------------------------------------------------------------------- /Pod/Classes/Entities/DropboxFileSystemSharingInfo.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxFileSystemSharingInfo.h 3 | // ObjectiveDropbox 4 | // 5 | // Created by Михаил Мотыженков on 25.03.16. 6 | // Copyright © 2016 Михаил Мотыженков. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | 12 | @interface DropboxFileSystemSharingInfo : NSObject 13 | 14 | /** 15 | * True if the file or folder is inside a read-only shared folder. 16 | */ 17 | @property (nonatomic) BOOL readOnly; 18 | 19 | /** 20 | * ID of shared folder that holds this file. 21 | */ 22 | @property (nonatomic, nonnull) NSString *parentSharedFolderID; 23 | 24 | 25 | @end 26 | -------------------------------------------------------------------------------- /Pod/Classes/Entities/DropboxFileSystemSharingInfo.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxFileSystemSharingInfo.m 3 | // ObjectiveDropbox 4 | // 5 | // Created by Михаил Мотыженков on 25.03.16. 6 | // Copyright © 2016 Михаил Мотыженков. All rights reserved. 7 | // 8 | 9 | #import "DropboxFileSystemSharingInfo.h" 10 | 11 | @implementation DropboxFileSystemSharingInfo 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /Pod/Classes/Entities/DropboxFolderLinkMetadata.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxFolderLinkMetadata.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 25.04.16. 6 | // 7 | // 8 | 9 | #import 10 | #import "DropboxSharedLinkMetadata.h" 11 | 12 | /** 13 | * The metadata of a folder shared link 14 | */ 15 | @interface DropboxFolderLinkMetadata : DropboxSharedLinkMetadata 16 | 17 | @end 18 | -------------------------------------------------------------------------------- /Pod/Classes/Entities/DropboxFolderLinkMetadata.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxFolderLinkMetadata.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 25.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxFolderLinkMetadata.h" 10 | 11 | @implementation DropboxFolderLinkMetadata 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /Pod/Classes/Entities/DropboxFolderMetadata.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxFolderMetadata.h 3 | // ObjectiveDropbox 4 | // 5 | // Created by Михаил Мотыженков on 16.03.16. 6 | // Copyright © 2016 Михаил Мотыженков. All rights reserved. 7 | // 8 | 9 | #import "DropboxMetadata.h" 10 | #import "DropboxFolderSharingInfo.h" 11 | 12 | @interface DropboxFolderMetadata : DropboxMetadata 13 | 14 | /** 15 | * A unique identifier for the file/folder. 16 | */ 17 | @property (nonatomic, nonnull) NSString *id; 18 | 19 | 20 | /** 21 | * Set if the folder is contained in a shared folder or is a shared folder mount point. This field is optional. 22 | */ 23 | @property (nonatomic, nullable) DropboxFolderSharingInfo *sharingInfo; 24 | 25 | @end 26 | -------------------------------------------------------------------------------- /Pod/Classes/Entities/DropboxFolderPermission.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxFolderPermission.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 22.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxFolderPermission.h" 10 | 11 | @implementation DropboxFolderPermission 12 | 13 | - (instancetype)init 14 | { 15 | self = [super init]; 16 | if (self) { 17 | _action = DFANotSet; 18 | _reason = DPDRNotSet; 19 | } 20 | return self; 21 | } 22 | 23 | @end 24 | -------------------------------------------------------------------------------- /Pod/Classes/Entities/DropboxFolderPolicy.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxFolderPolicy.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 22.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxFolderPolicy.h" 10 | 11 | @implementation DropboxFolderPolicy 12 | 13 | - (instancetype)init 14 | { 15 | self = [super init]; 16 | if (self) { 17 | _memberPolicy = _resolvedMemberPolicy = DMPNotSet; 18 | _aclUpdatePolicy = DAUPNotSet; 19 | _sharedLinkPolicy = DSLPNotSet; 20 | } 21 | return self; 22 | } 23 | 24 | @end 25 | -------------------------------------------------------------------------------- /Pod/Classes/Entities/DropboxFolderSharingInfo.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxFolderSharingInfo.h 3 | // ObjectiveDropbox 4 | // 5 | // Created by Михаил Мотыженков on 16.03.16. 6 | // Copyright © 2016 Михаил Мотыженков. All rights reserved. 7 | // 8 | 9 | #import "DropboxMetadata.h" 10 | #import "DropboxFileSystemSharingInfo.h" 11 | 12 | @interface DropboxFolderSharingInfo : DropboxFileSystemSharingInfo 13 | 14 | /** 15 | * If this folder is a shared folder mount point, the ID of the shared folder mounted at this location. This field is optional. 16 | */ 17 | @property (nonatomic, nullable) NSString *sharedFolderID; 18 | 19 | @end 20 | -------------------------------------------------------------------------------- /Pod/Classes/Entities/DropboxFolderSharingInfo.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxFolderSharingInfo.m 3 | // ObjectiveDropbox 4 | // 5 | // Created by Михаил Мотыженков on 16.03.16. 6 | // Copyright © 2016 Михаил Мотыженков. All rights reserved. 7 | // 8 | 9 | #import "DropboxFolderSharingInfo.h" 10 | 11 | @implementation DropboxFolderSharingInfo 12 | 13 | - (NSString *)description 14 | { 15 | return [NSString stringWithFormat:@"{ sharedFolderID: %@ }", self.sharedFolderID]; 16 | } 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /Pod/Classes/Entities/DropboxFullAccount.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxFullAccount.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 28.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxFullAccount.h" 10 | 11 | @implementation DropboxFullAccount 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /Pod/Classes/Entities/DropboxFullTeam.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxFullTeam.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 28.04.16. 6 | // 7 | // 8 | 9 | #import 10 | #import "DropboxTeamSharingPolicies.h" 11 | 12 | /** 13 | * Detailed information about a team. 14 | */ 15 | @interface DropboxFullTeam : NSObject 16 | 17 | /** 18 | * The team's unique ID. 19 | */ 20 | @property (nonatomic, nonnull) NSString *ID; 21 | 22 | /** 23 | * The name of the team. 24 | */ 25 | @property (nonatomic, nonnull) NSString *name; 26 | 27 | /** 28 | * Team policies governing sharing. 29 | */ 30 | @property (nonatomic, nonnull) DropboxTeamSharingPolicies *sharingPolicies; 31 | 32 | @end 33 | -------------------------------------------------------------------------------- /Pod/Classes/Entities/DropboxFullTeam.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxFullTeam.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 28.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxFullTeam.h" 10 | 11 | @implementation DropboxFullTeam 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /Pod/Classes/Entities/DropboxGpsCoordinates.h: -------------------------------------------------------------------------------- 1 | // 2 | // GpsCoordinates.h 3 | // ObjectiveDropbox 4 | // 5 | // Created by Михаил Мотыженков on 15.03.16. 6 | // Copyright © 2016 Михаил Мотыженков. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface DropboxGpsCoordinates : NSObject 12 | 13 | /** 14 | * Latitude of the GPS coordinates. 15 | */ 16 | @property (nonatomic) Float64 latitude; 17 | 18 | /** 19 | * Longitude of the GPS coordinates. 20 | */ 21 | @property (nonatomic) Float64 longitude; 22 | 23 | - (BOOL)isEqualToGpsCoordinates:(DropboxGpsCoordinates *)gps; 24 | 25 | @end 26 | -------------------------------------------------------------------------------- /Pod/Classes/Entities/DropboxGroupInfo.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxGroupInfo.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 26.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxGroupInfo.h" 10 | 11 | @implementation DropboxGroupInfo 12 | 13 | - (instancetype)init 14 | { 15 | self = [super init]; 16 | if (self) { 17 | _groupType = DGTNotSet; 18 | _memberCount = -1; 19 | } 20 | return self; 21 | } 22 | 23 | @end 24 | -------------------------------------------------------------------------------- /Pod/Classes/Entities/DropboxGroupMembershipInfo.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxGroupMembershipInfo.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 26.04.16. 6 | // 7 | // 8 | 9 | #import 10 | #import "DropboxGroupInfo.h" 11 | #import "DropboxBaseMembershipInfo.h" 12 | 13 | /** 14 | * The information about a group member of the shared folder. 15 | */ 16 | @interface DropboxGroupMembershipInfo : DropboxBaseMembershipInfo 17 | 18 | /** 19 | * The information about the membership group. 20 | */ 21 | @property (nonatomic, nonnull) DropboxGroupInfo *group; 22 | 23 | @end 24 | -------------------------------------------------------------------------------- /Pod/Classes/Entities/DropboxGroupMembershipInfo.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxGroupMembershipInfo.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 26.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxGroupMembershipInfo.h" 10 | 11 | @implementation DropboxGroupMembershipInfo 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /Pod/Classes/Entities/DropboxIndividualSpaceAllocation.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxIndividualSpaceAllocation.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 28.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxBaseSpaceAllocation.h" 10 | 11 | @interface DropboxIndividualSpaceAllocation : DropboxBaseSpaceAllocation 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /Pod/Classes/Entities/DropboxIndividualSpaceAllocation.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxIndividualSpaceAllocation.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 28.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxIndividualSpaceAllocation.h" 10 | 11 | @implementation DropboxIndividualSpaceAllocation 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /Pod/Classes/Entities/DropboxInviteeInfo.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxInviteeInfo.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 26.04.16. 6 | // 7 | // 8 | 9 | #import 10 | #import "DropboxInviteeInfoEnum.h" 11 | 12 | /** 13 | * Information about the recipient of a shared folder invitation. 14 | */ 15 | @interface DropboxInviteeInfo : NSObject 16 | 17 | @property (nonatomic, nullable) NSString *value; 18 | 19 | @property (nonatomic) DropboxInviteeInfoEnum type; 20 | 21 | @end 22 | -------------------------------------------------------------------------------- /Pod/Classes/Entities/DropboxInviteeInfo.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxInviteeInfo.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 26.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxInviteeInfo.h" 10 | 11 | @implementation DropboxInviteeInfo 12 | 13 | - (instancetype)init 14 | { 15 | self = [super init]; 16 | if (self) { 17 | _type = DIINotSet; 18 | } 19 | return self; 20 | } 21 | 22 | @end 23 | -------------------------------------------------------------------------------- /Pod/Classes/Entities/DropboxInviteeInfoEnum.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxInviteeInfoEnum.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 26.04.16. 6 | // 7 | // 8 | 9 | typedef enum : NSUInteger { 10 | 11 | /** 12 | * E-mail address of invited user. 13 | */ 14 | DIIEmail, 15 | DIINotSet 16 | } DropboxInviteeInfoEnum; -------------------------------------------------------------------------------- /Pod/Classes/Entities/DropboxInviteeMembershipInfo.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxInviteeMembershipInfo.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 26.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxInviteeMembershipInfo.h" 10 | 11 | @implementation DropboxInviteeMembershipInfo 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /Pod/Classes/Entities/DropboxLinkPermissions.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxLinkPermissions.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 24.04.16. 6 | // 7 | // 8 | 9 | #import 10 | #import "DropboxResolvedVisibility.h" 11 | #import "DropboxRequestedVisibility.h" 12 | #import "DropboxSharedLinkAccessFailureReason.h" 13 | 14 | @interface DropboxLinkPermissions : NSObject 15 | 16 | @property (nonatomic) BOOL canRevoke; 17 | @property (nonatomic) DropboxResolvedVisibility resolvedVisibility; 18 | @property (nonatomic) DropboxRequestedVisibility requestedVisibility; 19 | @property (nonatomic) DropboxSharedLinkAccessFailureReason revokeFailureReason; 20 | 21 | @end 22 | -------------------------------------------------------------------------------- /Pod/Classes/Entities/DropboxLinkPermissions.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxLinkPermissions.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 24.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxLinkPermissions.h" 10 | 11 | @implementation DropboxLinkPermissions 12 | 13 | - (instancetype)init 14 | { 15 | self = [super init]; 16 | if (self) { 17 | _resolvedVisibility = DResolvedVisibilityNotSet; 18 | _requestedVisibility = DRVNotSet; 19 | _revokeFailureReason = DSLAFRNotSet; 20 | } 21 | return self; 22 | } 23 | 24 | @end 25 | -------------------------------------------------------------------------------- /Pod/Classes/Entities/DropboxMediaInfo.h: -------------------------------------------------------------------------------- 1 | // 2 | // MediaInfo.h 3 | // ObjectiveDropbox 4 | // 5 | // Created by Михаил Мотыженков on 15.03.16. 6 | // Copyright © 2016 Михаил Мотыженков. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "DropboxMediaMetadata.h" 11 | 12 | 13 | @interface DropboxMediaInfo : NSObject 14 | 15 | /** 16 | * Indicate the photo/video is still under processing and metadata is not available yet. 17 | */ 18 | @property (nonatomic) BOOL isPending; 19 | 20 | /** 21 | * The metadata for the photo/video. 22 | */ 23 | @property (nonatomic, nullable) DropboxMediaMetadata *metadata; 24 | 25 | @end 26 | -------------------------------------------------------------------------------- /Pod/Classes/Entities/DropboxMemberPermission.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxMemberPermission.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 26.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxMemberPermission.h" 10 | 11 | @implementation DropboxMemberPermission 12 | 13 | - (instancetype)init 14 | { 15 | self = [super init]; 16 | if (self) { 17 | _action = DMANotSet; 18 | _reason = DPDRNotSet; 19 | } 20 | return self; 21 | } 22 | 23 | @end 24 | -------------------------------------------------------------------------------- /Pod/Classes/Entities/DropboxMemberPolicy.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxMemberPolicy.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 27.04.16. 6 | // 7 | // 8 | 9 | /** 10 | Policy governing who can be a member of a shared folder. Only applicable to folders owned by a user on a team. 11 | */ 12 | typedef enum : NSUInteger { 13 | /** 14 | * Only a teammate can become a member. 15 | */ 16 | DMPTeam, 17 | 18 | /** 19 | * Anyone can become a member. 20 | */ 21 | DMPAnyone, 22 | DMPNotSet 23 | } DropboxMemberPolicy; -------------------------------------------------------------------------------- /Pod/Classes/Entities/DropboxMetadata.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxMetadata.m 3 | // ObjectiveDropbox 4 | // 5 | // Created by Михаил Мотыженков on 15.03.16. 6 | // Copyright © 2016 Михаил Мотыженков. All rights reserved. 7 | // 8 | 9 | #import "DropboxMetadata.h" 10 | 11 | @implementation DropboxMetadata 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /Pod/Classes/Entities/DropboxName.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxName.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 27.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxName.h" 10 | 11 | @implementation DropboxName 12 | 13 | - (instancetype)init 14 | { 15 | self = [super init]; 16 | if (self) 17 | { 18 | _givenName = _surname = _familiarName = _displayName = @""; 19 | } 20 | return self; 21 | } 22 | 23 | @end 24 | -------------------------------------------------------------------------------- /Pod/Classes/Entities/DropboxPhotoMetadata.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxPhotoMetadata.h 3 | // ObjectiveDropbox 4 | // 5 | // Created by Михаил Мотыженков on 15.03.16. 6 | // Copyright © 2016 Михаил Мотыженков. All rights reserved. 7 | // 8 | 9 | #import "DropboxMediaMetadata.h" 10 | 11 | @interface DropboxPhotoMetadata : DropboxMediaMetadata 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /Pod/Classes/Entities/DropboxPhotoMetadata.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxPhotoMetadata.m 3 | // ObjectiveDropbox 4 | // 5 | // Created by Михаил Мотыженков on 15.03.16. 6 | // Copyright © 2016 Михаил Мотыженков. All rights reserved. 7 | // 8 | 9 | #import "DropboxPhotoMetadata.h" 10 | 11 | @implementation DropboxPhotoMetadata 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /Pod/Classes/Entities/DropboxSearchMatch.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxSearchMatch.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 21.04.16. 6 | // 7 | // 8 | 9 | #import 10 | #import "DropboxSearchMatchType.h" 11 | #import "DropboxMetadata.h" 12 | 13 | @interface DropboxSearchMatch : NSObject 14 | 15 | /** 16 | * The type of the match. 17 | */ 18 | @property (nonatomic) DropboxSearchMatchType matchType; 19 | 20 | /** 21 | * The metadata for the matched file or folder. 22 | */ 23 | @property (nonatomic, nullable) DropboxMetadata *metadata; 24 | 25 | @end 26 | -------------------------------------------------------------------------------- /Pod/Classes/Entities/DropboxShareFolderLaunch.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxShareFolderLaunch.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 27.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxShareFolderLaunch.h" 10 | 11 | 12 | @implementation DropboxShareFolderLaunch 13 | 14 | - (instancetype)init 15 | { 16 | self = [super init]; 17 | if (self) { 18 | _type = DSFLNotSet; 19 | } 20 | return self; 21 | } 22 | 23 | @end 24 | -------------------------------------------------------------------------------- /Pod/Classes/Entities/DropboxShareFolderLaunchEnum.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxShareFolderLaunchEnum.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 27.04.16. 6 | // 7 | // 8 | 9 | typedef enum : NSUInteger { 10 | /** 11 | * This response indicates that the processing is asynchronous. 12 | */ 13 | DSFLAsyncJobID, 14 | DSFLComplete, 15 | DSFLNotSet 16 | } DropboxShareFolderLaunchEnum; -------------------------------------------------------------------------------- /Pod/Classes/Entities/DropboxSharedFolderJoinPolicy.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxSharedFolderJoinPolicy.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 28.04.16. 6 | // 7 | // 8 | 9 | /** 10 | Policy governing which shared folders a team member can join. This datatype comes from an imported namespace originally defined in the team_policies namespace. 11 | */ 12 | typedef enum : NSUInteger { 13 | 14 | /** 15 | * Team members can only join folders shared by teammates. 16 | */ 17 | DSFJPFromTeamOnly, 18 | /** 19 | * Team members can join any shared folder, including those shared by users outside the team. 20 | */ 21 | DSFJPFromAnyone, 22 | DSFJPNotSet 23 | } DropboxSharedFolderJoinPolicy; -------------------------------------------------------------------------------- /Pod/Classes/Entities/DropboxSharedFolderMemberPolicy.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxSharedFolderMemberPolicy.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 28.04.16. 6 | // 7 | // 8 | 9 | /** 10 | Policy governing who can be a member of a folder shared by a team member. This datatype comes from an imported namespace originally defined in the team_policies namespace. 11 | */ 12 | typedef enum : NSUInteger { 13 | /** 14 | * Only a teammate can be a member of a folder shared by a team member. 15 | */ 16 | DSFMPTeam, 17 | 18 | /** 19 | * Anyone can be a member of a folder shared by a team member. 20 | */ 21 | DSFMPAnyone, 22 | DSFMPNotSet 23 | } DropboxSharedFolderMemberPolicy; -------------------------------------------------------------------------------- /Pod/Classes/Entities/DropboxSharedFolderMembers.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxSharedFolderMembers.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 26.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxSharedFolderMembers.h" 10 | 11 | @implementation DropboxSharedFolderMembers 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /Pod/Classes/Entities/DropboxSharedFolderMetadata.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxSharedFolderMetadata.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 22.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxSharedFolderMetadata.h" 10 | 11 | @implementation DropboxSharedFolderMetadata 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /Pod/Classes/Entities/DropboxSharedLinkMetadata.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxSharedLinkMetadata.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 24.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxSharedLinkMetadata.h" 10 | 11 | @implementation DropboxSharedLinkMetadata 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /Pod/Classes/Entities/DropboxSharedLinkPolicy.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxSharedLinkPolicy.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 27.04.16. 6 | // 7 | // 8 | 9 | /** 10 | Policy governing who can view shared links. 11 | */ 12 | typedef enum : NSUInteger { 13 | 14 | /** 15 | * Links can be shared with anyone. 16 | */ 17 | DSLPAnyone, 18 | 19 | /** 20 | * Links can only be shared among members of the shared folder. 21 | */ 22 | DSLPMembers, 23 | DSLPNotSet 24 | } DropboxSharedLinkPolicy; -------------------------------------------------------------------------------- /Pod/Classes/Entities/DropboxSpaceAllocation.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxSpaceAllocation.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 28.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxSpaceAllocation.h" 10 | 11 | @implementation DropboxSpaceAllocation 12 | 13 | - (instancetype)init 14 | { 15 | self = [super init]; 16 | if (self) { 17 | _type = DSANotSet; 18 | } 19 | return self; 20 | } 21 | 22 | @end 23 | -------------------------------------------------------------------------------- /Pod/Classes/Entities/DropboxSpaceAllocationEnum.h: -------------------------------------------------------------------------------- 1 | 2 | // 3 | // DropboxSpaceAllocationEnum.h 4 | // Pods 5 | // 6 | // Created by Михаил Мотыженков on 28.04.16. 7 | // 8 | // 9 | 10 | typedef enum : NSUInteger { 11 | 12 | /** 13 | * The user's space allocation applies only to their individual account. 14 | */ 15 | DSAIndividual, 16 | 17 | /** 18 | * The user shares space with other members of their team. 19 | */ 20 | DSATeam, 21 | DSANotSet 22 | } DropboxSpaceAllocationEnum; -------------------------------------------------------------------------------- /Pod/Classes/Entities/DropboxSpaceUsage.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxSpaceUsage.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 28.04.16. 6 | // 7 | // 8 | 9 | #import 10 | #import "DropboxSpaceAllocation.h" 11 | 12 | /** 13 | * Information about a user's space usage and quota. 14 | */ 15 | @interface DropboxSpaceUsage : NSObject 16 | 17 | /** 18 | * The user's total space usage (bytes). 19 | */ 20 | @property (nonatomic) UInt64 used; 21 | 22 | /** 23 | * The user's space allocation. 24 | */ 25 | @property (nonatomic, nonnull) DropboxSpaceAllocation *allocation; 26 | 27 | @end 28 | -------------------------------------------------------------------------------- /Pod/Classes/Entities/DropboxSpaceUsage.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxSpaceUsage.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 28.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxSpaceUsage.h" 10 | 11 | @implementation DropboxSpaceUsage 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /Pod/Classes/Entities/DropboxTeam.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxTeam.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 22.04.16. 6 | // 7 | // 8 | 9 | #import 10 | 11 | /** 12 | * Information about a team. This datatype comes from an imported namespace originally defined in the users namespace. 13 | */ 14 | @interface DropboxTeam : NSObject 15 | 16 | /** 17 | * The team's unique ID. 18 | */ 19 | @property (nonatomic, nonnull) NSString *ID; 20 | 21 | /** 22 | * The name of the team. 23 | */ 24 | @property (nonatomic, nonnull) NSString *name; 25 | 26 | @end 27 | -------------------------------------------------------------------------------- /Pod/Classes/Entities/DropboxTeam.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxTeam.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 22.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxTeam.h" 10 | 11 | @implementation DropboxTeam 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /Pod/Classes/Entities/DropboxTeamMemberInfo.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxTeamMemberInfo.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 24.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxTeamMemberInfo.h" 10 | 11 | @implementation DropboxTeamMemberInfo 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /Pod/Classes/Entities/DropboxTeamSharingPolicies.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxTeamSharingPolicies.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 28.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxTeamSharingPolicies.h" 10 | 11 | @implementation DropboxTeamSharingPolicies 12 | 13 | - (instancetype)init 14 | { 15 | self = [super init]; 16 | if (self) { 17 | _sharedFolderMemberPolicy = DSFMPNotSet; 18 | _sharedFolderJoinPolicy = DSFJPNotSet; 19 | _sharedLinkCreatePolicy = DSLCPNotSet; 20 | } 21 | return self; 22 | } 23 | 24 | @end 25 | -------------------------------------------------------------------------------- /Pod/Classes/Entities/DropboxTeamSpaceAllocation.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxTeamSpaceAllocation.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 28.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxBaseSpaceAllocation.h" 10 | 11 | @interface DropboxTeamSpaceAllocation : DropboxBaseSpaceAllocation 12 | 13 | /** 14 | * The total space currently used by the user's team (bytes). 15 | */ 16 | @property (nonatomic) UInt64 used; 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /Pod/Classes/Entities/DropboxTeamSpaceAllocation.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxTeamSpaceAllocation.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 28.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxTeamSpaceAllocation.h" 10 | 11 | @implementation DropboxTeamSpaceAllocation 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /Pod/Classes/Entities/DropboxThumbnailFormat.h: -------------------------------------------------------------------------------- 1 | // 2 | // ThumbnailFormat.h 3 | // ObjectiveDropbox 4 | // 5 | // Created by Михаил Мотыженков on 28.03.16. 6 | // Copyright © 2016 Михаил Мотыженков. All rights reserved. 7 | // 8 | 9 | #ifndef ThumbnailFormat_h 10 | #define ThumbnailFormat_h 11 | 12 | typedef enum : NSUInteger { 13 | JPEG, 14 | PNG 15 | } DropboxThumbnailFormat; 16 | 17 | #endif /* ThumbnailFormat_h */ 18 | -------------------------------------------------------------------------------- /Pod/Classes/Entities/DropboxThumbnailSize.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxThumbnailSize.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 05.04.16. 6 | // 7 | // 8 | 9 | #ifndef DropboxThumbnailSize_h 10 | #define DropboxThumbnailSize_h 11 | 12 | typedef enum : NSUInteger { 13 | w32h32, 14 | w64h64, 15 | w128h128, 16 | w640h480, 17 | w1024h768 18 | } DropboxThumbnailSize; 19 | 20 | 21 | #endif /* DropboxThumbnailSize_h */ 22 | -------------------------------------------------------------------------------- /Pod/Classes/Entities/DropboxUploadSessionCursor.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxUploadSessionCursor.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 21.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxUploadSessionCursor.h" 10 | 11 | @implementation DropboxUploadSessionCursor 12 | 13 | - (instancetype)initWithSessionID:(NSString *)sessionID offset:(UInt64)offset 14 | { 15 | self = [super init]; 16 | if (self) { 17 | _sessionID = sessionID; 18 | _offset = offset; 19 | } 20 | return self; 21 | } 22 | 23 | @end 24 | -------------------------------------------------------------------------------- /Pod/Classes/Entities/DropboxUserInfo.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxUserInfo.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 25.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxUserInfo.h" 10 | 11 | @implementation DropboxUserInfo 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /Pod/Classes/Entities/DropboxUserMembershipInfo.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxUserMembershipInfo.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 26.04.16. 6 | // 7 | // 8 | 9 | #import 10 | #import "DropboxBaseMembershipInfo.h" 11 | #import "DropboxUserInfo.h" 12 | 13 | /** 14 | * The information about a user member of the shared folder. 15 | */ 16 | @interface DropboxUserMembershipInfo : DropboxBaseMembershipInfo 17 | 18 | /** 19 | * The account information for the membership user. 20 | */ 21 | @property (nonatomic, nonnull) DropboxUserInfo *user; 22 | 23 | @end 24 | -------------------------------------------------------------------------------- /Pod/Classes/Entities/DropboxUserMembershipInfo.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxUserMembershipInfo.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 26.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxUserMembershipInfo.h" 10 | 11 | @implementation DropboxUserMembershipInfo 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /Pod/Classes/Entities/DropboxVideoMetadata.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxVideoMetadata.h 3 | // ObjectiveDropbox 4 | // 5 | // Created by Михаил Мотыженков on 15.03.16. 6 | // Copyright © 2016 Михаил Мотыженков. All rights reserved. 7 | // 8 | 9 | #import "DropboxMediaMetadata.h" 10 | 11 | @interface DropboxVideoMetadata : DropboxMediaMetadata 12 | 13 | /** 14 | * The duration of the video in milliseconds. 15 | */ 16 | @property (nonatomic) UInt64 duration; 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /Pod/Classes/Entities/DropboxVideoMetadata.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxVideoMetadata.m 3 | // ObjectiveDropbox 4 | // 5 | // Created by Михаил Мотыженков on 15.03.16. 6 | // Copyright © 2016 Михаил Мотыженков. All rights reserved. 7 | // 8 | 9 | #import "DropboxVideoMetadata.h" 10 | 11 | @implementation DropboxVideoMetadata 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /Pod/Classes/Entities/Errors/DropboxError.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxError.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 14.04.16. 6 | // 7 | // 8 | 9 | #import 10 | 11 | @interface DropboxError : NSObject 12 | 13 | @property (nonatomic, nonnull) NSString *errorSummary; 14 | 15 | - (nonnull instancetype)initWithErrorSummary:(NSString * _Nonnull)errorSummary; 16 | 17 | @end 18 | -------------------------------------------------------------------------------- /Pod/Classes/Entities/Errors/DropboxError.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxError.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 14.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxError.h" 10 | 11 | @implementation DropboxError 12 | 13 | - (instancetype)initWithErrorSummary:(NSString *)errorSummary 14 | { 15 | self = [self init]; 16 | self.errorSummary = errorSummary; 17 | return self; 18 | } 19 | 20 | - (NSString *)description 21 | { 22 | return [NSString stringWithFormat:@"DropboxError: %@", self.errorSummary]; 23 | } 24 | 25 | @end 26 | -------------------------------------------------------------------------------- /Pod/Classes/Entities/Errors/DropboxErrorBadInputParameter.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxErrorBadInputParameter.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 14.04.16. 6 | // 7 | // 8 | 9 | #import 10 | #import "DropboxError.h" 11 | 12 | @interface DropboxErrorBadInputParameter : DropboxError 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pod/Classes/Entities/Errors/DropboxErrorBadInputParameter.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxErrorBadInputParameter.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 14.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxErrorBadInputParameter.h" 10 | 11 | @implementation DropboxErrorBadInputParameter 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /Pod/Classes/Entities/Errors/DropboxErrorBadOrExpiredToken.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxErrorBadOrExpiredToken.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 14.04.16. 6 | // 7 | // 8 | 9 | #import 10 | #import "DropboxError.h" 11 | 12 | @interface DropboxErrorBadOrExpiredToken : DropboxError 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pod/Classes/Entities/Errors/DropboxErrorBadOrExpiredToken.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxErrorBadOrExpiredToken.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 14.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxErrorBadOrExpiredToken.h" 10 | 11 | @implementation DropboxErrorBadOrExpiredToken 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /Pod/Classes/Entities/Errors/DropboxErrorDropboxServers.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxErrorOnDropboxServers.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 14.04.16. 6 | // 7 | // 8 | 9 | #import 10 | #import "DropboxError.h" 11 | 12 | @interface DropboxErrorDropboxServers : DropboxError 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pod/Classes/Entities/Errors/DropboxErrorDropboxServers.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxErrorOnDropboxServers.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 14.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxErrorDropboxServers.h" 10 | 11 | @implementation DropboxErrorDropboxServers 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /Pod/Classes/Entities/Errors/DropboxErrorEndpointSpecific.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxErrorEndpointSpecific.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 14.04.16. 6 | // 7 | // 8 | 9 | #import 10 | #import "DropboxError.h" 11 | 12 | @interface DropboxErrorEndpointSpecific : DropboxError 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pod/Classes/Entities/Errors/DropboxErrorEndpointSpecific.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxErrorEndpointSpecific.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 14.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxErrorEndpointSpecific.h" 10 | 11 | @implementation DropboxErrorEndpointSpecific 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /Pod/Classes/Entities/Errors/DropboxErrorTooManyRequests.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxErrorTooManyRequests.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 14.04.16. 6 | // 7 | // 8 | 9 | #import 10 | #import "DropboxError.h" 11 | 12 | @interface DropboxErrorTooManyRequests : DropboxError 13 | 14 | @property (nonatomic) double retryAfterSeconds; 15 | 16 | - (nonnull instancetype)initWithErrorSummary:(NSString * _Nonnull)errorSummary retryAfterSeconds:(double)retryAfterSeconds; 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /Pod/Classes/Entities/Errors/DropboxErrorTooManyRequests.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxErrorTooManyRequests.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 14.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxErrorTooManyRequests.h" 10 | 11 | @implementation DropboxErrorTooManyRequests 12 | 13 | - (instancetype)initWithErrorSummary:(NSString *)errorSummary retryAfterSeconds:(double)retryAfterSeconds 14 | { 15 | self = [self initWithErrorSummary:errorSummary]; 16 | self.retryAfterSeconds = retryAfterSeconds; 17 | return self; 18 | } 19 | 20 | @end 21 | -------------------------------------------------------------------------------- /Pod/Classes/Entities/Errors/DropboxErrors.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxErrors.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 14.04.16. 6 | // 7 | // 8 | 9 | #ifndef DropboxErrors_h 10 | #define DropboxErrors_h 11 | 12 | #import "DropboxError.h" 13 | #import "DropboxErrorBadInputParameter.h" 14 | #import "DropboxErrorBadOrExpiredToken.h" 15 | #import "DropboxErrorEndpointSpecific.h" 16 | #import "DropboxErrorTooManyRequests.h" 17 | #import "DropboxErrorDropboxServers.h" 18 | #import "ObjectiveDropboxError.h" 19 | 20 | #endif /* DropboxErrors_h */ 21 | -------------------------------------------------------------------------------- /Pod/Classes/Entities/Errors/ObjectiveDropboxError.h: -------------------------------------------------------------------------------- 1 | // 2 | // ObjectiveDropboxError.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 18.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxError.h" 10 | 11 | @interface ObjectiveDropboxError : DropboxError 12 | 13 | + (nonnull ObjectiveDropboxError *)errorWithSummary:(NSString * _Nonnull)errorSummary; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /Pod/Classes/Entities/Errors/ObjectiveDropboxError.m: -------------------------------------------------------------------------------- 1 | // 2 | // ObjectiveDropboxError.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 18.04.16. 6 | // 7 | // 8 | 9 | #import "ObjectiveDropboxError.h" 10 | 11 | @implementation ObjectiveDropboxError 12 | 13 | + (ObjectiveDropboxError *)errorWithSummary:(NSString *)errorSummary 14 | { 15 | ObjectiveDropboxError *error = [[ObjectiveDropboxError alloc] initWithErrorSummary:errorSummary]; 16 | return error; 17 | } 18 | 19 | @end 20 | -------------------------------------------------------------------------------- /Pod/Classes/Helper categories/NSArray+ArrayOfDictionaries.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSArray+DictionarySerializer.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 22.04.16. 6 | // 7 | // 8 | 9 | #import 10 | #import "DictionarySerializer.h" 11 | 12 | @interface NSArray (ArrayOfDictionaries) 13 | 14 | - (NSArray * _Nonnull)arrayOfDictionaries; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /Pod/Classes/Helper categories/NSArray+ArrayOfStrings.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSArray+ArrayOfStrings.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 25.04.16. 6 | // 7 | // 8 | 9 | #import 10 | #import "EnumToStringSerializer.h" 11 | 12 | @interface NSArray (ArrayOfStrings) 13 | 14 | - (NSArray * _Nonnull)arrayOfStringsWithSerializer:(Class _Nonnull)serializerType; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /Pod/Classes/Helper categories/NSDate+DateToDropboxString.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSDate+DateToDropboxString.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 21.04.16. 6 | // 7 | // 8 | 9 | #import 10 | 11 | @interface NSDate (DateToDropboxString) 12 | 13 | - (NSString * _Nonnull)dropboxDate; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /Pod/Classes/Helper categories/NSDate+DateToDropboxString.m: -------------------------------------------------------------------------------- 1 | // 2 | // NSDate+DateToDropboxString.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 21.04.16. 6 | // 7 | // 8 | 9 | #import "NSDate+DateToDropboxString.h" 10 | 11 | @implementation NSDate (DateToDropboxString) 12 | 13 | - (NSString *)dropboxDate 14 | { 15 | NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init]; 16 | NSTimeZone *timeZone = [NSTimeZone timeZoneWithName:@"UTC"]; 17 | [dateFormatter setTimeZone:timeZone]; 18 | [dateFormatter setDateFormat:@"yyyy-MM-dd'T'HH:mm:ss'Z'"]; 19 | NSString *dateString = [dateFormatter stringFromDate:self]; 20 | return dateString; 21 | } 22 | 23 | @end 24 | -------------------------------------------------------------------------------- /Pod/Classes/Helper categories/NSObject+GetTopMostViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSObject+GetTopMostViewController.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 19.04.16. 6 | // 7 | // 8 | 9 | #import 10 | 11 | @interface NSObject (GetTopMostViewController) 12 | 13 | - (UIViewController *)getTopMostViewController; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /Pod/Classes/Helper categories/NSString+DropboxStringToDate.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSString+DropboxStringToDate.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 08.04.16. 6 | // 7 | // 8 | 9 | #import 10 | 11 | @interface NSString (DropboxStringToDate) 12 | 13 | - (nullable NSDate *)date; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /Pod/Classes/Helper categories/NSString+DropboxStringToDate.m: -------------------------------------------------------------------------------- 1 | // 2 | // NSString+DropboxStringToDate.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 08.04.16. 6 | // 7 | // 8 | 9 | #import "NSString+DropboxStringToDate.h" 10 | 11 | @implementation NSString (DropboxStringToDate) 12 | 13 | - (NSDate *)date 14 | { 15 | NSDateFormatter *dateFormat = [[NSDateFormatter alloc] init]; 16 | [dateFormat setDateFormat:@"yyyy-MM-dd'T'HH:mm:ss'Z'"]; 17 | [dateFormat setTimeZone:[NSTimeZone timeZoneWithAbbreviation:@"UTC"]]; 18 | NSDate *result = [dateFormat dateFromString:self]; 19 | return result; 20 | } 21 | 22 | @end 23 | -------------------------------------------------------------------------------- /Pod/Classes/Helper categories/NSString+Helpers.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSString+Helpers.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 19.05.16. 6 | // 7 | // 8 | 9 | #import 10 | 11 | @interface NSString (Helpers) 12 | 13 | - (NSString * _Nullable)stringBetweenString1:(NSString * _Nonnull)string1 andString2:(NSString * _Nonnull)string2; 14 | - (NSString * _Nullable)stringAfterString:(NSString * _Nonnull)string; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /Pod/Classes/Helper categories/NSURL+FileOperations.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSURL+FileSize.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 11.05.16. 6 | // 7 | // 8 | 9 | #import 10 | 11 | @interface NSURL (FileOperations) 12 | 13 | - (NSArray * _Nullable)splitFileBySizeInBytes:(unsigned long)pieceSize error:(NSError * _Nullable * _Nullable)error; 14 | - (unsigned long long)fileSizeWithError:(NSError * _Nullable * _Nullable)error; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /Pod/Classes/Http/DropboxDownloadTaskDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxDownloadTaskDelegate.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 13.05.16. 6 | // 7 | // 8 | 9 | #import 10 | 11 | @protocol DropboxDownloadTaskDelegate 12 | 13 | - (void)downloadTaskDidResumeWithOldTask:(NSURLSessionDownloadTask *)oldTask newTask:(NSURLSessionDownloadTask *)newTask session:(NSURLSession *)session; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /Pod/Classes/Http/DropboxDownloadTaskStorage.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxDownloadTaskStorage.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 06.05.16. 6 | // 7 | // 8 | 9 | #import 10 | #import "DropboxUrlSessionHandlers.h" 11 | 12 | @interface DropboxDownloadTaskStorage : NSObject 13 | 14 | @property (nonatomic) DownloadTaskSuccessHandler successHandler; 15 | @property (nonatomic) DownloadTaskProgressHandler progressHandler; 16 | @property (nonatomic) DownloadTaskFailHandler failHandler; 17 | @property (nonatomic) NSURLSessionDownloadTask *task; 18 | @property (nonatomic) NSData *resumeData; 19 | @property (nonatomic) NSURL *destinationUrl; 20 | 21 | @end 22 | -------------------------------------------------------------------------------- /Pod/Classes/Http/DropboxDownloadTaskStorage.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxDownloadTaskStorage.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 06.05.16. 6 | // 7 | // 8 | 9 | #import "DropboxDownloadTaskStorage.h" 10 | 11 | @implementation DropboxDownloadTaskStorage 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /Pod/Classes/Http/DropboxUploadTask.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxUploadTask.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 13.05.16. 6 | // 7 | // 8 | 9 | #import 10 | 11 | @interface DropboxUploadTask : NSObject 12 | 13 | - (instancetype)initWithTask:(NSURLSessionUploadTask *)task; 14 | 15 | - (void)cancel; 16 | - (void)suspend; 17 | - (void)resume; 18 | 19 | @property (nonatomic) NSURLSessionUploadTask *task; 20 | 21 | @end 22 | -------------------------------------------------------------------------------- /Pod/Classes/Http/DropboxUploadTask.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxUploadTask.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 13.05.16. 6 | // 7 | // 8 | 9 | #import "DropboxUploadTask.h" 10 | 11 | @implementation DropboxUploadTask 12 | 13 | - (instancetype)initWithTask:(NSURLSessionUploadTask *)task 14 | { 15 | self = [self init]; 16 | if (self) { 17 | _task = task; 18 | } 19 | return self; 20 | } 21 | 22 | - (void)cancel 23 | { 24 | [self.task cancel]; 25 | } 26 | 27 | - (void)suspend 28 | { 29 | [self.task suspend]; 30 | } 31 | 32 | - (void)resume 33 | { 34 | [self.task resume]; 35 | } 36 | 37 | 38 | @end 39 | -------------------------------------------------------------------------------- /Pod/Classes/Http/DropboxUploadTaskStorage.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxUploadTaskStorage.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 06.05.16. 6 | // 7 | // 8 | 9 | #import 10 | #import "DropboxUrlSessionHandlers.h" 11 | 12 | @interface DropboxUploadTaskStorage : NSObject 13 | 14 | @property (nonatomic) UploadTaskSuccessHandler successHandler; 15 | @property (nonatomic) UploadTaskProgressHandler progressHandler; 16 | @property (nonatomic) UploadTaskFailHandler failHandler; 17 | @property (nonatomic) NSURLSessionUploadTask *task; 18 | 19 | @end 20 | -------------------------------------------------------------------------------- /Pod/Classes/Http/DropboxUploadTaskStorage.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxUploadTaskStorage.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 06.05.16. 6 | // 7 | // 8 | 9 | #import "DropboxUploadTaskStorage.h" 10 | 11 | @implementation DropboxUploadTaskStorage 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /Pod/Classes/Http/DropboxUrlSessionDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxUrlSessionDelegate.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 06.05.16. 6 | // 7 | // 8 | 9 | #import 10 | #import "DropboxUrlSessionDelegateProtocol.h" 11 | #import "DropboxDownloadTaskDelegate.h" 12 | 13 | @interface DropboxUrlSessionDelegate : NSObject 14 | 15 | - (void)restartAllTasksFromSession:(NSURLSession *)session; 16 | 17 | @end 18 | -------------------------------------------------------------------------------- /Pod/Classes/Parsers/DictionaryParseManager.h: -------------------------------------------------------------------------------- 1 | // 2 | // DictionaryParseManager.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 30.04.16. 6 | // 7 | // 8 | 9 | #import 10 | 11 | @protocol DictionaryParseManager 12 | 13 | + (nullable id)parseDic:(NSDictionary * _Nonnull)dic; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /Pod/Classes/Parsers/DictionaryParser.h: -------------------------------------------------------------------------------- 1 | // 2 | // InitWithDictionaryProtocol.h 3 | // ObjectiveDropbox 4 | // 5 | // Created by Михаил Мотыженков on 28.03.16. 6 | // Copyright © 2016 Михаил Мотыженков. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @protocol DictionaryParser 12 | 13 | - (nonnull instancetype)initWithDictionary:(NSDictionary * _Nonnull)dic; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /Pod/Classes/Parsers/DropboxAccessLevelDictionaryParser.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxAccessLevelDictionaryParser.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 22.04.16. 6 | // 7 | // 8 | 9 | #import 10 | #import "DropboxAccessLevel.h" 11 | 12 | @interface DropboxAccessLevelDictionaryParser : NSObject 13 | 14 | + (DropboxAccessLevel)accessLevelFromDictionary:(NSDictionary * _Nonnull)dic; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /Pod/Classes/Parsers/DropboxAccountTypeParser.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxAccountTypeParser.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 27.04.16. 6 | // 7 | // 8 | 9 | #import 10 | #import "DropboxAccountType.h" 11 | 12 | @interface DropboxAccountTypeParser : NSObject 13 | 14 | + (DropboxAccountType)accountTypeFromString:(NSString * _Nonnull)string; 15 | + (DropboxAccountType)accountTypeFromDictionary:(NSDictionary * _Nonnull)dic; 16 | 17 | @end 18 | -------------------------------------------------------------------------------- /Pod/Classes/Parsers/DropboxAclUpdatePolicyParser.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxAclUpdatePolicyParser.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 27.04.16. 6 | // 7 | // 8 | 9 | #import 10 | #import "DropboxAclUpdatePolicy.h" 11 | 12 | @interface DropboxAclUpdatePolicyParser : NSObject 13 | 14 | + (DropboxAclUpdatePolicy)aclUpdatePolicyFromDictionary:(NSDictionary * _Nonnull)dic; 15 | + (DropboxAclUpdatePolicy)aclUpdatePolicyFromString:(NSString * _Nonnull)string; 16 | 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /Pod/Classes/Parsers/DropboxBaseMembershipInfo+DictionaryParser.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxBaseMembershipInfo+DictionaryParser.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 26.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxBaseMembershipInfo.h" 10 | #import "DictionaryParser.h" 11 | 12 | @interface DropboxBaseMembershipInfo (DictionaryParser) 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pod/Classes/Parsers/DropboxBaseSpaceAllocation+DictionaryParser.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxBaseSpaceAllocation+DictionaryParser.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 28.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxBaseSpaceAllocation.h" 10 | #import "DictionaryParser.h" 11 | 12 | @interface DropboxBaseSpaceAllocation (DictionaryParser) 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pod/Classes/Parsers/DropboxBaseSpaceAllocation+DictionaryParser.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxBaseSpaceAllocation+DictionaryParser.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 28.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxBaseSpaceAllocation+DictionaryParser.h" 10 | #import "DictionaryParseHelper.h" 11 | 12 | @implementation DropboxBaseSpaceAllocation (DictionaryParser) 13 | 14 | - (instancetype)initWithDictionary:(NSDictionary *)dic 15 | { 16 | self = [self init]; 17 | if (self) { 18 | DictionaryParseHelper *helper = [[DictionaryParseHelper alloc] initWithDictionary:dic]; 19 | self.allocated = [helper uint64WithKey:@"allocated"]; 20 | } 21 | return self; 22 | } 23 | 24 | @end 25 | -------------------------------------------------------------------------------- /Pod/Classes/Parsers/DropboxBasicAccount+DictionaryParser.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxBasicAccount+DictionaryParser.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 27.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxBasicAccount.h" 10 | #import "DictionaryParser.h" 11 | 12 | @interface DropboxBasicAccount (DictionaryParser) 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pod/Classes/Parsers/DropboxDeletedMetadata+DictionaryParser.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxDeletedMetadata+DictionaryParser.h 3 | // ObjectiveDropbox 4 | // 5 | // Created by Михаил Мотыженков on 28.03.16. 6 | // Copyright © 2016 Михаил Мотыженков. All rights reserved. 7 | // 8 | 9 | #import "DropboxDeletedMetadata.h" 10 | #import "DropboxMetadata+DictionaryParser.h" 11 | 12 | @interface DropboxDeletedMetadata (DictionaryParser) 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pod/Classes/Parsers/DropboxDeletedMetadata+DictionaryParser.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxDeletedMetadata+DictionaryParser.m 3 | // ObjectiveDropbox 4 | // 5 | // Created by Михаил Мотыженков on 28.03.16. 6 | // Copyright © 2016 Михаил Мотыженков. All rights reserved. 7 | // 8 | 9 | #import "DropboxDeletedMetadata+DictionaryParser.h" 10 | 11 | @implementation DropboxDeletedMetadata (DictionaryParser) 12 | 13 | - (instancetype)initWithDictionary:(NSDictionary *)dic 14 | { 15 | return [super initWithDictionary:dic]; 16 | } 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /Pod/Classes/Parsers/DropboxDimensions+DictionaryParser.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxDimensions+DictionaryParser.h 3 | // ObjectiveDropbox 4 | // 5 | // Created by Михаил Мотыженков on 28.03.16. 6 | // Copyright © 2016 Михаил Мотыженков. All rights reserved. 7 | // 8 | 9 | #import "DropboxDimensions.h" 10 | #import "DictionaryParser.h" 11 | 12 | @interface DropboxDimensions (DictionaryParser) 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pod/Classes/Parsers/DropboxFileLinkMetadata+DictionaryParser.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxFileLinkMetadata+DictionaryParser.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 25.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxFileLinkMetadata.h" 10 | #import "DictionaryParser.h" 11 | 12 | @interface DropboxFileLinkMetadata (DictionaryParser) 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pod/Classes/Parsers/DropboxFileMetadata+DictionaryParser.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxFileMetadata+DictionaryParser.h 3 | // ObjectiveDropbox 4 | // 5 | // Created by Михаил Мотыженков on 28.03.16. 6 | // Copyright © 2016 Михаил Мотыженков. All rights reserved. 7 | // 8 | 9 | #import "DropboxFileMetadata.h" 10 | #import "DropboxMetadata+DictionaryParser.h" 11 | 12 | @interface DropboxFileMetadata (DictionaryParser) 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pod/Classes/Parsers/DropboxFileSharingInfo+DictionaryParser.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxFileSharingInfo+DictionaryParser.h 3 | // ObjectiveDropbox 4 | // 5 | // Created by Михаил Мотыженков on 28.03.16. 6 | // Copyright © 2016 Михаил Мотыженков. All rights reserved. 7 | // 8 | 9 | #import "DropboxFileSharingInfo.h" 10 | #import "DropboxFileSystemSharingInfo+DictionaryParser.h" 11 | 12 | @interface DropboxFileSharingInfo (DictionaryParser) 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pod/Classes/Parsers/DropboxFileSystemSharingInfo+DictionaryParser.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxFileSystemSharingInfo+DictionaryParser.h 3 | // ObjectiveDropbox 4 | // 5 | // Created by Михаил Мотыженков on 28.03.16. 6 | // Copyright © 2016 Михаил Мотыженков. All rights reserved. 7 | // 8 | 9 | #import "DropboxFileSystemSharingInfo.h" 10 | #import "DictionaryParser.h" 11 | 12 | @interface DropboxFileSystemSharingInfo (DictionaryParser) 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pod/Classes/Parsers/DropboxFolderActionParser.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxFolderActionParser.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 25.04.16. 6 | // 7 | // 8 | 9 | #import 10 | #import "DropboxFolderAction.h" 11 | 12 | @interface DropboxFolderActionParser : NSObject 13 | 14 | + (DropboxFolderAction)folderActionFromString:(NSString * _Nonnull)string; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /Pod/Classes/Parsers/DropboxFolderLinkMetadata+DictionaryParser.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxFolderLinkMetadata+DictionaryParser.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 25.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxFolderLinkMetadata.h" 10 | #import "DictionaryParser.h" 11 | 12 | @interface DropboxFolderLinkMetadata (DictionaryParser) 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pod/Classes/Parsers/DropboxFolderLinkMetadata+DictionaryParser.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxFolderLinkMetadata+DictionaryParser.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 25.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxFolderLinkMetadata+DictionaryParser.h" 10 | #import "DropboxSharedLinkMetadata+DictionaryParser.h" 11 | 12 | @implementation DropboxFolderLinkMetadata (DictionaryParser) 13 | 14 | - (instancetype)initWithDictionary:(NSDictionary *)dic 15 | { 16 | return [super initWithDictionary:dic]; 17 | } 18 | 19 | @end 20 | -------------------------------------------------------------------------------- /Pod/Classes/Parsers/DropboxFolderMetadata+DictionaryParser.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxFolderMetadata+DictionaryParser.h 3 | // ObjectiveDropbox 4 | // 5 | // Created by Михаил Мотыженков on 28.03.16. 6 | // Copyright © 2016 Михаил Мотыженков. All rights reserved. 7 | // 8 | 9 | #import "DropboxFolderMetadata.h" 10 | #import "DropboxMetadata+DictionaryParser.h" 11 | 12 | @interface DropboxFolderMetadata (DictionaryParser) 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pod/Classes/Parsers/DropboxFolderPermission+DictionaryParser.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxFolderPermission+DictionaryParser.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 22.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxFolderPermission.h" 10 | #import "DictionaryParser.h" 11 | 12 | @interface DropboxFolderPermission (DictionaryParser) 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pod/Classes/Parsers/DropboxFolderPolicy+DictionaryParser.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxFolderPolicy+DictionaryParser.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 22.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxFolderPolicy.h" 10 | #import "DictionaryParser.h" 11 | 12 | @interface DropboxFolderPolicy (DictionaryParser) 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pod/Classes/Parsers/DropboxFolderSharingInfo+DictionaryParser.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxFolderSharingInfo+DictionaryParser.h 3 | // ObjectiveDropbox 4 | // 5 | // Created by Михаил Мотыженков on 28.03.16. 6 | // Copyright © 2016 Михаил Мотыженков. All rights reserved. 7 | // 8 | 9 | #import "DropboxFolderSharingInfo.h" 10 | #import "DropboxFileSystemSharingInfo+DictionaryParser.h" 11 | 12 | @interface DropboxFolderSharingInfo (DictionaryParser) 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pod/Classes/Parsers/DropboxFullAccount+DictionaryParser.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxFullAccount+DictionaryParser.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 28.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxFullAccount.h" 10 | #import "DictionaryParser.h" 11 | 12 | @interface DropboxFullAccount (DictionaryParser) 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pod/Classes/Parsers/DropboxFullTeam+DictionaryParser.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxFullTeam+DictionaryParser.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 28.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxFullTeam.h" 10 | #import "DictionaryParser.h" 11 | 12 | @interface DropboxFullTeam (DictionaryParser) 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pod/Classes/Parsers/DropboxGetTemporaryLinkResult+DictionaryParser.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxGetTemporaryLinkResult+DictionaryParser.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 18.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxGetTemporaryLinkResult.h" 10 | #import "DictionaryParser.h" 11 | 12 | @interface DropboxGetTemporaryLinkResult (DictionaryParser) 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pod/Classes/Parsers/DropboxGpsCoordinates+DictionaryParser.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxGpsCoordinates+DictionaryParser.h 3 | // ObjectiveDropbox 4 | // 5 | // Created by Михаил Мотыженков on 28.03.16. 6 | // Copyright © 2016 Михаил Мотыженков. All rights reserved. 7 | // 8 | 9 | #import "DropboxGpsCoordinates.h" 10 | #import "DictionaryParser.h" 11 | 12 | @interface DropboxGpsCoordinates (DictionaryParser) 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pod/Classes/Parsers/DropboxGroupInfo+DictionaryParser.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxGroupInfo+DictionaryParser.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 26.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxGroupInfo.h" 10 | #import "DictionaryParser.h" 11 | 12 | @interface DropboxGroupInfo (DictionaryParser) 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pod/Classes/Parsers/DropboxGroupMembershipInfo+DictionaryParser.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxGroupMembershipInfo+DictionaryParser.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 26.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxGroupMembershipInfo.h" 10 | #import "DictionaryParser.h" 11 | 12 | @interface DropboxGroupMembershipInfo (DictionaryParser) 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pod/Classes/Parsers/DropboxGroupTypeParser.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxGroupTypeParser.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 26.04.16. 6 | // 7 | // 8 | 9 | #import 10 | #import "DropboxGroupType.h" 11 | 12 | @interface DropboxGroupTypeParser : NSObject 13 | 14 | + (DropboxGroupType)groupTypeFromString:(NSString * _Nonnull)string; 15 | + (DropboxGroupType)groupTypeFromDictinary:(NSDictionary * _Nonnull)dic; 16 | 17 | @end 18 | -------------------------------------------------------------------------------- /Pod/Classes/Parsers/DropboxIndividualSpaceAllocation+DictionaryParser.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxIndividualSpaceAllocation+DictionaryParser.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 28.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxIndividualSpaceAllocation.h" 10 | #import "DictionaryParser.h" 11 | 12 | @interface DropboxIndividualSpaceAllocation (DictionaryParser) 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pod/Classes/Parsers/DropboxIndividualSpaceAllocation+DictionaryParser.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxIndividualSpaceAllocation+DictionaryParser.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 28.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxIndividualSpaceAllocation+DictionaryParser.h" 10 | #import "DropboxBaseSpaceAllocation+DictionaryParser.h" 11 | 12 | @implementation DropboxIndividualSpaceAllocation (DictionaryParser) 13 | 14 | - (instancetype)initWithDictionary:(NSDictionary *)dic 15 | { 16 | return [super initWithDictionary:dic]; 17 | } 18 | 19 | @end 20 | -------------------------------------------------------------------------------- /Pod/Classes/Parsers/DropboxInviteeInfo+DictionaryParser.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxInviteeInfo+DictionaryParser.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 26.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxInviteeInfo.h" 10 | #import "DictionaryParser.h" 11 | 12 | @interface DropboxInviteeInfo (DictionaryParser) 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pod/Classes/Parsers/DropboxInviteeInfoEnumParser.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxInviteeInfoParser.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 26.04.16. 6 | // 7 | // 8 | 9 | #import 10 | #import "DropboxInviteeInfoEnum.h" 11 | 12 | @interface DropboxInviteeInfoEnumParser : NSObject 13 | 14 | + (DropboxInviteeInfoEnum)inviteeInfoFromString:(NSString * _Nonnull)string; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /Pod/Classes/Parsers/DropboxInviteeInfoEnumParser.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxInviteeInfoParser.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 26.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxInviteeInfoEnumParser.h" 10 | 11 | @implementation DropboxInviteeInfoEnumParser 12 | 13 | + (DropboxInviteeInfoEnum)inviteeInfoFromString:(NSString *)string 14 | { 15 | if ([string isEqualToString:@"email"]) 16 | { 17 | return DIIEmail; 18 | } 19 | return DIINotSet; 20 | } 21 | 22 | @end 23 | -------------------------------------------------------------------------------- /Pod/Classes/Parsers/DropboxInviteeMembershipInfo+DictionaryParser.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxInviteeMembershipInfo+DictionaryParser.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 26.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxInviteeMembershipInfo.h" 10 | #import "DictionaryParser.h" 11 | 12 | @interface DropboxInviteeMembershipInfo (DictionaryParser) 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pod/Classes/Parsers/DropboxJobStatusResult+DictionaryParser.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxJobStatusResult+DictionaryParser.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 22.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxJobStatusResult.h" 10 | #import "DictionaryParser.h" 11 | 12 | @interface DropboxJobStatusResult (DictionaryParser) 13 | 14 | + (NSString * _Nullable)errorSummaryFromDictionary:(NSDictionary * _Nonnull)dic; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /Pod/Classes/Parsers/DropboxLaunchEmptyResult+DictionaryParser.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxLaunchEmptyResult+DictionaryParser.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 26.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxLaunchEmptyResult.h" 10 | #import "DictionaryParser.h" 11 | 12 | @interface DropboxLaunchEmptyResult (DictionaryParser) 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pod/Classes/Parsers/DropboxLaunchEmptyResultEnumParser.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxLaunchEmptyResultEnumParser.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 26.04.16. 6 | // 7 | // 8 | 9 | #import 10 | #import "DropboxLaunchEmptyResultEnum.h" 11 | 12 | @interface DropboxLaunchEmptyResultEnumParser : NSObject 13 | 14 | + (DropboxLaunchEmptyResultEnum)launchEmptyResultFromString:(NSString * _Nonnull)string; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /Pod/Classes/Parsers/DropboxLaunchEmptyResultEnumParser.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxLaunchEmptyResultEnumParser.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 26.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxLaunchEmptyResultEnumParser.h" 10 | 11 | @implementation DropboxLaunchEmptyResultEnumParser 12 | 13 | + (DropboxLaunchEmptyResultEnum)launchEmptyResultFromString:(NSString *)string 14 | { 15 | if ([string isEqualToString:@"async_job_id"]) 16 | { 17 | return DLERAsyncJobID; 18 | } 19 | else if ([string isEqualToString:@"complete"]) 20 | { 21 | return DLERComplete; 22 | } 23 | return DLERNotSet; 24 | } 25 | 26 | @end 27 | -------------------------------------------------------------------------------- /Pod/Classes/Parsers/DropboxLinkPermissions+DictionaryParser.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxLinkPermissions+DictionaryParser.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 24.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxLinkPermissions.h" 10 | #import "DictionaryParser.h" 11 | 12 | @interface DropboxLinkPermissions (DictionaryParser) 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pod/Classes/Parsers/DropboxListFolderGetLatestCursorResult+DictionaryParser.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxListFolderGetLatestCursorResult+DictionaryParser.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 06.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxListFolderGetLatestCursorResult.h" 10 | #import "DictionaryParser.h" 11 | 12 | @interface DropboxListFolderGetLatestCursorResult (DictionaryParser) 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pod/Classes/Parsers/DropboxListFolderLongpollResult+DictionaryParser.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxListFolderLongpollResult+DictionaryParser.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 06.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxListFolderLongpollResult.h" 10 | #import "DictionaryParser.h" 11 | 12 | @interface DropboxListFolderLongpollResult (DictionaryParser) 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pod/Classes/Parsers/DropboxListFolderResult+DictionaryParser.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxListFolderResult+DictionaryParser.h 3 | // ObjectiveDropbox 4 | // 5 | // Created by Михаил Мотыженков on 29.03.16. 6 | // Copyright © 2016 Михаил Мотыженков. All rights reserved. 7 | // 8 | 9 | #import "DropboxListFolderResult.h" 10 | #import "DictionaryParser.h" 11 | 12 | @interface DropboxListFolderResult (DictionaryParser) 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pod/Classes/Parsers/DropboxListFoldersResult+DictionaryParser.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxListFoldersArgs+DictionaryParser.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 26.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxListFoldersResult.h" 10 | #import "DictionaryParser.h" 11 | 12 | @interface DropboxListFoldersResult (DictionaryParser) 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pod/Classes/Parsers/DropboxListRevisionsResult+DictionaryParser.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxListRevisionsResult+DictionaryParser.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 06.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxListRevisionsResult.h" 10 | #import "DictionaryParser.h" 11 | 12 | @interface DropboxListRevisionsResult (DictionaryParser) 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pod/Classes/Parsers/DropboxListSharedLinksResult+DictionaryParser.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxListSharedLinksResult+DictionaryParser.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 26.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxListSharedLinksResult.h" 10 | #import "DictionaryParser.h" 11 | 12 | @interface DropboxListSharedLinksResult (DictionaryParser) 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pod/Classes/Parsers/DropboxMediaInfo+DictionaryParser.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxMediaInfo+DictionaryParser.h 3 | // ObjectiveDropbox 4 | // 5 | // Created by Михаил Мотыженков on 28.03.16. 6 | // Copyright © 2016 Михаил Мотыженков. All rights reserved. 7 | // 8 | 9 | #import "DropboxMediaInfo.h" 10 | #import "DictionaryParser.h" 11 | 12 | @interface DropboxMediaInfo (DictionaryParser) 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pod/Classes/Parsers/DropboxMediaMetadata+DictionaryParser.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxMediaMetadata+DictionaryParser.h 3 | // ObjectiveDropbox 4 | // 5 | // Created by Михаил Мотыженков on 28.03.16. 6 | // Copyright © 2016 Михаил Мотыженков. All rights reserved. 7 | // 8 | 9 | #import "DropboxMediaMetadata.h" 10 | #import "DictionaryParser.h" 11 | 12 | @interface DropboxMediaMetadata (DictionaryParser) 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pod/Classes/Parsers/DropboxMediaMetadataParseManager.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxMediaMetadataManager.h 3 | // ObjectiveDropbox 4 | // 5 | // Created by Михаил Мотыженков on 24.03.16. 6 | // Copyright © 2016 Михаил Мотыженков. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "DropboxPhotoMetadata.h" 11 | #import "DropboxVideoMetadata.h" 12 | 13 | @interface DropboxMediaMetadataParseManager : NSObject 14 | 15 | + (DropboxMediaMetadata *)initMediaMetadataWithDictionary:(NSDictionary *)dic; 16 | 17 | @end 18 | -------------------------------------------------------------------------------- /Pod/Classes/Parsers/DropboxMemberActionParser.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxMemberActionParser.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 26.04.16. 6 | // 7 | // 8 | 9 | #import 10 | #import "DropboxMemberAction.h" 11 | 12 | @interface DropboxMemberActionParser : NSObject 13 | 14 | + (DropboxMemberAction)memberActionFromString:(NSString * _Nonnull)string; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /Pod/Classes/Parsers/DropboxMemberPermission+DictionaryParser.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxMemberPermission+DictionaryParser.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 26.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxMemberPermission.h" 10 | #import "DictionaryParser.h" 11 | 12 | @interface DropboxMemberPermission (DictionaryParser) 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pod/Classes/Parsers/DropboxMemberPolicyParser.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxMemberPolicyParser.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 27.04.16. 6 | // 7 | // 8 | 9 | #import 10 | #import "DropboxMemberPolicy.h" 11 | 12 | @interface DropboxMemberPolicyParser : NSObject 13 | 14 | + (DropboxMemberPolicy)memberPolicyFromDictionary:(NSDictionary * _Nonnull)dic; 15 | + (DropboxMemberPolicy)memberPolicyFromString:(NSString * _Nonnull)string; 16 | 17 | @end 18 | -------------------------------------------------------------------------------- /Pod/Classes/Parsers/DropboxMetadata+DictionaryParser.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxMetadata+DictionaryParser.h 3 | // ObjectiveDropbox 4 | // 5 | // Created by Михаил Мотыженков on 28.03.16. 6 | // Copyright © 2016 Михаил Мотыженков. All rights reserved. 7 | // 8 | 9 | #import "DropboxMetadata.h" 10 | #import "DictionaryParser.h" 11 | 12 | @interface DropboxMetadata (DictionaryParser) 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pod/Classes/Parsers/DropboxMetadataParseManager.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxMetadataParseManager.h 3 | // ObjectiveDropbox 4 | // 5 | // Created by Михаил Мотыженков on 28.03.16. 6 | // Copyright © 2016 Михаил Мотыженков. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "DropboxMetadata.h" 11 | #import "DictionaryParseManager.h" 12 | 13 | @interface DropboxMetadataParseManager : NSObject 14 | 15 | + (id)parseDic:(NSDictionary *)dic; 16 | 17 | @end 18 | -------------------------------------------------------------------------------- /Pod/Classes/Parsers/DropboxName+DictionaryParser.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxName+DictionaryParser.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 27.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxName.h" 10 | #import "DictionaryParser.h" 11 | 12 | @interface DropboxName (DictionaryParser) 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pod/Classes/Parsers/DropboxPermissionDeniedReasonParser.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxPermissionDeniedReasonParser.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 25.04.16. 6 | // 7 | // 8 | 9 | #import 10 | #import "DropboxPermissionDeniedReason.h" 11 | 12 | @interface DropboxPermissionDeniedReasonParser : NSObject 13 | 14 | + (DropboxPermissionDeniedReason)permissionDeniedReasonFromString:(NSString * _Nonnull)string; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /Pod/Classes/Parsers/DropboxPhotoMetadata+DictionaryParser.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxPhotoMetadata+DictionaryParser.h 3 | // ObjectiveDropbox 4 | // 5 | // Created by Михаил Мотыженков on 28.03.16. 6 | // Copyright © 2016 Михаил Мотыженков. All rights reserved. 7 | // 8 | 9 | #import "DropboxPhotoMetadata.h" 10 | #import "DropboxMediaMetadata+DictionaryParser.h" 11 | 12 | @interface DropboxPhotoMetadata (DictionaryParser) 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pod/Classes/Parsers/DropboxPhotoMetadata+DictionaryParser.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxPhotoMetadata+DictionaryParser.m 3 | // ObjectiveDropbox 4 | // 5 | // Created by Михаил Мотыженков on 28.03.16. 6 | // Copyright © 2016 Михаил Мотыженков. All rights reserved. 7 | // 8 | 9 | #import "DropboxPhotoMetadata+DictionaryParser.h" 10 | 11 | @implementation DropboxPhotoMetadata (DictionaryParser) 12 | 13 | - (instancetype)initWithDictionary:(NSDictionary *)dic 14 | { 15 | return [super initWithDictionary:dic]; 16 | } 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /Pod/Classes/Parsers/DropboxRequestedVisibilityParser.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxRequestedVisibilityParser.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 24.04.16. 6 | // 7 | // 8 | 9 | #import 10 | #import "DropboxRequestedVisibility.h" 11 | 12 | @interface DropboxRequestedVisibilityParser : NSObject 13 | 14 | + (DropboxRequestedVisibility)requestedVisibilityFromString:(NSString * _Nonnull)string; 15 | + (DropboxRequestedVisibility)requestedVisibilityFromDictionary:(NSDictionary * _Nonnull)dic; 16 | 17 | @end 18 | -------------------------------------------------------------------------------- /Pod/Classes/Parsers/DropboxResolvedVisibilityParser.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxResolvedVisibilityParser.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 24.04.16. 6 | // 7 | // 8 | 9 | #import 10 | #import "DropboxResolvedVisibility.h" 11 | 12 | @interface DropboxResolvedVisibilityParser : NSObject 13 | 14 | + (DropboxResolvedVisibility)resolvedVisibilityFromString:(NSString * _Nonnull)string; 15 | + (DropboxResolvedVisibility)resolvedVisibilityFromDictionary:(NSDictionary * _Nonnull)dic; 16 | 17 | @end 18 | -------------------------------------------------------------------------------- /Pod/Classes/Parsers/DropboxSearchMatch+DictionaryParser.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxSearchMatch+DictionaryParser.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 21.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxSearchMatch.h" 10 | #import "DictionaryParser.h" 11 | 12 | @interface DropboxSearchMatch (DictionaryParser) 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pod/Classes/Parsers/DropboxSearchMatchTypeParseManager.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxSearchMatchTypeDictionaryParser.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 21.04.16. 6 | // 7 | // 8 | 9 | #import 10 | #import "DropboxSearchMatchType.h" 11 | 12 | @interface DropboxSearchMatchTypeParseManager : NSObject 13 | 14 | + (DropboxSearchMatchType)searchMatchTypeFromDictionary:(NSDictionary * _Nonnull)dic; 15 | + (DropboxSearchMatchType)searchMatchTypeFromString:(NSString * _Nonnull)string; 16 | 17 | @end 18 | -------------------------------------------------------------------------------- /Pod/Classes/Parsers/DropboxSearchResult+DictionaryParser.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxSearchResult+DictionaryParser.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 21.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxSearchResult.h" 10 | #import "DictionaryParser.h" 11 | 12 | @interface DropboxSearchResult (DictionaryParser) 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pod/Classes/Parsers/DropboxShareFolderJobStatusResult+DictionaryParser.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxShareFolderJobStatusResult+DictionaryParser.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 22.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxShareFolderJobStatusResult.h" 10 | #import "DictionaryParser.h" 11 | 12 | @interface DropboxShareFolderJobStatusResult (DictionaryParser) 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pod/Classes/Parsers/DropboxShareFolderLaunch+DictionaryParser.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxShareFolderLaunch+DictionaryParser.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 27.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxShareFolderLaunch.h" 10 | #import "DictionaryParser.h" 11 | 12 | @interface DropboxShareFolderLaunch (DictionaryParser) 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pod/Classes/Parsers/DropboxShareFolderLaunchEnumParser.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxShareFolderLaunchEnumParser.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 27.04.16. 6 | // 7 | // 8 | 9 | #import 10 | #import "DropboxShareFolderLaunchEnum.h" 11 | 12 | @interface DropboxShareFolderLaunchEnumParser : NSObject 13 | 14 | + (DropboxShareFolderLaunchEnum)enumFromString:(NSString * _Nonnull)string; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /Pod/Classes/Parsers/DropboxShareFolderLaunchEnumParser.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxShareFolderLaunchEnumParser.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 27.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxShareFolderLaunchEnumParser.h" 10 | 11 | @implementation DropboxShareFolderLaunchEnumParser 12 | 13 | + (DropboxShareFolderLaunchEnum)enumFromString:(NSString *)string 14 | { 15 | if ([string isEqualToString:@"async_job_id"]) 16 | { 17 | return DSFLAsyncJobID; 18 | } 19 | else if ([string isEqualToString:@"complete"]) 20 | { 21 | return DSFLComplete; 22 | } 23 | return DSFLNotSet; 24 | } 25 | 26 | @end 27 | -------------------------------------------------------------------------------- /Pod/Classes/Parsers/DropboxSharedFolderJoinPolicyParser.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxSharedFolderJoinPolicyParser.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 28.04.16. 6 | // 7 | // 8 | 9 | #import 10 | #import "DropboxSharedFolderJoinPolicy.h" 11 | 12 | @interface DropboxSharedFolderJoinPolicyParser : NSObject 13 | 14 | + (DropboxSharedFolderJoinPolicy)sharedFolderJoinPolicyFromString:(NSString * _Nonnull)string; 15 | + (DropboxSharedFolderJoinPolicy)sharedFolderJoinPolicyFromDictionary:(NSDictionary * _Nonnull)dic; 16 | 17 | @end 18 | -------------------------------------------------------------------------------- /Pod/Classes/Parsers/DropboxSharedFolderMemberPolicyParser.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxSharedFolderMemberPolicyParser.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 28.04.16. 6 | // 7 | // 8 | 9 | #import 10 | #import "DropboxSharedFolderMemberPolicy.h" 11 | 12 | @interface DropboxSharedFolderMemberPolicyParser : NSObject 13 | 14 | + (DropboxSharedFolderMemberPolicy)sharedFolderMemberPolicyFromString:(NSString * _Nonnull)string; 15 | + (DropboxSharedFolderMemberPolicy)sharedFolderMemberPolicyFromDictionary:(NSDictionary * _Nonnull)dic; 16 | 17 | @end 18 | -------------------------------------------------------------------------------- /Pod/Classes/Parsers/DropboxSharedFolderMembers+DictionaryParser.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxSharedFolderMembers+DictionaryParser.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 26.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxSharedFolderMembers.h" 10 | #import "DictionaryParser.h" 11 | 12 | @interface DropboxSharedFolderMembers (DictionaryParser) 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pod/Classes/Parsers/DropboxSharedFolderMetadata+DictionaryParser.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxSharedFolderMetadata+DictionaryParser.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 22.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxSharedFolderMetadata.h" 10 | #import "DictionaryParser.h" 11 | 12 | @interface DropboxSharedFolderMetadata (DictionaryParser) 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pod/Classes/Parsers/DropboxSharedLinkAccessFailureReasonParser.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxSharedLinkAccessFailureReasonParser.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 24.04.16. 6 | // 7 | // 8 | 9 | #import 10 | #import "DropboxSharedLinkAccessFailureReason.h" 11 | 12 | @interface DropboxSharedLinkAccessFailureReasonParser : NSObject 13 | 14 | + (DropboxSharedLinkAccessFailureReason)reasonFromString:(NSString * _Nonnull)string; 15 | + (DropboxSharedLinkAccessFailureReason)reasonFromDictionary:(NSDictionary * _Nonnull)dic; 16 | 17 | @end 18 | -------------------------------------------------------------------------------- /Pod/Classes/Parsers/DropboxSharedLinkCreatePolicyParser.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxSharedLinkCreatePolicyParser.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 28.04.16. 6 | // 7 | // 8 | 9 | #import 10 | #import "DropboxSharedLinkCreatePolicy.h" 11 | 12 | @interface DropboxSharedLinkCreatePolicyParser : NSObject 13 | 14 | + (DropboxSharedLinkCreatePolicy)sharedLinkCreatePolicyFromString:(NSString * _Nonnull)string; 15 | + (DropboxSharedLinkCreatePolicy)sharedLinkCreatePolicyFromDictionary:(NSDictionary * _Nonnull)dic; 16 | 17 | @end 18 | -------------------------------------------------------------------------------- /Pod/Classes/Parsers/DropboxSharedLinkMetadata+DictionaryParser.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxTeamMemberInfo+DropboxSharedLinkMetadataDictionaryParser.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 24.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxSharedLinkMetadata.h" 10 | #import "DictionaryParser.h" 11 | 12 | @interface DropboxSharedLinkMetadata (DictionaryParser) 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pod/Classes/Parsers/DropboxSharedLinkMetadataParseManager.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxSharedLinkMetadataParseManager.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 25.04.16. 6 | // 7 | // 8 | 9 | #import 10 | #import "DropboxSharedLinkMetadata.h" 11 | 12 | @interface DropboxSharedLinkMetadataParseManager : NSObject 13 | 14 | + (DropboxSharedLinkMetadata * _Nullable)metadataWithDictionary:(NSDictionary * _Nonnull)dic; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /Pod/Classes/Parsers/DropboxSharedLinkPolicyParser.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxSharedLinkPolicyParser.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 27.04.16. 6 | // 7 | // 8 | 9 | #import 10 | #import "DropboxSharedLinkPolicy.h" 11 | 12 | @interface DropboxSharedLinkPolicyParser : NSObject 13 | 14 | + (DropboxSharedLinkPolicy)sharedLinkPolicyFromDictionary:(NSDictionary * _Nonnull)dic; 15 | + (DropboxSharedLinkPolicy)sharedLinkPolicyFromString:(NSString * _Nonnull)string; 16 | 17 | @end 18 | -------------------------------------------------------------------------------- /Pod/Classes/Parsers/DropboxSpaceAllocation+DictionaryParser.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxSpaceAllocation+DictionaryParser.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 28.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxSpaceAllocation.h" 10 | #import "DictionaryParser.h" 11 | 12 | @interface DropboxSpaceAllocation (DictionaryParser) 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pod/Classes/Parsers/DropboxSpaceAllocationEnumParser.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxSpaceAllocationEnumParser.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 28.04.16. 6 | // 7 | // 8 | 9 | #import 10 | #import "DropboxSpaceAllocationEnum.h" 11 | 12 | @interface DropboxSpaceAllocationEnumParser : NSObject 13 | 14 | + (DropboxSpaceAllocationEnum)spaceAllocationFromString:(NSString * _Nonnull)string; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /Pod/Classes/Parsers/DropboxSpaceAllocationEnumParser.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxSpaceAllocationEnumParser.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 28.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxSpaceAllocationEnumParser.h" 10 | 11 | @implementation DropboxSpaceAllocationEnumParser 12 | 13 | + (DropboxSpaceAllocationEnum)spaceAllocationFromString:(NSString *)string 14 | { 15 | if ([string isEqualToString:@"individual"]) 16 | { 17 | return DSAIndividual; 18 | } 19 | else if ([string isEqualToString:@"team"]) 20 | { 21 | return DSATeam; 22 | } 23 | return DSANotSet; 24 | } 25 | 26 | @end 27 | -------------------------------------------------------------------------------- /Pod/Classes/Parsers/DropboxSpaceUsage+DictionaryParser.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxSpaceUsage+DictionaryParser.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 28.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxSpaceUsage.h" 10 | #import "DictionaryParser.h" 11 | 12 | @interface DropboxSpaceUsage (DictionaryParser) 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pod/Classes/Parsers/DropboxTeam+DictionaryParser.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxTeam+DictionaryParser.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 22.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxTeam.h" 10 | #import "DictionaryParser.h" 11 | 12 | @interface DropboxTeam (DictionaryParser) 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pod/Classes/Parsers/DropboxTeam+DictionaryParser.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxTeam+DictionaryParser.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 22.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxTeam+DictionaryParser.h" 10 | #import "DictionaryParseHelper.h" 11 | 12 | @implementation DropboxTeam (DictionaryParser) 13 | 14 | - (instancetype)initWithDictionary:(NSDictionary *)dic 15 | { 16 | self = [self init]; 17 | if (self) { 18 | DictionaryParseHelper *helper = [[DictionaryParseHelper alloc] initWithDictionary:dic]; 19 | self.ID = [helper stringWithKey:@"id"]; 20 | self.name = [helper stringWithKey:@"name"]; 21 | } 22 | return self; 23 | } 24 | 25 | @end 26 | -------------------------------------------------------------------------------- /Pod/Classes/Parsers/DropboxTeamMemberInfo+DictionaryParser.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxTeamMemberInfo+DictionaryParser.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 24.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxTeamMemberInfo.h" 10 | #import "DictionaryParser.h" 11 | 12 | @interface DropboxTeamMemberInfo (DictionaryParser) 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pod/Classes/Parsers/DropboxTeamSharingPolicies+DictionaryParser.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxTeamSharingPolicies+DictionaryParser.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 28.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxTeamSharingPolicies.h" 10 | #import "DictionaryParser.h" 11 | 12 | @interface DropboxTeamSharingPolicies (DictionaryParser) 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pod/Classes/Parsers/DropboxTeamSpaceAllocation+DictionaryParser.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxTeamSpaceAllocation+DictionaryParser.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 28.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxTeamSpaceAllocation.h" 10 | #import "DictionaryParser.h" 11 | 12 | @interface DropboxTeamSpaceAllocation (DictionaryParser) 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pod/Classes/Parsers/DropboxUploadSessionStartResult+DictionaryParser.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxUploadSessionStartResult+DictionaryParser.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 22.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxUploadSessionStartResult.h" 10 | #import "DictionaryParser.h" 11 | 12 | @interface DropboxUploadSessionStartResult (DictionaryParser) 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pod/Classes/Parsers/DropboxUserInfo+DictionaryParser.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxUserInfo+DictionaryParser.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 26.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxUserInfo.h" 10 | #import "DictionaryParser.h" 11 | 12 | @interface DropboxUserInfo (DictionaryParser) 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pod/Classes/Parsers/DropboxUserMembershipInfo+DictionaryParser.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxUserMembershipInfo+DictionaryParser.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 26.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxUserMembershipInfo.h" 10 | #import "DictionaryParser.h" 11 | 12 | @interface DropboxUserMembershipInfo (DictionaryParser) 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pod/Classes/Parsers/DropboxVideoMetadata+DictionaryParser.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxVideoMetadata+DictionaryParser.h 3 | // ObjectiveDropbox 4 | // 5 | // Created by Михаил Мотыженков on 28.03.16. 6 | // Copyright © 2016 Михаил Мотыженков. All rights reserved. 7 | // 8 | 9 | #import "DropboxVideoMetadata.h" 10 | #import "DropboxMediaMetadata+DictionaryParser.h" 11 | 12 | @interface DropboxVideoMetadata (DictionaryParser) 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pod/Classes/Results/DropboxGetTemporaryLinkResult.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxGetTemporaryLinkResult.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 05.04.16. 6 | // 7 | // 8 | 9 | #import 10 | #import "DropboxFileMetadata.h" 11 | 12 | @interface DropboxGetTemporaryLinkResult : NSObject 13 | 14 | /** 15 | * Metadata of the file. 16 | */ 17 | @property (nonatomic, nonnull) DropboxFileMetadata *metadata; 18 | 19 | /** 20 | * The temporary link which can be used to stream content the file. 21 | */ 22 | @property (nonatomic, nonnull) NSString *link; 23 | 24 | @end 25 | -------------------------------------------------------------------------------- /Pod/Classes/Results/DropboxGetTemporaryLinkResult.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxGetTemporaryLinkResult.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 05.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxGetTemporaryLinkResult.h" 10 | 11 | @implementation DropboxGetTemporaryLinkResult 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /Pod/Classes/Results/DropboxJobStatusResult.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxJobStatus.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 22.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxJobStatusResult.h" 10 | 11 | @implementation DropboxJobStatusResult 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /Pod/Classes/Results/DropboxLaunchEmptyResult.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxLaunchEmptyResult.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 26.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxLaunchEmptyResult.h" 10 | 11 | @implementation DropboxLaunchEmptyResult 12 | 13 | - (instancetype)init 14 | { 15 | self = [super init]; 16 | if (self) { 17 | _type = DLERNotSet; 18 | _value = @""; 19 | } 20 | return self; 21 | } 22 | 23 | @end 24 | -------------------------------------------------------------------------------- /Pod/Classes/Results/DropboxLaunchEmptyResultEnum.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxLaunchEmptyResultEnum.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 26.04.16. 6 | // 7 | // 8 | 9 | typedef enum : NSUInteger { 10 | /** 11 | * This response indicates that the processing is asynchronous. 12 | */ 13 | DLERAsyncJobID, 14 | 15 | /** 16 | * The job finished synchronously and successfully. 17 | */ 18 | DLERComplete, 19 | DLERNotSet 20 | } DropboxLaunchEmptyResultEnum; -------------------------------------------------------------------------------- /Pod/Classes/Results/DropboxListFolderGetLatestCursorResult.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxListFolderGetLatestCursorResult.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 06.04.16. 6 | // 7 | // 8 | 9 | #import 10 | 11 | @interface DropboxListFolderGetLatestCursorResult : NSObject 12 | 13 | /** 14 | * Pass the cursor into listFolderContinue to see what's changed in the folder since your previous query. 15 | */ 16 | @property (nonatomic, nonnull) NSString *cursor; 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /Pod/Classes/Results/DropboxListFolderGetLatestCursorResult.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxListFolderGetLatestCursorResult.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 06.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxListFolderGetLatestCursorResult.h" 10 | 11 | @implementation DropboxListFolderGetLatestCursorResult 12 | 13 | - (NSString *)description 14 | { 15 | return [NSString stringWithFormat:@"{ sessionID: %@ }", self.cursor]; 16 | } 17 | 18 | 19 | @end 20 | -------------------------------------------------------------------------------- /Pod/Classes/Results/DropboxListFolderLongpollResult.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxListFolderLongpollResult.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 06.04.16. 6 | // 7 | // 8 | 9 | #import 10 | 11 | @interface DropboxListFolderLongpollResult : NSObject 12 | 13 | /** 14 | * Indicates whether new changes are available. If true, call listFolder to retrieve the changes. 15 | */ 16 | @property (nonatomic) BOOL changes; 17 | 18 | /** 19 | * UInt64. If present, backoff for at least this many seconds before calling listFolder/longpoll again. This field is optional. 20 | */ 21 | @property (nonatomic, nullable) NSNumber *backoff; 22 | 23 | @end 24 | -------------------------------------------------------------------------------- /Pod/Classes/Results/DropboxListFolderLongpollResult.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxListFolderLongpollResult.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 06.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxListFolderLongpollResult.h" 10 | 11 | @implementation DropboxListFolderLongpollResult 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /Pod/Classes/Results/DropboxListFoldersResult.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxListFoldersResult.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 26.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxListFoldersResult.h" 10 | 11 | @implementation DropboxListFoldersResult 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /Pod/Classes/Results/DropboxListRevisionsResult.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxListRevisionsResult.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 06.04.16. 6 | // 7 | // 8 | 9 | #import 10 | #import "DropboxFileMetadata.h" 11 | 12 | @interface DropboxListRevisionsResult : NSObject 13 | 14 | /** 15 | * If the file is deleted. 16 | */ 17 | @property (nonatomic) BOOL isDeleted; 18 | 19 | /** 20 | * The revisions for the file. Only non-delete revisions will show up here. 21 | */ 22 | @property (nonatomic, nonnull) NSArray *entries; 23 | 24 | @end 25 | -------------------------------------------------------------------------------- /Pod/Classes/Results/DropboxListSharedLinksResult.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxListSharedLinksResult.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 26.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxListSharedLinksResult.h" 10 | 11 | @implementation DropboxListSharedLinksResult 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /Pod/Classes/Results/DropboxShareFolderJobStatusResult.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxShareFolderJobStatusResult.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 22.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxShareFolderJobStatusResult.h" 10 | 11 | @implementation DropboxShareFolderJobStatusResult 12 | 13 | - (instancetype)init 14 | { 15 | self = [super init]; 16 | if (self) { 17 | _status = DSFJSNotSet; 18 | } 19 | return self; 20 | } 21 | 22 | @end 23 | -------------------------------------------------------------------------------- /Pod/Classes/Results/DropboxUploadSessionStartResult.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxUploadSessionStartResult.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 22.04.16. 6 | // 7 | // 8 | 9 | #import 10 | 11 | @interface DropboxUploadSessionStartResult : NSObject 12 | 13 | /** 14 | * A unique identifier for the upload session. Pass this to upload_session/append and upload_session/finish. 15 | */ 16 | @property (nonatomic, nonnull) NSString *sessionID; 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /Pod/Classes/Results/DropboxUploadSessionStartResult.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxUploadSessionStartResult.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 22.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxUploadSessionStartResult.h" 10 | 11 | @implementation DropboxUploadSessionStartResult 12 | 13 | - (NSString *)description 14 | { 15 | return [NSString stringWithFormat:@"{ sessionID: %@ }", self.sessionID]; 16 | } 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /Pod/Classes/Routes/DropboxAuthRoutes.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxAuthRoutes.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 15.04.16. 6 | // 7 | // 8 | 9 | #import 10 | #import "DropboxRoutes.h" 11 | 12 | @interface DropboxAuthRoutes : DropboxRoutes 13 | 14 | - (void)tokenRevokeWithSuccessBlock:(nullable void(^)())successBlock failBlock:(nullable ErrorBlock)failBlock; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /Pod/Classes/Routes/DropboxAuthRoutes.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxAuthRoutes.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 15.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxAuthRoutes.h" 10 | #import "ObjectiveDropboxError.h" 11 | 12 | @implementation DropboxAuthRoutes 13 | 14 | - (void)tokenRevokeWithSuccessBlock:(void (^)())successBlock failBlock:(ErrorBlock)failBlock 15 | { 16 | [self.delegate rpcEndpointWithRoute:@"token/revoke" param:nil success:successBlock fail:failBlock]; 17 | } 18 | 19 | @end 20 | -------------------------------------------------------------------------------- /Pod/Classes/Routes/DropboxRoutes.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxRoutes.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 01.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxRoutes.h" 10 | 11 | 12 | @implementation DropboxRoutes 13 | 14 | 15 | - (instancetype)initWithPath:(NSString *)path 16 | { 17 | self = [self init]; 18 | if (self) { 19 | _path = path; 20 | } 21 | return self; 22 | } 23 | 24 | - (instancetype)initWithPath:(NSString *)path andWithDelegate:(id)delegate 25 | { 26 | self = [self initWithPath:path]; 27 | if (self) { 28 | _delegate = delegate; 29 | _delegate.path = _path; 30 | } 31 | return self; 32 | } 33 | 34 | @end 35 | -------------------------------------------------------------------------------- /Pod/Classes/Serializers/DictionarySerializer.h: -------------------------------------------------------------------------------- 1 | // 2 | // DictionarySerializer.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 05.04.16. 6 | // 7 | // 8 | 9 | #import 10 | 11 | @protocol DictionarySerializer 12 | 13 | - (NSDictionary * _Nonnull)dictionaryFromParams; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /Pod/Classes/Serializers/DropboxAccessLevelDictionarySerializer.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxAccessLevelDictionarySerializer.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 22.04.16. 6 | // 7 | // 8 | 9 | #import 10 | #import "DropboxAccessLevel.h" 11 | #import "EnumToStringSerializer.h" 12 | 13 | @interface DropboxAccessLevelDictionarySerializer : NSObject 14 | 15 | + (NSDictionary * _Nonnull)dictionaryFromAccessLevel:(DropboxAccessLevel)accessLevel; 16 | + (NSString * _Nullable)stringFromEnum:(DropboxAccessLevel)accessLevel; 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /Pod/Classes/Serializers/DropboxAclUpdatePolicySerializer.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxAclUpdatePolicySerializer.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 27.04.16. 6 | // 7 | // 8 | 9 | #import 10 | #import "DropboxAclUpdatePolicy.h" 11 | #import "EnumToStringSerializer.h" 12 | 13 | @interface DropboxAclUpdatePolicySerializer : NSObject 14 | 15 | + (NSString * _Nullable)stringFromEnum:(DropboxAclUpdatePolicy)policy; 16 | 17 | @end 18 | -------------------------------------------------------------------------------- /Pod/Classes/Serializers/DropboxAclUpdatePolicySerializer.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxAclUpdatePolicySerializer.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 27.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxAclUpdatePolicySerializer.h" 10 | 11 | @implementation DropboxAclUpdatePolicySerializer 12 | 13 | + (NSString *)stringFromEnum:(DropboxAclUpdatePolicy)policy 14 | { 15 | switch (policy) { 16 | case DAUPOwner: 17 | return @"owner"; 18 | case DAUPEditors: 19 | return @"editors"; 20 | default: 21 | return nil; 22 | } 23 | } 24 | 25 | @end 26 | -------------------------------------------------------------------------------- /Pod/Classes/Serializers/DropboxAddFolderMemberArg+DictionarySerializer.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxAddFolderMemberArg+DictionarySerializer.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 22.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxAddFolderMemberArg.h" 10 | #import "DictionarySerializer.h" 11 | 12 | @interface DropboxAddFolderMemberArg (DictionarySerializer) 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pod/Classes/Serializers/DropboxAddMember+DictionarySerializer.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxAddMember+DictionarySerializer.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 22.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxAddMember.h" 10 | #import "DictionarySerializer.h" 11 | 12 | @interface DropboxAddMember (DictionarySerializer) 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pod/Classes/Serializers/DropboxCommitInfo+DictionarySerializer.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxCommitInfo+DictionarySerializer.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 21.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxCommitInfo.h" 10 | #import "DictionarySerializer.h" 11 | 12 | @interface DropboxCommitInfo (DictionarySerializer) 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pod/Classes/Serializers/DropboxCreateFolderArg+DictionarySerializer.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxCreateFolderArg+DictionarySerializer.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 05.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxCreateFolderArg.h" 10 | #import "DictionarySerializer.h" 11 | 12 | @interface DropboxCreateFolderArg (DictionarySerializer) 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pod/Classes/Serializers/DropboxCreateFolderArg+DictionarySerializer.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxCreateFolderArg+DictionarySerializer.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 05.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxCreateFolderArg+DictionarySerializer.h" 10 | 11 | @implementation DropboxCreateFolderArg (DictionarySerializer) 12 | 13 | - (NSDictionary *)dictionaryFromParams 14 | { 15 | return @{@"path" : self.path}; 16 | } 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /Pod/Classes/Serializers/DropboxCreateSharedLinkWithSettingsArg+DictionarySerializer.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxCreateSharedLinkWithSettingsArg+DictionarySerializer.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 24.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxCreateSharedLinkWithSettingsArg.h" 10 | #import "DictionarySerializer.h" 11 | 12 | @interface DropboxCreateSharedLinkWithSettingsArg (DictionarySerializer) 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pod/Classes/Serializers/DropboxDeleteArg+DictionarySerializer.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxDeleteArg+DictionarySerializer.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 05.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxDeleteArg.h" 10 | #import "DictionarySerializer.h" 11 | 12 | @interface DropboxDeleteArg (DictionarySerializer) 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pod/Classes/Serializers/DropboxDeleteArg+DictionarySerializer.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxDeleteArg+DictionarySerializer.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 05.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxDeleteArg+DictionarySerializer.h" 10 | 11 | @implementation DropboxDeleteArg (DictionarySerializer) 12 | 13 | - (NSDictionary *)dictionaryFromParams 14 | { 15 | return @{@"path": self.path}; 16 | } 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /Pod/Classes/Serializers/DropboxDownloadArg+DictionarySerializer.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxDownloadArg+DictionarySerializer.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 05.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxDownloadArg.h" 10 | #import "DictionarySerializer.h" 11 | 12 | @interface DropboxDownloadArg (DictionarySerializer) 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pod/Classes/Serializers/DropboxDownloadArg+DictionarySerializer.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxDownloadArg+DictionarySerializer.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 05.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxDownloadArg+DictionarySerializer.h" 10 | 11 | @implementation DropboxDownloadArg (DictionarySerializer) 12 | 13 | - (NSDictionary *)dictionaryFromParams 14 | { 15 | return @{@"path" : self.path}; 16 | } 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /Pod/Classes/Serializers/DropboxFolderActionSerializer.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxFolderActionDictionarySerializer.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 25.04.16. 6 | // 7 | // 8 | 9 | #import 10 | #import "DropboxFolderAction.h" 11 | #import "EnumToStringSerializer.h" 12 | 13 | @interface DropboxFolderActionSerializer : NSObject 14 | 15 | + (NSDictionary * _Nonnull)dictionaryFromFolderAction:(DropboxFolderAction)action; 16 | + (NSString * _Nullable)stringFromEnum:(DropboxFolderAction)action; 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /Pod/Classes/Serializers/DropboxGetAccountArg+DictionarySerializer.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxGetAccountArg+DictionarySerializer.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 27.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxGetAccountArg.h" 10 | #import "DictionarySerializer.h" 11 | 12 | @interface DropboxGetAccountArg (DictionarySerializer) 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pod/Classes/Serializers/DropboxGetAccountArg+DictionarySerializer.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxGetAccountArg+DictionarySerializer.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 27.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxGetAccountArg+DictionarySerializer.h" 10 | 11 | @implementation DropboxGetAccountArg (DictionarySerializer) 12 | 13 | - (NSDictionary *)dictionaryFromParams 14 | { 15 | return @{ @"account_id": self.accountID }; 16 | } 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /Pod/Classes/Serializers/DropboxGetAccountBatchArg+DictionarySerializer.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxGetAccountBatchArg+DictionarySerializer.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 27.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxGetAccountBatchArg.h" 10 | #import "DictionarySerializer.h" 11 | 12 | @interface DropboxGetAccountBatchArg (DictionarySerializer) 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pod/Classes/Serializers/DropboxGetAccountBatchArg+DictionarySerializer.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxGetAccountBatchArg+DictionarySerializer.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 27.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxGetAccountBatchArg+DictionarySerializer.h" 10 | #import "NSArray+ArrayOfStrings.h" 11 | 12 | @implementation DropboxGetAccountBatchArg (DictionarySerializer) 13 | 14 | - (NSDictionary *)dictionaryFromParams 15 | { 16 | return @{ @"account_ids": self.accountIDs }; 17 | } 18 | 19 | @end 20 | -------------------------------------------------------------------------------- /Pod/Classes/Serializers/DropboxGetMetadataArg+DictionarySerializer.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxGetMetadataArg+DictionarySerializer.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 05.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxGetMetadataArg.h" 10 | #import "DictionarySerializer.h" 11 | 12 | @interface DropboxGetMetadataArg (DictionarySerializer) 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pod/Classes/Serializers/DropboxGetMetadataArg+DictionarySerializer.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxGetMetadataArg+DictionarySerializer.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 05.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxGetMetadataArg+DictionarySerializer.h" 10 | 11 | @implementation DropboxGetMetadataArg (DictionarySerializer) 12 | 13 | - (NSDictionary *)dictionaryFromParams 14 | { 15 | return @{@"path" : self.path, @"include_media_info" : @(self.includeMediaInfo), @"include_deleted" : @(self.includeDeleted)}; 16 | } 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /Pod/Classes/Serializers/DropboxGetMetadataArgs+DictionarySerializer.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxGetMetadataArgs+DictionarySerializer.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 25.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxGetMetadataArgs.h" 10 | #import "DictionarySerializer.h" 11 | 12 | @interface DropboxGetMetadataArgs (DictionarySerializer) 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pod/Classes/Serializers/DropboxGetPreviewArg+DictionarySerializer.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxPreviewArg+DictionarySerializer.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 05.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxGetPreviewArg.h" 10 | #import "DictionarySerializer.h" 11 | 12 | @interface DropboxGetPreviewArg (DictionarySerializer) 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pod/Classes/Serializers/DropboxGetPreviewArg+DictionarySerializer.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxPreviewArg+DictionarySerializer.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 05.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxGetPreviewArg+DictionarySerializer.h" 10 | 11 | @implementation DropboxGetPreviewArg (DictionarySerializer) 12 | 13 | - (NSDictionary *)dictionaryFromParams 14 | { 15 | return @{@"path" : self.path}; 16 | } 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /Pod/Classes/Serializers/DropboxGetSharedLinkMetadataArg+DictionarySerializer.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxGetSharedLinkMetadataArg+DictionarySerializer.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 25.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxGetSharedLinkMetadataArg.h" 10 | #import "DictionarySerializer.h" 11 | 12 | @interface DropboxGetSharedLinkMetadataArg (DictionarySerializer) 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pod/Classes/Serializers/DropboxGetTemporaryLinkArg+DictionarySerializer.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxGetTemporaryLinkArg+DictionarySerializer.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 05.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxGetTemporaryLinkArg.h" 10 | #import "DictionarySerializer.h" 11 | 12 | @interface DropboxGetTemporaryLinkArg (DictionarySerializer) 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pod/Classes/Serializers/DropboxGetTemporaryLinkArg+DictionarySerializer.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxGetTemporaryLinkArg+DictionarySerializer.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 05.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxGetTemporaryLinkArg+DictionarySerializer.h" 10 | 11 | @implementation DropboxGetTemporaryLinkArg (DictionarySerializer) 12 | 13 | - (NSDictionary *)dictionaryFromParams 14 | { 15 | return @{@"path" : self.path}; 16 | } 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /Pod/Classes/Serializers/DropboxGetThumbnailArg+DictionarySerializer.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxGetThumbnailArg+DictionarySerializer.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 05.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxGetThumbnailArg.h" 10 | #import "DictionarySerializer.h" 11 | 12 | @interface DropboxGetThumbnailArg (DictionarySerializer) 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pod/Classes/Serializers/DropboxListFolderArg+DictionarySerializer.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxListFolderArg+DictionarySerializer.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 06.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxListFolderArg.h" 10 | #import "DictionarySerializer.h" 11 | 12 | @interface DropboxListFolderArg (DictionarySerializer) 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pod/Classes/Serializers/DropboxListFolderArg+DictionarySerializer.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxListFolderArg+DictionarySerializer.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 06.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxListFolderArg+DictionarySerializer.h" 10 | 11 | @implementation DropboxListFolderArg (DictionarySerializer) 12 | 13 | - (NSDictionary *)dictionaryFromParams 14 | { 15 | return @{ @"path": self.path, @"recursive": @(self.recursive), @"include_media_info": @(self.includeMediaInfo), @"include_deleted": @(self.includeDeleted), @"include_has_explicit_shared_members": @(self.includeHasExplicitSharedMembers) }; 16 | } 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /Pod/Classes/Serializers/DropboxListFolderContinueArg+DictionarySerializer.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxListFolderContinueArg+DictionarySerializer.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 06.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxListFolderContinueArg.h" 10 | #import "DictionarySerializer.h" 11 | 12 | @interface DropboxListFolderContinueArg (DictionarySerializer) 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pod/Classes/Serializers/DropboxListFolderContinueArg+DictionarySerializer.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxListFolderContinueArg+DictionarySerializer.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 06.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxListFolderContinueArg+DictionarySerializer.h" 10 | 11 | @implementation DropboxListFolderContinueArg (DictionarySerializer) 12 | 13 | - (NSDictionary *)dictionaryFromParams 14 | { 15 | return @{@"cursor": self.cursor}; 16 | } 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /Pod/Classes/Serializers/DropboxListFolderLongpollArg+DictionarySerializer.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxListFolderLongpollArg+DictionarySerializer.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 06.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxListFolderLongpollArg.h" 10 | #import "DictionarySerializer.h" 11 | 12 | @interface DropboxListFolderLongpollArg (DictionarySerializer) 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pod/Classes/Serializers/DropboxListFolderLongpollArg+DictionarySerializer.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxListFolderLongpollArg+DictionarySerializer.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 06.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxListFolderLongpollArg+DictionarySerializer.h" 10 | 11 | @implementation DropboxListFolderLongpollArg (DictionarySerializer) 12 | 13 | - (NSDictionary *)dictionaryFromParams 14 | { 15 | return @{ @"cursor": self.cursor, @"timeout": @(self.timeout) }; 16 | } 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /Pod/Classes/Serializers/DropboxListFolderMembersArgs+DictionarySerializer.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxListFolderMembersArgs+DictionarySerializer.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 25.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxListFolderMembersArgs.h" 10 | #import "DictionarySerializer.h" 11 | 12 | @interface DropboxListFolderMembersArgs (DictionarySerializer) 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pod/Classes/Serializers/DropboxListFolderMembersContinueArg+DictionarySerializer.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxListFolderMembersContinueArg+DictionarySerializer.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 26.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxListFolderMembersContinueArg.h" 10 | #import "DictionarySerializer.h" 11 | 12 | @interface DropboxListFolderMembersContinueArg (DictionarySerializer) 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pod/Classes/Serializers/DropboxListFolderMembersContinueArg+DictionarySerializer.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxListFolderMembersContinueArg+DictionarySerializer.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 26.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxListFolderMembersContinueArg+DictionarySerializer.h" 10 | 11 | @implementation DropboxListFolderMembersContinueArg (DictionarySerializer) 12 | 13 | - (NSDictionary *)dictionaryFromParams 14 | { 15 | if (!self.cursor) 16 | { 17 | return @{}; 18 | } 19 | return @{ @"cursor": self.cursor }; 20 | } 21 | 22 | @end 23 | -------------------------------------------------------------------------------- /Pod/Classes/Serializers/DropboxListFoldersArgs+DictionarySerializer.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxListFoldersArgs+DictionarySerializer.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 26.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxListFoldersArgs.h" 10 | #import "DictionarySerializer.h" 11 | 12 | @interface DropboxListFoldersArgs (DictionarySerializer) 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pod/Classes/Serializers/DropboxListFoldersContinueArg+DictionarySerializer.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxListFoldersContinueArgs+DictionarySerializer.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 26.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxListFoldersContinueArg.h" 10 | #import "DictionarySerializer.h" 11 | 12 | @interface DropboxListFoldersContinueArg (DictionarySerializer) 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pod/Classes/Serializers/DropboxListFoldersContinueArg+DictionarySerializer.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxListFoldersContinueArgs+DictionarySerializer.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 26.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxListFoldersContinueArg+DictionarySerializer.h" 10 | 11 | @implementation DropboxListFoldersContinueArg (DictionarySerializer) 12 | 13 | - (NSDictionary *)dictionaryFromParams 14 | { 15 | return @{ @"cursor": self.cursor }; 16 | } 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /Pod/Classes/Serializers/DropboxListRevisionsArg+DictionarySerializer.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxListRevisionsArg+DictionarySerializer.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 06.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxListRevisionsArg.h" 10 | #import "DictionarySerializer.h" 11 | 12 | @interface DropboxListRevisionsArg (DictionarySerializer) 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pod/Classes/Serializers/DropboxListRevisionsArg+DictionarySerializer.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxListRevisionsArg+DictionarySerializer.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 06.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxListRevisionsArg+DictionarySerializer.h" 10 | 11 | @implementation DropboxListRevisionsArg (DictionarySerializer) 12 | 13 | - (NSDictionary *)dictionaryFromParams 14 | { 15 | return @{ @"path": self.path, @"limit": @(self.limit) }; 16 | } 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /Pod/Classes/Serializers/DropboxListSharedLinksArg+DictionarySerializer.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxListSharedLinksArg+DictionarySerializer.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 26.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxListSharedLinksArg.h" 10 | #import "DictionarySerializer.h" 11 | 12 | @interface DropboxListSharedLinksArg (DictionarySerializer) 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pod/Classes/Serializers/DropboxMemberActionSerializer.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxMemberActionSerializer.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 25.04.16. 6 | // 7 | // 8 | 9 | #import 10 | #import "DropboxMemberAction.h" 11 | #import "EnumToStringSerializer.h" 12 | 13 | @interface DropboxMemberActionSerializer : NSObject 14 | 15 | + (NSString * _Nullable)stringFromEnum:(DropboxMemberAction)action; 16 | 17 | @end 18 | -------------------------------------------------------------------------------- /Pod/Classes/Serializers/DropboxMemberPolicySerializer.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxMemberPolicySerializer.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 27.04.16. 6 | // 7 | // 8 | 9 | #import 10 | #import "DropboxMemberPolicy.h" 11 | #import "EnumToStringSerializer.h" 12 | 13 | @interface DropboxMemberPolicySerializer : NSObject 14 | 15 | + (NSString * _Nullable)stringFromEnum:(DropboxMemberPolicy)policy; 16 | 17 | @end 18 | -------------------------------------------------------------------------------- /Pod/Classes/Serializers/DropboxMemberPolicySerializer.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxMemberPolicySerializer.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 27.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxMemberPolicySerializer.h" 10 | 11 | @implementation DropboxMemberPolicySerializer 12 | 13 | + (NSString *)stringFromEnum:(DropboxMemberPolicy)policy 14 | { 15 | switch (policy) { 16 | case DMPTeam: 17 | return @"team"; 18 | case DMPAnyone: 19 | return @"anyone"; 20 | default: 21 | return nil; 22 | } 23 | } 24 | 25 | @end 26 | -------------------------------------------------------------------------------- /Pod/Classes/Serializers/DropboxMemberSelector+DictionarySerializer.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxMemberSelector+DictionarySerializer.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 22.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxMemberSelector.h" 10 | #import "DictionarySerializer.h" 11 | 12 | @interface DropboxMemberSelector (DictionarySerializer) 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pod/Classes/Serializers/DropboxModifySharedLinkSettingsArgs+DictionarySerializer.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxModifySharedLinkSettingsArgs+DictionarySerializer.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 26.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxModifySharedLinkSettingsArgs.h" 10 | #import "DictionarySerializer.h" 11 | 12 | @interface DropboxModifySharedLinkSettingsArgs (DictionarySerializer) 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pod/Classes/Serializers/DropboxModifySharedLinkSettingsArgs+DictionarySerializer.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxModifySharedLinkSettingsArgs+DictionarySerializer.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 26.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxModifySharedLinkSettingsArgs+DictionarySerializer.h" 10 | #import "DropboxSharedLinkSettings+DictionarySerializer.h" 11 | 12 | @implementation DropboxModifySharedLinkSettingsArgs (DictionarySerializer) 13 | 14 | - (NSDictionary *)dictionaryFromParams 15 | { 16 | return @{ @"url": self.url, 17 | @"settings": [self.settings dictionaryFromParams], 18 | @"remove_expiration": @(self.removeExpiration) }; 19 | } 20 | 21 | @end 22 | -------------------------------------------------------------------------------- /Pod/Classes/Serializers/DropboxMountFolderArg+DictionarySerializer.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxMountFolderArg+DictionarySerializer.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 26.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxMountFolderArg.h" 10 | #import "DictionarySerializer.h" 11 | 12 | @interface DropboxMountFolderArg (DictionarySerializer) 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pod/Classes/Serializers/DropboxMountFolderArg+DictionarySerializer.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxMountFolderArg+DictionarySerializer.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 26.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxMountFolderArg+DictionarySerializer.h" 10 | 11 | @implementation DropboxMountFolderArg (DictionarySerializer) 12 | 13 | - (NSDictionary *)dictionaryFromParams 14 | { 15 | return @{ @"shared_folder_id": self.sharedFolderID }; 16 | } 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /Pod/Classes/Serializers/DropboxPollArg+DictionarySerializer.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxPollArg+DictionarySerializer.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 22.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxPollArg.h" 10 | #import "DictionarySerializer.h" 11 | 12 | @interface DropboxPollArg (DictionarySerializer) 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pod/Classes/Serializers/DropboxPollArg+DictionarySerializer.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxPollArg+DictionarySerializer.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 22.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxPollArg+DictionarySerializer.h" 10 | 11 | @implementation DropboxPollArg (DictionarySerializer) 12 | 13 | - (NSDictionary *)dictionaryFromParams 14 | { 15 | return @{ @"async_job_id": self.asyncJobID }; 16 | } 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /Pod/Classes/Serializers/DropboxRelinquishFolderMembershipArg+DictionarySerializer.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxRelinquishFolderMembershipArg+DictionarySerializer.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 26.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxRelinquishFolderMembershipArg.h" 10 | #import "DictionarySerializer.h" 11 | 12 | @interface DropboxRelinquishFolderMembershipArg (DictionarySerializer) 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pod/Classes/Serializers/DropboxRelinquishFolderMembershipArg+DictionarySerializer.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxRelinquishFolderMembershipArg+DictionarySerializer.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 26.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxRelinquishFolderMembershipArg+DictionarySerializer.h" 10 | 11 | @implementation DropboxRelinquishFolderMembershipArg (DictionarySerializer) 12 | 13 | - (NSDictionary *)dictionaryFromParams 14 | { 15 | return @{ @"shared_folder_id": self.sharedFolderID }; 16 | } 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /Pod/Classes/Serializers/DropboxRelocationArg+DictionarySerializer.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxRelocationArg+DictionarySerializer.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 05.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxRelocationArg.h" 10 | #import "DictionarySerializer.h" 11 | 12 | @interface DropboxRelocationArg (DictionarySerializer) 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pod/Classes/Serializers/DropboxRelocationArg+DictionarySerializer.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxRelocationArg+DictionarySerializer.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 05.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxRelocationArg+DictionarySerializer.h" 10 | 11 | @implementation DropboxRelocationArg (DictionarySerializer) 12 | 13 | - (NSDictionary *)dictionaryFromParams 14 | { 15 | return @{@"from_path" : self.fromPath, 16 | @"to_path" : self.toPath}; 17 | } 18 | 19 | @end 20 | -------------------------------------------------------------------------------- /Pod/Classes/Serializers/DropboxRemoveFolderMemberArg+DictionarySerializer.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxRemoveFolderMemberArg+DictionarySerializer.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 26.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxRemoveFolderMemberArg.h" 10 | #import "DictionarySerializer.h" 11 | 12 | @interface DropboxRemoveFolderMemberArg (DictionarySerializer) 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pod/Classes/Serializers/DropboxRemoveFolderMemberArg+DictionarySerializer.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxRemoveFolderMemberArg+DictionarySerializer.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 26.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxRemoveFolderMemberArg+DictionarySerializer.h" 10 | #import "DropboxMemberSelector+DictionarySerializer.h" 11 | 12 | @implementation DropboxRemoveFolderMemberArg (DictionarySerializer) 13 | 14 | - (NSDictionary *)dictionaryFromParams 15 | { 16 | return @{ @"shared_folder_id": self.sharedFolderID, 17 | @"member": [self.member dictionaryFromParams], 18 | @"leave_a_copy": @(self.leaveACopy) }; 19 | } 20 | 21 | @end 22 | -------------------------------------------------------------------------------- /Pod/Classes/Serializers/DropboxRequestedVisibilityStringSerializer.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxRequestedVisibilityDictionarySerializer.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 24.04.16. 6 | // 7 | // 8 | 9 | #import 10 | #import "DropboxRequestedVisibility.h" 11 | #import "EnumToStringSerializer.h" 12 | 13 | @interface DropboxRequestedVisibilityStringSerializer : NSObject 14 | 15 | + (NSString * _Nullable)stringFromEnum:(DropboxRequestedVisibility)visibility; 16 | 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /Pod/Classes/Serializers/DropboxRestoreArg+DictionarySerializer.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxRestoreArg+DictionarySerializer.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 20.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxRestoreArg.h" 10 | #import "DictionarySerializer.h" 11 | 12 | @interface DropboxRestoreArg (DictionarySerializer) 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pod/Classes/Serializers/DropboxRestoreArg+DictionarySerializer.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxRestoreArg+DictionarySerializer.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 20.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxRestoreArg+DictionarySerializer.h" 10 | 11 | @implementation DropboxRestoreArg (DictionarySerializer) 12 | 13 | - (NSDictionary *)dictionaryFromParams 14 | { 15 | return @{@"path": self.path, 16 | @"rev": self.rev }; 17 | } 18 | 19 | @end 20 | -------------------------------------------------------------------------------- /Pod/Classes/Serializers/DropboxRevokeSharedLinkArg+DictionarySerializer.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxRevokeSharedLinkArg+DictionarySerializer.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 27.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxRevokeSharedLinkArg.h" 10 | #import "DictionarySerializer.h" 11 | 12 | @interface DropboxRevokeSharedLinkArg (DictionarySerializer) 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pod/Classes/Serializers/DropboxRevokeSharedLinkArg+DictionarySerializer.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxRevokeSharedLinkArg+DictionarySerializer.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 27.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxRevokeSharedLinkArg+DictionarySerializer.h" 10 | 11 | @implementation DropboxRevokeSharedLinkArg (DictionarySerializer) 12 | 13 | - (NSDictionary *)dictionaryFromParams 14 | { 15 | return @{ @"url": self.url }; 16 | } 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /Pod/Classes/Serializers/DropboxSearchArg+DictionarySerializer.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxSearchArg+DictionarySerializer.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 21.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxSearchArg.h" 10 | #import "DictionarySerializer.h" 11 | 12 | @interface DropboxSearchArg (DictionarySerializer) 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pod/Classes/Serializers/DropboxSearchModeStringSerializer.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxSearchModeDictionarySerializer.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 21.04.16. 6 | // 7 | // 8 | 9 | #import 10 | #import "DropboxSearchMode.h" 11 | #import "EnumToStringSerializer.h" 12 | 13 | @interface DropboxSearchModeStringSerializer : NSObject 14 | 15 | + (NSString * _Nullable)stringFromEnum:(DropboxSearchMode)searchMode; 16 | 17 | @end 18 | -------------------------------------------------------------------------------- /Pod/Classes/Serializers/DropboxSearchModeStringSerializer.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxSearchModeDictionarySerializer.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 21.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxSearchModeStringSerializer.h" 10 | 11 | @implementation DropboxSearchModeStringSerializer 12 | 13 | + (NSString *)stringFromEnum:(DropboxSearchMode)searchMode 14 | { 15 | switch (searchMode) { 16 | case fileName: 17 | return @"filename"; 18 | case fileNameAndContent: 19 | return @"filename_and_content"; 20 | case deletedFileName: 21 | return @"deleted_filename"; 22 | default: 23 | return nil; 24 | } 25 | } 26 | 27 | @end 28 | -------------------------------------------------------------------------------- /Pod/Classes/Serializers/DropboxShareFolderArg+DictionarySerializer.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxShareFolderArg+DictionarySerializer.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 27.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxShareFolderArg.h" 10 | #import "DictionarySerializer.h" 11 | 12 | @interface DropboxShareFolderArg (DictionarySerializer) 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pod/Classes/Serializers/DropboxSharedLinkPolicySerializer.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxSharedLinkPolicySerializer.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 27.04.16. 6 | // 7 | // 8 | 9 | #import 10 | #import "DropboxSharedLinkPolicy.h" 11 | #import "EnumToStringSerializer.h" 12 | 13 | @interface DropboxSharedLinkPolicySerializer : NSObject 14 | 15 | + (NSString * _Nonnull)stringFromEnum:(DropboxSharedLinkPolicy)policy; 16 | 17 | @end 18 | -------------------------------------------------------------------------------- /Pod/Classes/Serializers/DropboxSharedLinkPolicySerializer.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxSharedLinkPolicySerializer.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 27.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxSharedLinkPolicySerializer.h" 10 | 11 | @implementation DropboxSharedLinkPolicySerializer 12 | 13 | + (NSString *)stringFromEnum:(DropboxSharedLinkPolicy)policy 14 | { 15 | switch (policy) { 16 | case DSLPAnyone: 17 | return @"anyone"; 18 | case DSLPMembers: 19 | return @"members"; 20 | default: 21 | return nil; 22 | } 23 | } 24 | 25 | @end 26 | -------------------------------------------------------------------------------- /Pod/Classes/Serializers/DropboxSharedLinkSettings+DictionarySerializer.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxSharedLinkSettings+DictionarySerializer.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 24.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxSharedLinkSettings.h" 10 | #import "DictionarySerializer.h" 11 | 12 | @interface DropboxSharedLinkSettings (DictionarySerializer) 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pod/Classes/Serializers/DropboxThumbnailFormatToStringSerializer.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxThumbnailFormatToStringSerializer.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 06.04.16. 6 | // 7 | // 8 | 9 | #import 10 | #import "DropboxThumbnailFormat.h" 11 | #import "EnumToStringSerializer.h" 12 | 13 | @interface DropboxThumbnailFormatToStringSerializer : NSObject 14 | 15 | + (NSString * _Nullable)stringFromEnum:(DropboxThumbnailFormat)format; 16 | 17 | @end 18 | -------------------------------------------------------------------------------- /Pod/Classes/Serializers/DropboxThumbnailFormatToStringSerializer.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxThumbnailFormatToStringSerializer.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 06.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxThumbnailFormatToStringSerializer.h" 10 | 11 | @implementation DropboxThumbnailFormatToStringSerializer 12 | 13 | + (NSString *)stringFromEnum:(DropboxThumbnailFormat)format 14 | { 15 | switch (format) { 16 | case JPEG: 17 | return @"jpeg"; 18 | case PNG: 19 | return @"png"; 20 | default: 21 | return nil; 22 | } 23 | } 24 | 25 | @end 26 | -------------------------------------------------------------------------------- /Pod/Classes/Serializers/DropboxThumbnailSizeToStringSerializer.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxThumbnailSizeToStringSerializer.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 05.04.16. 6 | // 7 | // 8 | 9 | #import 10 | #import "DropboxThumbnailSize.h" 11 | #import "EnumToStringSerializer.h" 12 | 13 | @interface DropboxThumbnailSizeToStringSerializer : NSObject 14 | 15 | + (NSString * _Nullable)stringFromEnum:(DropboxThumbnailSize)size; 16 | 17 | @end 18 | -------------------------------------------------------------------------------- /Pod/Classes/Serializers/DropboxTransferFolderArg+DictionarySerializer.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxTransferFolderArg+DictionarySerializer.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 27.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxTransferFolderArg.h" 10 | #import "DictionarySerializer.h" 11 | 12 | @interface DropboxTransferFolderArg (DictionarySerializer) 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pod/Classes/Serializers/DropboxTransferFolderArg+DictionarySerializer.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxTransferFolderArg+DictionarySerializer.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 27.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxTransferFolderArg+DictionarySerializer.h" 10 | 11 | @implementation DropboxTransferFolderArg (DictionarySerializer) 12 | 13 | - (NSDictionary *)dictionaryFromParams 14 | { 15 | return @{ @"shared_folder_id": self.sharedFolderID, 16 | @"to_dropbox_id": self.toDropboxID }; 17 | } 18 | 19 | @end 20 | -------------------------------------------------------------------------------- /Pod/Classes/Serializers/DropboxUnmountFolderArg+DictionarySerializer.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxUnmountFolderArg+DictionarySerializer.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 27.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxUnmountFolderArg.h" 10 | #import "DictionarySerializer.h" 11 | 12 | @interface DropboxUnmountFolderArg (DictionarySerializer) 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pod/Classes/Serializers/DropboxUnmountFolderArg+DictionarySerializer.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxUnmountFolderArg+DictionarySerializer.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 27.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxUnmountFolderArg+DictionarySerializer.h" 10 | 11 | @implementation DropboxUnmountFolderArg (DictionarySerializer) 12 | 13 | - (NSDictionary *)dictionaryFromParams 14 | { 15 | return @{ @"shared_folder_id": self.sharedFolderID }; 16 | } 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /Pod/Classes/Serializers/DropboxUnshareFolderArg+DictionarySerializer.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxUnshareFolderArg+DictionarySerializer.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 27.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxUnshareFolderArg.h" 10 | #import "DictionarySerializer.h" 11 | 12 | @interface DropboxUnshareFolderArg (DictionarySerializer) 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pod/Classes/Serializers/DropboxUnshareFolderArg+DictionarySerializer.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxUnshareFolderArg+DictionarySerializer.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 27.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxUnshareFolderArg+DictionarySerializer.h" 10 | 11 | @implementation DropboxUnshareFolderArg (DictionarySerializer) 12 | 13 | - (NSDictionary *)dictionaryFromParams 14 | { 15 | return @{ @"shared_folder_id": self.sharedFolderID, 16 | @"leave_a_copy": @(self.leaveACopy) }; 17 | } 18 | 19 | @end 20 | -------------------------------------------------------------------------------- /Pod/Classes/Serializers/DropboxUpdateFolderMemberArg+DictionarySerializer.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxUpdateFolderMemberArg+DictionarySerializer.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 27.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxUpdateFolderMemberArg.h" 10 | #import "DictionarySerializer.h" 11 | 12 | @interface DropboxUpdateFolderMemberArg (DictionarySerializer) 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pod/Classes/Serializers/DropboxUpdateFolderPolicyArg+DictionarySerializer.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxUpdateFolderPolicyArg+DictionarySerializer.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 27.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxUpdateFolderPolicyArg.h" 10 | #import "DictionarySerializer.h" 11 | 12 | @interface DropboxUpdateFolderPolicyArg (DictionarySerializer) 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pod/Classes/Serializers/DropboxUploadSessionAppendArg+DictionarySerializer.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxUploadSessionAppendArg+DictionarySerializer.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 21.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxUploadSessionAppendArg.h" 10 | #import "DictionarySerializer.h" 11 | 12 | @interface DropboxUploadSessionAppendArg (DictionarySerializer) 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pod/Classes/Serializers/DropboxUploadSessionAppendArg+DictionarySerializer.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxUploadSessionAppendArg+DictionarySerializer.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 21.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxUploadSessionAppendArg+DictionarySerializer.h" 10 | #import "DropboxUploadSessionCursor+DictionarySerializer.h" 11 | 12 | @implementation DropboxUploadSessionAppendArg (DictionarySerializer) 13 | 14 | - (NSDictionary *)dictionaryFromParams 15 | { 16 | NSDictionary *cursorDic = [self.cursor dictionaryFromParams]; 17 | return @{@"cursor": cursorDic, 18 | @"close": @(self.close)}; 19 | } 20 | 21 | @end 22 | -------------------------------------------------------------------------------- /Pod/Classes/Serializers/DropboxUploadSessionCursor+DictionarySerializer.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxUploadSessionCursor+DictionarySerializer.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 21.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxUploadSessionCursor.h" 10 | #import "DictionarySerializer.h" 11 | 12 | @interface DropboxUploadSessionCursor (DictionarySerializer) 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pod/Classes/Serializers/DropboxUploadSessionCursor+DictionarySerializer.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxUploadSessionCursor+DictionarySerializer.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 21.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxUploadSessionCursor+DictionarySerializer.h" 10 | 11 | @implementation DropboxUploadSessionCursor (DictionarySerializer) 12 | 13 | - (NSDictionary *)dictionaryFromParams 14 | { 15 | return @{@"session_id": self.sessionID, 16 | @"offset": @(self.offset)}; 17 | } 18 | 19 | @end 20 | -------------------------------------------------------------------------------- /Pod/Classes/Serializers/DropboxUploadSessionFinishArg+DictionarySerializer.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxUploadSessionFinishArg+DictionarySerializer.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 21.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxUploadSessionFinishArg.h" 10 | #import "DictionarySerializer.h" 11 | 12 | @interface DropboxUploadSessionFinishArg (DictionarySerializer) 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pod/Classes/Serializers/DropboxUploadSessionFinishArg+DictionarySerializer.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxUploadSessionFinishArg+DictionarySerializer.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 21.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxUploadSessionFinishArg+DictionarySerializer.h" 10 | #import "DropboxUploadSessionCursor+DictionarySerializer.h" 11 | #import "DropboxCommitInfo+DictionarySerializer.h" 12 | 13 | @implementation DropboxUploadSessionFinishArg (DictionarySerializer) 14 | 15 | - (NSDictionary *)dictionaryFromParams 16 | { 17 | return @{@"cursor": [self.cursor dictionaryFromParams], 18 | @"commit": [self.commit dictionaryFromParams]}; 19 | } 20 | 21 | @end 22 | -------------------------------------------------------------------------------- /Pod/Classes/Serializers/DropboxUploadSessionStartArg+DictionarySerializer.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxUploadSessionStartArg+DictionarySerializer.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 21.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxUploadSessionStartArg.h" 10 | #import "DictionarySerializer.h" 11 | 12 | @interface DropboxUploadSessionStartArg (DictionarySerializer) 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Pod/Classes/Serializers/DropboxUploadSessionStartArg+DictionarySerializer.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxUploadSessionStartArg+DictionarySerializer.m 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 21.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxUploadSessionStartArg+DictionarySerializer.h" 10 | 11 | @implementation DropboxUploadSessionStartArg (DictionarySerializer) 12 | 13 | - (NSDictionary *)dictionaryFromParams 14 | { 15 | return @{@"close": @(self.close) }; 16 | } 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /Pod/Classes/Serializers/DropboxWriteMode+DictionarySerializer.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxWriteMode+DictionarySerializer.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 21.04.16. 6 | // 7 | // 8 | 9 | #import "DropboxWriteMode.h" 10 | 11 | @interface DropboxWriteMode (DictionarySerializer) 12 | 13 | - (nonnull id)dictionaryOrStringFromParams; 14 | - (NSString * _Nonnull)stringFromSelf; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /Pod/Classes/Serializers/EnumToStringSerializer.h: -------------------------------------------------------------------------------- 1 | // 2 | // EnumToStringSerializer.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 25.04.16. 6 | // 7 | // 8 | 9 | #import 10 | 11 | @protocol EnumToStringSerializer 12 | 13 | + (NSString * _Nullable)stringFromEnum:(NSUInteger)value; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /Pod/Classes/ViewController/DropboxAuthViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxAuthenticationViewController.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 01.04.16. 6 | // 7 | // 8 | 9 | #import 10 | #import "DropboxAuthViewControllerProtocol.h" 11 | 12 | @interface DropboxAuthViewController : UIViewController 13 | 14 | @property (nonatomic, weak) id delegate; 15 | @property (nonatomic) NSString *appKey; 16 | @property (nonatomic) NSString *redirectURL; 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /Pod/Classes/ViewController/DropboxAuthViewControllerProtocol.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropboxAuthViewControllerProtocol.h 3 | // Pods 4 | // 5 | // Created by Михаил Мотыженков on 19.04.16. 6 | // 7 | // 8 | 9 | #import 10 | #import "DropboxAuthDelegate.h" 11 | 12 | @protocol DropboxAuthViewControllerProtocol 13 | 14 | @property (nonatomic, weak) id delegate; 15 | @property (nonatomic) NSString * appKey; 16 | @property (nonatomic) NSString *redirectURL; 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /_Pods.xcodeproj: -------------------------------------------------------------------------------- 1 | Example/Pods/Pods.xcodeproj --------------------------------------------------------------------------------