├── .github └── PULL_REQUEST_TEMPLATE ├── .gitignore ├── CHANGELOG.md ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── android-plugin ├── .gitignore ├── build.gradle ├── plugin-dependencies │ └── AndroidManifest.xml └── src │ └── main │ ├── AndroidManifest.xml │ ├── assets │ └── help_center_article_style.css │ ├── java │ └── com │ │ └── zendesk │ │ ├── sdk │ │ └── network │ │ │ └── impl │ │ │ └── UserAgentHeaderUtil.java │ │ └── unity │ │ ├── UnityComponent.java │ │ ├── ZDK_Plugin.java │ │ ├── providers │ │ ├── HelpCenterProvider.java │ │ ├── RequestProvider.java │ │ ├── SettingsProvider.java │ │ ├── UploadProvider.java │ │ └── UserProvider.java │ │ └── push │ │ └── ZDKPush.java │ └── res │ └── values │ ├── colors.xml │ ├── strings.xml │ ├── styles.xml │ └── zdk.xml ├── build.gradle ├── gradle.properties ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat ├── ios-plugin ├── build.gradle ├── setup-src │ └── ZendeskCore.h └── src │ ├── NSObject+ZDKBWJSONMatcher.h │ ├── NSObject+ZDKBWJSONMatcher.m │ ├── ZDKConfig+Private.h │ ├── ZDKHelpCenterDelegate.h │ ├── ZDKHelpCenterDelegate.m │ ├── ZendeskAppearanceBinding.m │ ├── ZendeskConfig.m │ ├── ZendeskCore.m │ ├── ZendeskHelpCenter.m │ ├── ZendeskJSON.h │ ├── ZendeskJSON.m │ ├── ZendeskLogger.m │ ├── ZendeskModalNavigationController.h │ ├── ZendeskModalNavigationController.m │ ├── ZendeskProviderAvatar.m │ ├── ZendeskProviderHelpCenter.m │ ├── ZendeskProviderRequest.m │ ├── ZendeskProviderSDK.framework │ ├── Headers │ │ ├── ZDKAccount.h │ │ ├── ZDKAccountSettings.h │ │ ├── ZDKAnonymousIdentity.h │ │ ├── ZDKAppSettings.h │ │ ├── ZDKAttachment.h │ │ ├── ZDKAttachmentCache.h │ │ ├── ZDKAttachmentSettings.h │ │ ├── ZDKAuthenticationSpace.h │ │ ├── ZDKAuthenticationURLProtocol.h │ │ ├── ZDKAvatarProvider.h │ │ ├── ZDKBundleUtils.h │ │ ├── ZDKCoding.h │ │ ├── ZDKComment.h │ │ ├── ZDKCommentWithUser.h │ │ ├── ZDKCommentsResponse.h │ │ ├── ZDKConfig.h │ │ ├── ZDKContactUsSettings.h │ │ ├── ZDKConversationsSettings.h │ │ ├── ZDKCreateRequest.h │ │ ├── ZDKCustomField.h │ │ ├── ZDKDateUtil.h │ │ ├── ZDKDeviceInfo.h │ │ ├── ZDKDictionaryCreatable.h │ │ ├── ZDKDispatcher.h │ │ ├── ZDKDispatcherResponse.h │ │ ├── ZDKETag.h │ │ ├── ZDKHelpCenterArticle.h │ │ ├── ZDKHelpCenterArticleViewModel.h │ │ ├── ZDKHelpCenterArticleVote.h │ │ ├── ZDKHelpCenterAttachment.h │ │ ├── ZDKHelpCenterCategory.h │ │ ├── ZDKHelpCenterCategoryViewModel.h │ │ ├── ZDKHelpCenterConversationsUIDelegate.h │ │ ├── ZDKHelpCenterDeflection.h │ │ ├── ZDKHelpCenterFlatArticle.h │ │ ├── ZDKHelpCenterLastSearch.h │ │ ├── ZDKHelpCenterOverviewContentModel.h │ │ ├── ZDKHelpCenterParser.h │ │ ├── ZDKHelpCenterProvider.h │ │ ├── ZDKHelpCenterSearch.h │ │ ├── ZDKHelpCenterSection.h │ │ ├── ZDKHelpCenterSectionViewModel.h │ │ ├── ZDKHelpCenterSessionCache.h │ │ ├── ZDKHelpCenterSettings.h │ │ ├── ZDKHelpCenterSimpleArticle.h │ │ ├── ZDKHelpCenterViewModel.h │ │ ├── ZDKIdentity.h │ │ ├── ZDKIdentityStorage.h │ │ ├── ZDKJsonUtil.h │ │ ├── ZDKJwtIdentity.h │ │ ├── ZDKKeychainWrapper.h │ │ ├── ZDKLocalization.h │ │ ├── ZDKLogger.h │ │ ├── ZDKMobileProvisionAnalyzer.h │ │ ├── ZDKNSCodingUtil.h │ │ ├── ZDKProvider.h │ │ ├── ZDKPushRegistrationProvider.h │ │ ├── ZDKPushRegistrationRequest.h │ │ ├── ZDKPushRegistrationResponse.h │ │ ├── ZDKReachability.h │ │ ├── ZDKRequest.h │ │ ├── ZDKRequestProvider.h │ │ ├── ZDKRequestStorage.h │ │ ├── ZDKRequestUpdates.h │ │ ├── ZDKRequestUpdatesProtocol.h │ │ ├── ZDKRequestWithAttachmentsUtil.h │ │ ├── ZDKRequestsResponse.h │ │ ├── ZDKSdkStorage.h │ │ ├── ZDKSettings.h │ │ ├── ZDKSettingsProvider.h │ │ ├── ZDKStringUtil.h │ │ ├── ZDKTicketField.h │ │ ├── ZDKTicketFieldOption.h │ │ ├── ZDKTicketFieldSystemOption.h │ │ ├── ZDKTicketForm.h │ │ ├── ZDKTicketFormsSettings.h │ │ ├── ZDKUploadProvider.h │ │ ├── ZDKUploadResponse.h │ │ ├── ZDKUser.h │ │ ├── ZDKUserField.h │ │ ├── ZDKUserProvider.h │ │ ├── ZDKValidator.h │ │ ├── ZendeskProviderSDK.h │ │ └── ZendeskSDKConstants.h │ ├── Info.plist │ ├── Modules │ │ └── module.modulemap │ ├── PrivateHeaders │ │ ├── ZDKAccountAuthHelper.h │ │ ├── ZDKErrorParser.h │ │ ├── ZDKLoginRequest.h │ │ ├── ZDKLoginRequestPartsFactory.h │ │ ├── ZDKRequestExecutor.h │ │ ├── ZDKRequestHelper.h │ │ ├── ZDKRequestManager.h │ │ ├── ZDKRequestQueue.h │ │ ├── ZDKRequestSession.h │ │ ├── ZDKRequestSessionFactory.h │ │ ├── ZDKRequestSessionLoggedIn.h │ │ ├── ZDKRequestSessionLoggingIn.h │ │ └── ZDKRequestSessionNotLoggedIn.h │ └── ZendeskProviderSDK │ ├── ZendeskProviderSettings.m │ ├── ZendeskProviderUpload.m │ ├── ZendeskProviderUser.m │ ├── ZendeskPush.m │ ├── ZendeskRequests.m │ ├── ZendeskSDK.bundle │ ├── Info.plist │ ├── ModelIdentifier.plist │ ├── ZDKCreateRequestViewController.nib │ ├── ZDKHelpCenterArticleRatingView.nib │ │ ├── objects-11.0+.nib │ │ └── runtime.nib │ ├── ZDKHelpCenterOverviewArticleTableViewCell.nib │ │ ├── objects-11.0+.nib │ │ └── runtime.nib │ ├── ZDKHelpCenterOverviewController.nib │ ├── ZDKHelpCenterOverviewFooterView.nib │ ├── ZDKHelpCenterOverviewHeaderView.nib │ │ ├── objects-11.0+.nib │ │ └── runtime.nib │ ├── ZDKHelpCenterOverviewLoadingTableViewCell.nib │ ├── ZDKHelpCenterOverviewSectionTableViewCell.nib │ │ ├── objects-11.0+.nib │ │ └── runtime.nib │ ├── ZDKHelpCenterOverviewSeeAllTableViewCell.nib │ │ ├── objects-11.0+.nib │ │ └── runtime.nib │ ├── ZDKHelpCenterOverviewSpacerTableViewCell.nib │ ├── ZDKHelpCenterSearchResultTableViewCell.nib │ ├── ZDKHelpCenterSearchResultViewController.nib │ ├── btnAttach.png │ ├── btnAttach@2x.png │ ├── btnAttach@3x.png │ ├── help_center_article_style.css │ ├── icoAdd.png │ ├── icoAdd@2x.png │ ├── icoAdd@3x.png │ ├── icoAttach.png │ ├── icoAttach@2x.png │ ├── icoAttach@3x.png │ ├── icoClose.png │ ├── icoClose@2x.png │ ├── icoClose@3x.png │ ├── icoDown.png │ ├── icoDown@2x.png │ ├── icoDown@3x.png │ ├── icoVoteDown.png │ ├── icoVoteDown@2x.png │ ├── icoVoteDown@3x.png │ ├── icoVoteUp.png │ ├── icoVoteUp@2x.png │ ├── icoVoteUp@3x.png │ ├── ico_coversations.png │ ├── ico_coversations@2x.png │ ├── ico_coversations@3x.png │ ├── ico_newticket.png │ ├── ico_newticket@2x.png │ └── ico_newticket@3x.png │ ├── ZendeskSDK.framework │ ├── Headers │ │ ├── ZDKArticleView.h │ │ ├── ZDKArticleViewController.h │ │ ├── ZDKAttachmentCollectionViewCell.h │ │ ├── ZDKAttachmentView.h │ │ ├── ZDKAttachmentViewDataSource.h │ │ ├── ZDKCommentInputView.h │ │ ├── ZDKCommentInputViewController.h │ │ ├── ZDKCommentsTableViewController.h │ │ ├── ZDKCommentsTableViewDataSource.h │ │ ├── ZDKCommentsTableViewDelegate.h │ │ ├── ZDKCommentsViewController.h │ │ ├── ZDKCreateRequestUIDelegate.h │ │ ├── ZDKCreateRequestView.h │ │ ├── ZDKCreateRequestViewController.h │ │ ├── ZDKHelpCenter.h │ │ ├── ZDKHelpCenterAttachmentsDataSource.h │ │ ├── ZDKHelpCenterDataSource.h │ │ ├── ZDKHelpCenterErrorCodes.h │ │ ├── ZDKHelpCenterOverviewController.h │ │ ├── ZDKImageViewerViewController.h │ │ ├── ZDKPushUtil.h │ │ ├── ZDKRequestCommentAttachmentLoadingTableCell.h │ │ ├── ZDKRequestCommentTableCell.h │ │ ├── ZDKRequestListTable.h │ │ ├── ZDKRequestListTableCell.h │ │ ├── ZDKRequestListViewController.h │ │ ├── ZDKRequests.h │ │ ├── ZDKRotationForwarding.h │ │ ├── ZDKSpinnerDelegate.h │ │ ├── ZDKSupportAttachmentCell.h │ │ ├── ZDKTheme.h │ │ ├── ZDKToast.h │ │ ├── ZDKToastStyle.h │ │ ├── ZDKToastView.h │ │ ├── ZDKUIActivityView.h │ │ ├── ZDKUIImageScrollView.h │ │ ├── ZDKUILoadingView.h │ │ ├── ZDKUITextViewDelegate.h │ │ ├── ZDKUIUtil.h │ │ ├── ZDKUIViewController.h │ │ ├── Zendesk.h │ │ └── ZendeskSDK.h │ ├── Info.plist │ ├── Modules │ │ └── module.modulemap │ ├── PrivateHeaders │ │ ├── ZDKAlertAction.h │ │ ├── ZDKAlertController.h │ │ └── ZDKUITextView.h │ └── ZendeskSDK │ ├── ZendeskSDK.h │ ├── ZendeskSDK │ ├── ZDKAPIDispatcher.h │ ├── ZDKArticleView.h │ ├── ZDKArticleViewController.h │ ├── ZDKAttachmentCollectionViewCell.h │ ├── ZDKAttachmentView.h │ ├── ZDKAttachmentViewController.h │ ├── ZDKAttachmentViewDataSource.h │ ├── ZDKBWJSONMatcher.h │ ├── ZDKBWJSONMatcher.m │ ├── ZDKBWJSONValueObject.h │ ├── ZDKCommentInputView.h │ ├── ZDKCommentInputViewController.h │ ├── ZDKCommentsTableViewController.h │ ├── ZDKCommentsTableViewDataSource.h │ ├── ZDKCommentsTableViewDelegate.h │ ├── ZDKCommentsViewController.h │ ├── ZDKCreateRequestUIDelegate.h │ ├── ZDKCreateRequestView.h │ ├── ZDKCreateRequestViewController.h │ ├── ZDKDispatcherDelegate.h │ ├── ZDKHelpCenter.h │ ├── ZDKHelpCenterArticlesByLabelDataSource.h │ ├── ZDKHelpCenterArticlesDataSource.h │ ├── ZDKHelpCenterAttachmentsDataSource.h │ ├── ZDKHelpCenterCategoriesDataSource.h │ ├── ZDKHelpCenterDataSource.h │ ├── ZDKHelpCenterErrorCodes.h │ ├── ZDKHelpCenterOverviewController.h │ ├── ZDKHelpCenterSearchDataSource.h │ ├── ZDKHelpCenterSectionsDataSource.h │ ├── ZDKHelpCenterTableDelegate.h │ ├── ZDKImageViewerViewController.h │ ├── ZDKPushUtil.h │ ├── ZDKRequestCommentAttachmentLoadingTableCell.h │ ├── ZDKRequestCommentAttachmentTableCell.h │ ├── ZDKRequestCommentTableCell.h │ ├── ZDKRequestListTable.h │ ├── ZDKRequestListTableCell.h │ ├── ZDKRequestListViewController.h │ ├── ZDKRequests.h │ ├── ZDKRotationForwarding.h │ ├── ZDKSpinnerDelegate.h │ ├── ZDKSupportAttachmentCell.h │ ├── ZDKTheme.h │ ├── ZDKToast.h │ ├── ZDKToastStyle.h │ ├── ZDKToastView.h │ ├── ZDKUIActivityView.h │ ├── ZDKUIImageScrollView.h │ ├── ZDKUILoadingView.h │ ├── ZDKUITextView.h │ ├── ZDKUITextViewDelegate.h │ ├── ZDKUIUtil.h │ └── ZDKUIViewController.h │ ├── ZendeskSDKConstants.h │ ├── ZendeskSDKStrings.bundle │ ├── Info.plist │ ├── da.lproj │ │ └── Localizable.strings │ ├── de.lproj │ │ └── Localizable.strings │ ├── en-GB.lproj │ │ └── Localizable.strings │ ├── en.lproj │ │ └── Localizable.strings │ ├── es.lproj │ │ └── Localizable.strings │ ├── fi.lproj │ │ └── Localizable.strings │ ├── fr.lproj │ │ └── Localizable.strings │ ├── it.lproj │ │ └── Localizable.strings │ ├── ja.lproj │ │ └── Localizable.strings │ ├── ko.lproj │ │ └── Localizable.strings │ ├── nb.lproj │ │ └── Localizable.strings │ ├── nl.lproj │ │ └── Localizable.strings │ ├── pl.lproj │ │ └── Localizable.strings │ ├── pt.lproj │ │ └── Localizable.strings │ ├── ru.lproj │ │ └── Localizable.strings │ ├── sv.lproj │ │ └── Localizable.strings │ ├── tr.lproj │ │ └── Localizable.strings │ ├── zh-Hans.lproj │ │ └── Localizable.strings │ └── zh-Hant.lproj │ │ └── Localizable.strings │ └── ZendeskStringUtils.m ├── sample ├── ZendeskExample.cs └── ZendeskTester.cs ├── settings.gradle └── unity-src └── scripts ├── ZDKAvatarProvider.cs ├── ZDKBaseComponent.cs ├── ZDKConfig.cs ├── ZDKError.cs ├── ZDKHelpCenter.cs ├── ZDKHelpCenterDeflection.cs ├── ZDKHelpCenterProvider.cs ├── ZDKHelpCenterSearch.cs ├── ZDKLogger.cs ├── ZDKPush.cs ├── ZDKRequestProvider.cs ├── ZDKRequests.cs ├── ZDKSettingsProvider.cs ├── ZDKStringUtil.cs ├── ZDKUploadProvider.cs ├── ZDKUserProvider.cs ├── ZenAppearance.cs ├── ZenColor.cs └── ZenJSON.cs /.github/PULL_REQUEST_TEMPLATE: -------------------------------------------------------------------------------- 1 | ### Changes 2 | 3 | ### Reviewers 4 | @zendesk/adventure @zendesk/two-brothers 5 | 6 | ### FYI 7 | @zendesk/adventure-qa 8 | 9 | ### References 10 | - 11 | 12 | ### Risks 13 | - Low | Medium | None 14 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | build 2 | build/* 3 | plugin/IOSBuild 4 | plugin/IOSBuild/* 5 | plugin/Library 6 | plugin/Library/* 7 | plugin/Temp 8 | plugin/Temp/* 9 | plugin/Zendesk 10 | plugin/ProjectSettings 11 | 12 | # android files 13 | *.apk 14 | *.ap_ 15 | */bin 16 | */gen 17 | */obj 18 | 19 | # built products 20 | */bin/* 21 | */jar/* 22 | *.pyc 23 | .settings/ 24 | local.properties 25 | proguard/ 26 | *.swo 27 | *.swp 28 | *.iml 29 | .idea/ 30 | .gradle 31 | *.dex 32 | *.class 33 | 34 | # gitignore 35 | .history 36 | .DS_Store 37 | 38 | # files to be ignored if the project is built directly from example scene 39 | *.csproj 40 | plugin/Library 41 | plugin/ProjectSettings 42 | plugin/Temp 43 | plugin/iOSBuild 44 | plugin/plugin-csharp.sln 45 | plugin/plugin.sln 46 | plugin/plugin.userprefs 47 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | ## Pull requests 2 | 3 | Pull requests are welcome. There is a pull request template which will mention the owners of the repository. When your contribution has been given a :+1:, one of the repository owners will merge your contribution. 4 | 5 | ## Bug reports and issues 6 | 7 | Please submit any issues you encounter in the issues section of this repository. -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | **This repository has been archived and this plugin is no longer maintained.** It has been replaced with the new, native Zendesk SDK for Unity. You can read more [here](https://www.zendesk.com/unity/). 2 | -------------------------------------------------------------------------------- /android-plugin/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /android-plugin/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /android-plugin/src/main/java/com/zendesk/sdk/network/impl/UserAgentHeaderUtil.java: -------------------------------------------------------------------------------- 1 | package com.zendesk.sdk.network.impl; 2 | 3 | import android.util.Pair; 4 | 5 | import com.zendesk.unity.BuildConfig; 6 | 7 | public class UserAgentHeaderUtil { 8 | 9 | private static final String UNITY_USER_AGENT_HEADER = "Unity"; 10 | 11 | public static void addUnitySuffix() { 12 | ZendeskConfig.INSTANCE.addUserAgentHeaderSuffix(new Pair<>(UNITY_USER_AGENT_HEADER, BuildConfig.VERSION_NAME)); 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /android-plugin/src/main/java/com/zendesk/unity/providers/SettingsProvider.java: -------------------------------------------------------------------------------- 1 | package com.zendesk.unity.providers; 2 | 3 | import com.zendesk.sdk.model.settings.SafeMobileSettings; 4 | import com.zendesk.sdk.network.SdkSettingsProvider; 5 | import com.zendesk.sdk.network.impl.ZendeskConfig; 6 | import com.zendesk.unity.UnityComponent; 7 | 8 | public class SettingsProvider extends UnityComponent { 9 | 10 | public static SettingsProvider _instance; 11 | public static Object instance(){ 12 | _instance = new SettingsProvider(); 13 | return _instance; 14 | } 15 | 16 | public void getSettings(final String gameObjectName, String callbackId){ 17 | SdkSettingsProvider provider = ZendeskConfig.INSTANCE.provider().sdkSettingsProvider(); 18 | 19 | provider.getSettings( 20 | new ZendeskUnityCallback(gameObjectName, callbackId, "didSettingsProviderGetSettings")); 21 | } 22 | 23 | } 24 | -------------------------------------------------------------------------------- /android-plugin/src/main/java/com/zendesk/unity/push/ZDKPush.java: -------------------------------------------------------------------------------- 1 | package com.zendesk.unity.push; 2 | 3 | import com.zendesk.sdk.model.push.PushRegistrationResponse; 4 | import com.zendesk.sdk.network.impl.ZendeskConfig; 5 | import com.zendesk.unity.UnityComponent; 6 | 7 | 8 | public class ZDKPush extends UnityComponent { 9 | 10 | public static ZDKPush _instance = new ZDKPush(); 11 | public static Object instance(){ 12 | return _instance; 13 | } 14 | 15 | public void enablePushWithIdentifier(final String gameObjectName, String callbackId, String identifier) { 16 | ZendeskUnityCallback callback = new ZendeskUnityCallback<>(gameObjectName, callbackId, "didEnablePushWithIdentifier"); 17 | ZendeskConfig.INSTANCE.enablePushWithIdentifier(identifier, callback); 18 | } 19 | 20 | public void enablePushWithUAChannelId(final String gameObjectName, String identifier, String callbackId) { 21 | ZendeskUnityCallback callback = new ZendeskUnityCallback<>(gameObjectName, callbackId, "didEnablePushWithUAChannelId"); 22 | ZendeskConfig.INSTANCE.enablePushWithUAChannelId(identifier, callback); 23 | } 24 | 25 | public void disablePush(final String gameObjectName, String callbackId, String identifier) { 26 | ZendeskUnityCallback callback = new ZendeskUnityCallback<>(gameObjectName, callbackId, "didPushDisable"); 27 | ZendeskConfig.INSTANCE.disablePush(identifier, callback); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /android-plugin/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | #2196F3 5 | #1976D2 6 | #FFC107 7 | 8 | -------------------------------------------------------------------------------- /android-plugin/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | Unity 3 | 4 | 0dp 5 | 6 | -------------------------------------------------------------------------------- /android-plugin/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 16 | 17 | 18 | 21 | 22 | -------------------------------------------------------------------------------- /android-plugin/src/main/res/values/zdk.xml: -------------------------------------------------------------------------------- 1 | 2 | 50dp 3 | 4 | -------------------------------------------------------------------------------- /build.gradle: -------------------------------------------------------------------------------- 1 | // build file for entire Zendesk Unity SDK 2 | 3 | task clean(type: Delete) { 4 | delete "$buildDir/unity-plugin" 5 | } 6 | 7 | task build << { 8 | // Copy the c# plugin source 9 | copy { 10 | from file("unity-src/scripts") 11 | into file("$buildDir/unity-plugin/Zendesk/Scripts") 12 | } 13 | } 14 | 15 | clean.dependsOn("android-plugin:clean", "ios-plugin:clean") 16 | build.dependsOn("clean", "android-plugin:assemble", "ios-plugin:build") 17 | -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Settings specified in this file will override any Gradle settings 5 | # configured through the IDE. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m 13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 14 | 15 | # When configured, Gradle will run in incubating parallel mode. 16 | # This option should only be used with decoupled projects. More details, visit 17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 18 | # org.gradle.parallel=true -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zendesk/sdk_unity_plugin/12e6afef14c29dddef5de08035a5a0b27c0803d9/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Mon Oct 10 16:00:32 IST 2016 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip 7 | -------------------------------------------------------------------------------- /ios-plugin/build.gradle: -------------------------------------------------------------------------------- 1 | // build file for ios-plugin component of the Zendesk Unity SDK 2 | 3 | task clean(type: Delete) { 4 | delete "$buildDir" 5 | } 6 | 7 | task build << { 8 | 9 | copy { 10 | from file("setup-src") 11 | into file("$rootProject.buildDir/unity-plugin/Plugins/iOS") 12 | } 13 | 14 | copy { 15 | from file("src") 16 | into file("$rootProject.buildDir/unity-plugin/Plugins/iOS") 17 | } 18 | } 19 | 20 | build.dependsOn("clean") 21 | -------------------------------------------------------------------------------- /ios-plugin/src/NSObject+ZDKBWJSONMatcher.m: -------------------------------------------------------------------------------- 1 | // 2 | // NSObject+ZDKBWJSONMatcher.m 3 | // BWJSONMatcher 4 | // 5 | // Created by wangruicheng on 10/14/15. 6 | // Copyright © 2015 Burrows.Wang ( https://github.com/BurrowsWang ). 7 | // 8 | // Permission is hereby granted, free of charge, to any person obtaining a copy 9 | // of this software and associated documentation files (the "Software"), to deal 10 | // in the Software without restriction, including without limitation the rights 11 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | // copies of the Software, and to permit persons to whom the Software is 13 | // furnished to do so, subject to the following conditions: 14 | // 15 | // The above copyright notice and this permission notice shall be included in 16 | // all copies or substantial portions of the Software. 17 | // 18 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 24 | // THE SOFTWARE. 25 | 26 | #import "NSObject+ZDKBWJSONMatcher.h" 27 | 28 | #import "ZDKBWJSONMatcher.h" 29 | 30 | @implementation NSObject (ZDKBWJSONMatcher) 31 | 32 | - (id)toJSONObject { 33 | return [ZDKBWJSONMatcher convertObjectToJSON:self]; 34 | } 35 | 36 | - (NSString *)toJSONString { 37 | return [ZDKBWJSONMatcher convertObjectToJSONString:self]; 38 | } 39 | 40 | + (nullable instancetype)fromJSONObject:(id)jsonObject { 41 | return [ZDKBWJSONMatcher matchJSON:jsonObject withClass:[self class]]; 42 | } 43 | 44 | + (nullable instancetype)fromJSONString:(NSString *)jsonString { 45 | return [ZDKBWJSONMatcher matchJSONString:jsonString withClass:[self class]]; 46 | } 47 | 48 | @end 49 | -------------------------------------------------------------------------------- /ios-plugin/src/ZDKConfig+Private.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKConfig+Private.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 29/10/2014. 7 | * 8 | * Copyright (c) 2014 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Terms 11 | * of Service https://www.zendesk.com/company/terms and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/application-developer-and-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | #import "ZendeskSDK.h" 18 | 19 | 20 | 21 | @interface ZDKConfig () 22 | @property (nonatomic, copy) NSMutableArray *userAgentHeaderSuffixes; 23 | 24 | // user agent headers must be added after "init" is called as they get wiped in the "init" method 25 | - (BOOL)addUserAgentHeaderSuffixWithKey:(NSString *)key value:(NSString *)value; 26 | - (void)clearUserAgentSuffixes; 27 | 28 | @end 29 | -------------------------------------------------------------------------------- /ios-plugin/src/ZDKHelpCenterDelegate.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKHelpCenterDelegate.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 01/07/2017. 7 | * 8 | * Copyright © 2015 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Master 11 | * Subscription Agreement https://www.zendesk.com/company/customers-partners/#master-subscription-agreement and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/customers-partners/#application-developer-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | #import 18 | #import "ZendeskSDK.h" 19 | 20 | @interface ZDKHelpCenterDelegate : NSObject 21 | 22 | @property (nonatomic) ZDKContactUsVisibility whereActive; 23 | 24 | @end 25 | -------------------------------------------------------------------------------- /ios-plugin/src/ZDKHelpCenterDelegate.m: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKHelpCenterDelegate.m 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 01/07/2017. 7 | * 8 | * Copyright © 2015 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Master 11 | * Subscription Agreement https://www.zendesk.com/company/customers-partners/#master-subscription-agreement and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/customers-partners/#application-developer-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | #import "ZDKHelpCenterDelegate.h" 18 | #import "ZendeskSDK.h" 19 | 20 | @interface ZDKHelpCenterDelegate () 21 | 22 | @end 23 | 24 | @implementation ZDKHelpCenterDelegate 25 | 26 | 27 | - (ZDKNavBarConversationsUIType) navBarConversationsUIType { 28 | return ZDKNavBarConversationsUITypeLocalizedLabel; 29 | } 30 | 31 | - (ZDKContactUsVisibility) active { 32 | return self.whereActive; 33 | } 34 | 35 | - (UIImage *)conversationsBarButtonImage { 36 | return [UIImage imageNamed:@""]; 37 | } 38 | 39 | @end 40 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskJSON.h: -------------------------------------------------------------------------------- 1 | 2 | #import "ZendeskSDK.h" 3 | #import "NSObject+ZDKBWJSONMatcher.h" 4 | 5 | #define SafeNull(x) ((x) ? (x) : ([NSNull null])) 6 | 7 | @interface ZendeskJSON: NSObject 8 | 9 | +(NSString *)ZDKDispatcherResponseToJSON:(ZDKDispatcherResponse *) dispatcherResponse; 10 | +(NSString *)NSArrayOfZDKCommentsToJSON:(NSArray *)items; 11 | +(NSString *)NSArrayOfZDKUserFieldsToJSON:(NSArray *)items; 12 | +(NSString *)NSArrayOfZDKHelpCenterArticlesToJSON:(NSArray *)items; 13 | +(NSString *)NSArrayOfZDKHelpCenterCategoriesToJSON:(NSArray *)items; 14 | +(NSString *)NSArrayOfZDKHelpCenterSectionsToJSON:(NSArray *)items; 15 | +(NSString *)NSArrayOfZDKHelpCenterFlatArticlesToJSON:(NSArray *)items; 16 | +(NSString *)NSArrayOfZDKHelpCenterSimpleArticlesToJSON:(NSArray *)items; 17 | +(NSString *)NSArrayOfZDKRequestsToJSON:(NSArray *)items; 18 | +(NSString *)NSErrorToJSON:(NSError *) error; 19 | +(NSString *)NSHTTPURLResponseToJSON:(NSHTTPURLResponse *) response; 20 | +(NSString *)ZDKAttachmentToJSON:(ZDKAttachment *) attachment; 21 | +(NSString *)ZDKCommentToJSON:(ZDKCommentWithUser *) comment; 22 | +(NSString *)ZDKSettingsToJSON:(ZDKSettings *) settings; 23 | +(NSString *)ZDKUploadResponseToJSON:(ZDKUploadResponse *) uploadResponse; 24 | +(NSString *)serializeJSONObject:(NSObject *) jsonObject; 25 | +(NSString *)ZDKGetDeviceUpdatesToJSON:(ZDKRequestUpdates *) response; 26 | 27 | +(NSString *)ZDKVoteResponseToJSON:(ZDKHelpCenterArticleVote *) response; 28 | +(NSString *)ZDKPushRegistrationResponseToJSON:(ZDKPushRegistrationResponse *) response; 29 | +(NSString *)ZDKGenericResponseToJSON:(id) response; 30 | 31 | +(NSNumber *)NSStringToNSNumber:(NSString *) numberAsString; 32 | 33 | @end 34 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskLogger.m: -------------------------------------------------------------------------------- 1 | // 2 | // ZendeskLogger.m 3 | // ZEN 4 | // 5 | 6 | #import "ZendeskCore.h" 7 | 8 | #pragma mark - ZDKLogger 9 | 10 | void _zendeskLoggerSetLogLevel(int level) { 11 | [ZDKLogger setLogLevel:level]; 12 | } 13 | 14 | void _zendeskLoggerEnableLogger(BOOL enabled) { 15 | [ZDKLogger enable:enabled]; 16 | } 17 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskModalNavigationController.h: -------------------------------------------------------------------------------- 1 | 2 | #import 3 | 4 | @interface ZendeskModalNavigationController : UINavigationController 5 | 6 | -(void)close:(id)sender; 7 | 8 | @end 9 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskModalNavigationController.m: -------------------------------------------------------------------------------- 1 | 2 | 3 | #import "ZendeskModalNavigationController.h" 4 | 5 | @interface ZendeskModalNavigationController () 6 | 7 | @end 8 | 9 | @implementation ZendeskModalNavigationController 10 | 11 | - (void)viewDidLoad { 12 | [super viewDidLoad]; 13 | // Do any additional setup after loading the view. 14 | [self setModalPresentationStyle:UIModalPresentationFormSheet]; 15 | } 16 | 17 | - (void)didReceiveMemoryWarning { 18 | [super didReceiveMemoryWarning]; 19 | // Dispose of any resources that can be recreated. 20 | } 21 | 22 | -(void)close:(id)sender { 23 | [self dismissViewControllerAnimated:TRUE completion:nil]; 24 | } 25 | 26 | @end 27 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskProviderAvatar.m: -------------------------------------------------------------------------------- 1 | // 2 | // ZendeskProviderAvatar.m 3 | // ZEN 4 | // 5 | 6 | #import "ZendeskCore.h" 7 | 8 | #pragma mark - ZDKAvatarProvider 9 | 10 | void _zendeskAvatarProviderGetAvatar(char * gameObjectName, char * callbackId, char * avatarUrl) { 11 | ZDKAvatarProvider *provider = [ZDKAvatarProvider new]; 12 | ZDKCustomCallback(UIImage*, 13 | NSData *imageData = UIImagePNGRepresentation(result);, 14 | imageData ? ZDKBase64StringFromData(imageData, (int)imageData.length) : [NSNull null], 15 | "didAvatarProviderGetAvatar") 16 | [provider getAvatarForUrl:GetStringParam(avatarUrl) 17 | withCallback:callback]; 18 | } 19 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskProviderSDK.framework/Headers/ZDKAccountSettings.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKAccountSettings.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 19/01/2015. 7 | * 8 | * Copyright (c) 2015 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Master 11 | * Subscription Agreement https://www.zendesk.com/company/customers-partners/#master-subscription-agreement and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/customers-partners/#application-developer-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | #import 18 | #import "ZDKCoding.h" 19 | 20 | @class ZDKAttachmentSettings; 21 | 22 | /** 23 | * This class models the Account settings. These settings describe how your Zendesk instance is 24 | + configured so they are really higher level sdk settings. 25 | * 26 | * @see ZDKAppSettings 27 | */ 28 | @interface ZDKAccountSettings : ZDKCoding 29 | 30 | /** 31 | * Gets the attachment settings for the Zendesk instance. 32 | */ 33 | @property (nonatomic, strong, readonly) ZDKAttachmentSettings *attachmentSettings; 34 | 35 | 36 | /** 37 | * Initializes a new instance of ZDKAccountSettings with the contents of the dictionary provided. 38 | * 39 | * @param dictionary A dictionary of the Zendesk instance account settings. 40 | * 41 | * @return An initialzed ZDKAccountSettings object. 42 | */ 43 | - (instancetype) initWithDictionary:(NSDictionary *) dictionary; 44 | 45 | @end 46 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskProviderSDK.framework/Headers/ZDKAnonymousIdentity.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKAnonymousIdentity.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 19/11/2014. 7 | * 8 | * Copyright (c) 2014 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Master 11 | * Subscription Agreement https://www.zendesk.com/company/customers-partners/#master-subscription-agreement and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/customers-partners/#application-developer-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | #import 18 | #import "ZDKIdentity.h" 19 | #import "ZDKCoding.h" 20 | 21 | @interface ZDKAnonymousIdentity : ZDKCoding 22 | 23 | @property (nonatomic, copy) NSString *name; 24 | @property (nonatomic, copy) NSString *email; 25 | 26 | 27 | @end 28 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskProviderSDK.framework/Headers/ZDKAttachment.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKAttachment.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 1/13/15. 7 | * 8 | * Copyright (c) 2015 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Master 11 | * Subscription Agreement https://www.zendesk.com/company/customers-partners/#master-subscription-agreement and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/customers-partners/#application-developer-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | /** 18 | * An attachment to a Zendesk comment 19 | */ 20 | @interface ZDKAttachment : NSObject 21 | 22 | /** 23 | * The id of this attachment in Zendesk. 24 | * 25 | * @since 1.1.0.1 26 | */ 27 | @property (nonatomic, strong) NSNumber *attachmentId; 28 | 29 | /** 30 | * The name of the attachment in Zendesk. 31 | * 32 | * @since 1.1.0.1 33 | */ 34 | @property (nonatomic, copy) NSString *filename; 35 | 36 | /** 37 | * The full url where the attachment can be downloaded. 38 | * 39 | * @since 1.1.0.1 40 | */ 41 | @property (nonatomic, copy) NSString *contentURLString; 42 | 43 | /** 44 | * The content type of the attachment, i.e. image/png 45 | * 46 | * @since 1.1.0.1 47 | */ 48 | @property (nonatomic, copy) NSString *contentType; 49 | 50 | /** 51 | * The size of the attachment in bytes. 52 | * 53 | * @since 1.1.0.1 54 | */ 55 | @property (nonatomic, strong) NSNumber *size; 56 | 57 | /** 58 | * Thumbnails associated with the attachment. A thumbnail is an attachment with a nil thumbnails array. 59 | * 60 | * @since 1.1.0.1 61 | */ 62 | @property (nonatomic, copy) NSArray *thumbnails; 63 | 64 | 65 | /** 66 | * Init with dictionary from API response. 67 | * 68 | * @since 1.1.0.1 69 | * 70 | * @param dict the dictionary generated from the JSON API response 71 | */ 72 | - (instancetype) initWithDict:(NSDictionary*)dict; 73 | 74 | 75 | @end 76 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskProviderSDK.framework/Headers/ZDKAttachmentCache.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKAttachmentCache.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 26/01/2015. 7 | * 8 | * Copyright (c) 2015 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Master 11 | * Subscription Agreement https://www.zendesk.com/company/customers-partners/#master-subscription-agreement and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/customers-partners/#application-developer-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | #import 18 | 19 | @interface ZDKAttachmentCache : NSObject 20 | 21 | /** 22 | * Get an attachment from the cache with an attachment filename. 23 | * 24 | * @param filename an attachment. 25 | * 26 | * @return a UIImage. 27 | */ 28 | + (UIImage *) imageWithFilename:(NSString *)filename; 29 | 30 | /** 31 | * Cache an attachment. 32 | * 33 | * @param image the UIImage to be cached. 34 | * @param filename the id of the attachment being cached. 35 | */ 36 | + (void) cacheImage:(UIImage *)image withFilename:(NSString *)filename; 37 | 38 | /** 39 | * Clears the attachment cache. 40 | */ 41 | + (void) clearCache; 42 | 43 | @end 44 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskProviderSDK.framework/Headers/ZDKAttachmentSettings.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKAttachmentSettings.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 19/01/2015. 7 | * 8 | * Copyright (c) 2015 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Master 11 | * Subscription Agreement https://www.zendesk.com/company/customers-partners/#master-subscription-agreement and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/customers-partners/#application-developer-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | #import 18 | #import "ZDKCoding.h" 19 | 20 | @interface ZDKAttachmentSettings : ZDKCoding 21 | 22 | 23 | /** 24 | * This setting corresponds to the "Customers can attach files" setting in the Zendesk admin interface. 25 | */ 26 | @property (nonatomic, assign, readonly) BOOL enabled; 27 | 28 | /** 29 | * This setting controls the maximum attachment size that can be uploaded to your Zendesk. 30 | */ 31 | @property (nonatomic, strong, readonly) NSNumber *maxAttachmentSize; 32 | 33 | 34 | /** 35 | * Initializes a new instance of ZDKAccountSettings with the contents of the dictionary provided. 36 | * 37 | * @param dictionary A dictionary of the attachment settings. 38 | * 39 | * @return An initialized ZDKAttachmentSettings object. 40 | */ 41 | - (instancetype) initWithDictionary:(NSDictionary *) dictionary; 42 | 43 | 44 | @end 45 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskProviderSDK.framework/Headers/ZDKAuthenticationURLProtocol.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKAuthenticationURLProtocol.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 23/04/2015. 7 | * 8 | * Copyright (c) 2015 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Master 11 | * Subscription Agreement https://www.zendesk.com/company/customers-partners/#master-subscription-agreement and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/customers-partners/#application-developer-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | #import 18 | 19 | @interface ZDKAuthenticationURLProtocol : NSURLProtocol 20 | 21 | @end 22 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskProviderSDK.framework/Headers/ZDKAvatarProvider.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKAvatarProvider.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 10/11/2014. 7 | * 8 | * Copyright (c) 2014 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Master 11 | * Subscription Agreement https://www.zendesk.com/company/customers-partners/#master-subscription-agreement and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/customers-partners/#application-developer-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | #import 18 | #import "ZDKProvider.h" 19 | 20 | 21 | /** 22 | * Block invoked to pass data back from API call 23 | * 24 | * @since 0.9.3.1 25 | * 26 | * @param avatar UIImage of the response from server, can be nil on error 27 | * @param error NSError returned on during error state, can be nil on success 28 | */ 29 | typedef void (^ZDKAvatarCallback)(UIImage *avatar, NSError *error); 30 | 31 | /** 32 | * Provider for images/avatars. 33 | * 34 | * @since 0.9.3.1 35 | */ 36 | @interface ZDKAvatarProvider : ZDKProvider 37 | 38 | /** 39 | * Get the image/avatar data for a given URL 40 | * 41 | * @since 0.9.3.1 42 | * 43 | * @param avatarUrl NSString url of the image to be fetched 44 | * @param callback block callback executed on error or success states 45 | */ 46 | - (void) getAvatarForUrl:(NSString *)avatarUrl withCallback:(ZDKAvatarCallback)callback; 47 | 48 | 49 | @end 50 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskProviderSDK.framework/Headers/ZDKCoding.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKCoding.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 26/11/2014. 7 | * 8 | * Copyright (c) 2014 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Master 11 | * Subscription Agreement https://www.zendesk.com/company/customers-partners/#master-subscription-agreement and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/customers-partners/#application-developer-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | #import 18 | 19 | @interface ZDKCoding : NSObject 20 | 21 | @end 22 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskProviderSDK.framework/Headers/ZDKComment.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKComment.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 13/06/2014. 7 | * 8 | * Copyright (c) 2014 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Master 11 | * Subscription Agreement https://www.zendesk.com/company/customers-partners/#master-subscription-agreement and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/customers-partners/#application-developer-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | #import 17 | 18 | /** 19 | * A comment on a Zendesk request. 20 | * 21 | * @since 0.9.3.1 22 | */ 23 | @interface ZDKComment : NSObject 24 | 25 | /** 26 | * The id of this comment in Zendesk. 27 | * 28 | * @since 0.9.3.1 29 | */ 30 | @property (nonatomic, strong, readonly) NSNumber *commentId; 31 | 32 | /** 33 | * The comment body/text. 34 | * 35 | * @since 0.9.3.1 36 | */ 37 | @property (nonatomic, copy) NSString *body; 38 | 39 | /** 40 | * The Zendesk user id of the author. 41 | * 42 | * @since 0.9.3.1 43 | */ 44 | @property (nonatomic, strong) NSNumber *authorId; 45 | 46 | /** 47 | * The timestamp for the creation of this comment. 48 | * 49 | * @since 0.9.3.1 50 | */ 51 | @property (nonatomic, strong) NSDate *createdAt; 52 | 53 | /** 54 | * Collection of ZDKAttachments associated with this comment. 55 | * 56 | * @since 0.9.3.1 57 | */ 58 | @property (nonatomic, copy) NSArray *attachments; 59 | 60 | /** 61 | * The request the comment belongs to. 62 | * 63 | * @since 1.4.1.1 64 | */ 65 | @property (nonatomic, copy) NSString *requestId; 66 | 67 | /** 68 | * Initialise the model object with the account details ands the dispatcher to be used for requests. 69 | * 70 | * @since 0.9.3.1 71 | * 72 | * @param dictionary the dictionary generated from the API json 73 | */ 74 | - (instancetype) initWithDictionary:(NSDictionary*)dictionary; 75 | 76 | 77 | @end 78 | 79 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskProviderSDK.framework/Headers/ZDKCommentWithUser.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKCommentWithUser.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 10/11/2014. 7 | * 8 | * Copyright (c) 2014 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Master 11 | * Subscription Agreement https://www.zendesk.com/company/customers-partners/#master-subscription-agreement and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/customers-partners/#application-developer-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | #import 18 | @class ZDKComment, ZDKUser; 19 | 20 | /** 21 | * Aggregate model for comments with users. 22 | * 23 | * @since 0.9.3.1 24 | */ 25 | @interface ZDKCommentWithUser : NSObject 26 | 27 | /** 28 | * The comment model. 29 | * 30 | * @since 0.9.3.1 31 | */ 32 | @property (nonatomic, strong, readonly) ZDKComment *comment; 33 | 34 | /** 35 | * The user associated with the comment model. 36 | * 37 | * @since 0.9.3.1 38 | */ 39 | @property (nonatomic, strong, readonly) ZDKUser *user; 40 | 41 | /** 42 | * Build an instance with comment and a user. 43 | * 44 | * @since 0.9.3.1 45 | * 46 | * @param comment A comment to build with. 47 | * @param users A user to associate to a comment. 48 | * 49 | * @return A new instance. 50 | */ 51 | + (instancetype) buildCommentWithUser:(ZDKComment *)comment withUsers:(NSArray *)users; 52 | 53 | @end 54 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskProviderSDK.framework/Headers/ZDKCommentsResponse.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKCommentsResponse.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 09/11/2014. 7 | * 8 | * Copyright (c) 2014 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Master 11 | * Subscription Agreement https://www.zendesk.com/company/customers-partners/#master-subscription-agreement and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/customers-partners/#application-developer-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | #import 18 | 19 | /** 20 | * Collection model for comments. 21 | * 22 | * @since 0.9.3.1 23 | */ 24 | @interface ZDKCommentsResponse : NSObject 25 | 26 | 27 | /** 28 | * Array of comments with users. 29 | * 30 | * @since 0.9.3.1 31 | */ 32 | @property (nonatomic, copy, readonly) NSArray *commmentsWithUsers; 33 | 34 | 35 | /** 36 | * Parse data from an API and create an array of comments with users. 37 | * 38 | * @since 0.9.3.1 39 | * 40 | * @param dictionary JSON data from an API call. 41 | * 42 | * @return An array of comments with users. 43 | */ 44 | + (NSArray *) parseData:(NSDictionary *) dictionary; 45 | 46 | @end 47 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskProviderSDK.framework/Headers/ZDKContactUsSettings.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKContactUsSettings.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 16/10/2014. 7 | * 8 | * Copyright (c) 2014 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Master 11 | * Subscription Agreement https://www.zendesk.com/company/customers-partners/#master-subscription-agreement and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/customers-partners/#application-developer-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | #import 18 | #import "ZDKCoding.h" 19 | 20 | /** 21 | * Models the Contact Us settings in the admin config panel. 22 | * 23 | * @since 0.9.3.1 24 | */ 25 | @interface ZDKContactUsSettings : ZDKCoding 26 | 27 | /** 28 | * tags is a list of tags that should be included as part of the ticket creation. 29 | * 30 | * @since 0.9.3.1 31 | */ 32 | @property (nonatomic, copy, readonly) NSArray *tags; 33 | 34 | /** 35 | * initWithDictionary, passing the NSDictionary of Contact Us settings received from the server. 36 | * 37 | * @since 0.9.3.1 38 | */ 39 | - (id) initWithDictionary:(NSDictionary *)dictionary ; 40 | 41 | @end 42 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskProviderSDK.framework/Headers/ZDKConversationsSettings.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKConversationsSettings.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 16/10/2014. 7 | * 8 | * Copyright (c) 2014 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Master 11 | * Subscription Agreement https://www.zendesk.com/company/customers-partners/#master-subscription-agreement and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/customers-partners/#application-developer-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | #import 18 | #import "ZDKCoding.h" 19 | 20 | 21 | /** 22 | * Models the Conversations settings in the admin config panel. 23 | * 24 | * @since 0.9.3.1 25 | */ 26 | @interface ZDKConversationsSettings : ZDKCoding 27 | 28 | 29 | /** 30 | * enabled defines if the conversations component is enabled or not. 31 | * 32 | * @since 0.9.3.1 33 | */ 34 | @property (nonatomic, assign, readonly) BOOL enabled; 35 | 36 | 37 | /** 38 | * initWithDictionary, passing the NSDictionary of Conversations settings received from the server. 39 | * 40 | * @since 0.9.3.1 41 | */ 42 | - (id) initWithDictionary:(NSDictionary *)dictionary ; 43 | 44 | @end 45 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskProviderSDK.framework/Headers/ZDKCustomField.h: -------------------------------------------------------------------------------- 1 | /* 2 | * ZDKCustomField.h 3 | * ZendeskSDK 4 | * 5 | * Created by Zendesk on 08/11/2014. 6 | * 7 | * Copyright (c) 2014 Zendesk. All rights reserved. 8 | * 9 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Master 10 | * Subscription Agreement https://www.zendesk.com/company/customers-partners/#master-subscription-agreement and Application Developer and API License 11 | * Agreement https://www.zendesk.com/company/customers-partners/#application-developer-api-license-agreement and 12 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 13 | * 14 | */ 15 | 16 | #import 17 | 18 | @interface ZDKCustomField : NSObject 19 | 20 | @property (nonatomic, strong, readonly) NSNumber *fieldId; 21 | @property (nonatomic, copy, readonly) NSString *value; 22 | 23 | /** 24 | * init the object 25 | * 26 | * @param aFieldId id of the custom field 27 | * @param aValue value for custom field 28 | * 29 | * @return instance of custom field 30 | */ 31 | - (instancetype) initWithFieldId:(NSNumber *) aFieldId andValue:(NSString *) aValue; 32 | 33 | /** 34 | * Dictionary Representation of ZDKCustomField 35 | * 36 | * @return NSDictionary of custom field 37 | */ 38 | - (NSDictionary *) dictionaryValue; 39 | 40 | @end 41 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskProviderSDK.framework/Headers/ZDKDictionaryCreatable.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKDictionaryCreatable.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 25/07/2016. 7 | * 8 | * Copyright (c) 2016 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Master 11 | * Subscription Agreement https://www.zendesk.com/company/customers-partners/#master-subscription-agreement and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/customers-partners/#application-developer-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | #import 18 | 19 | @protocol ZDKDictionaryCreatable 20 | 21 | + (id)alloc; 22 | 23 | - (instancetype)initWithDictionary:(NSDictionary*)dictionary; 24 | 25 | @end 26 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskProviderSDK.framework/Headers/ZDKDispatcherResponse.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKDispatcherResponse.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 13/06/2014. 7 | * 8 | * Copyright (c) 2014 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Master 11 | * Subscription Agreement https://www.zendesk.com/company/customers-partners/#master-subscription-agreement and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/customers-partners/#application-developer-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | 18 | #import 19 | 20 | /** 21 | * A model for the responses from the dispatcher. 22 | * 23 | * @since 0.9.3.1 24 | */ 25 | @interface ZDKDispatcherResponse : NSObject 26 | 27 | /** 28 | * The HTTP response from the request. 29 | * 30 | * @since 0.9.3.1 31 | */ 32 | @property (nonatomic, strong) NSHTTPURLResponse *response; 33 | 34 | /** 35 | * The data from the request. 36 | * 37 | * @since 0.9.3.1 38 | */ 39 | @property (nonatomic, strong) NSData *data; 40 | 41 | 42 | /** 43 | * Init a ZDKDispatcherResponse. 44 | * 45 | * @since 0.9.3.1 46 | * 47 | * @param response A HTTP response. 48 | * @param data Data from a HTTP response. 49 | * 50 | * @return a new instance. 51 | */ 52 | - (instancetype) initWithResponse:(NSHTTPURLResponse*)response andData:(NSData*)data; 53 | 54 | 55 | @end 56 | 57 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskProviderSDK.framework/Headers/ZDKETag.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKETag.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 01/09/2014. 7 | * 8 | * Copyright (c) 2014 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Master 11 | * Subscription Agreement https://www.zendesk.com/company/customers-partners/#master-subscription-agreement and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/customers-partners/#application-developer-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | #import 18 | 19 | @class ZDKDispatcherResponse; 20 | 21 | /** 22 | * ETag lookup. 23 | * 24 | * @since 0.9.3.1 25 | */ 26 | @interface ZDKETag : NSObject 27 | 28 | #pragma mark etags 29 | 30 | 31 | /** 32 | * Adds the etag to the request if one is known. 33 | * 34 | * @since 0.9.3.1 35 | * 36 | * @param request the request to which the etag will be added 37 | */ 38 | + (void) addEtagToRequest:(NSMutableURLRequest*)request; 39 | 40 | 41 | 42 | /** 43 | * Store the etag from the request and check if the response is 'unmodified' 44 | * 45 | * @since 0.9.3.1 46 | * 47 | * @param response the response data 48 | * @return YES if the response was 'unmodified' otherwise NO 49 | */ 50 | + (BOOL) unmodified:(ZDKDispatcherResponse*)response; 51 | 52 | 53 | 54 | /** 55 | * Get an ETag for a url if it is known. 56 | * 57 | * @since 0.9.3.1 58 | * 59 | * @param url the URL for the request or response. 60 | * @return An ETag or nil if none was found. 61 | */ 62 | + (NSString *) eTagForURL:(NSURL*)url; 63 | 64 | 65 | @end 66 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskProviderSDK.framework/Headers/ZDKHelpCenterArticleViewModel.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKHelpCenterArticleViewModel.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 11/05/2016. 7 | * 8 | * Copyright © 2016 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Master 11 | * Subscription Agreement https://www.zendesk.com/company/customers-partners/#master-subscription-agreement and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/customers-partners/#application-developer-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | #import 18 | #import "ZDKHelpCenterViewModel.h" 19 | 20 | @interface ZDKHelpCenterArticleViewModel : NSObject 21 | 22 | /** 23 | * Article id. 24 | * 25 | * @since 1.7.0.1 26 | */ 27 | @property (nonatomic, copy) NSString *articleId; 28 | 29 | /** 30 | * Section id. 31 | * 32 | * @since 1.7.0.1 33 | */ 34 | @property (nonatomic, copy) NSString *sectionId; 35 | 36 | /** 37 | * Article title. 38 | * 39 | * @since 1.7.0.1 40 | */ 41 | @property (nonatomic, copy) NSString *title; 42 | 43 | /** 44 | * Parses returned json to articles 45 | * 46 | * @param json The Json to be parsed 47 | * 48 | * @return An array of help center articles 49 | */ 50 | + (NSArray *)parseArticles:(NSDictionary *)json; 51 | 52 | /** 53 | * Parses json to a single article 54 | * 55 | * @param json The json to be parsed 56 | * 57 | * @return a basic article 58 | */ 59 | + (ZDKHelpCenterArticleViewModel *)parseArticle:(NSDictionary *)json; 60 | 61 | @end 62 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskProviderSDK.framework/Headers/ZDKHelpCenterCategoryViewModel.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKHelpCenterCategoryViewModel.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 11/05/2016. 7 | * 8 | * Copyright © 2016 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Master 11 | * Subscription Agreement https://www.zendesk.com/company/customers-partners/#master-subscription-agreement and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/customers-partners/#application-developer-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | #import 18 | #import "ZDKHelpCenterViewModel.h" 19 | 20 | @class ZDKHelpCenterSectionViewModel; 21 | 22 | @interface ZDKHelpCenterCategoryViewModel : NSObject 23 | 24 | /** 25 | * Category id. 26 | * 27 | * @since 1.7.0.1 28 | */ 29 | @property (nonatomic, copy) NSString *categoryId; 30 | 31 | /** 32 | * Category Name. 33 | * 34 | * @since 1.7.0.1 35 | */ 36 | @property (nonatomic, copy) NSString *name; 37 | 38 | /** 39 | * An array of sections that are contained within the category. 40 | * 41 | */ 42 | @property (nonatomic, copy) NSArray *sections; 43 | 44 | /** 45 | * Parses returned json to categories 46 | * 47 | * @param json The Json passed into it 48 | * 49 | * @return An array of help center categories 50 | */ 51 | + (NSArray *)parseCategories:(NSDictionary *)json; 52 | 53 | /** 54 | * Parses Json in a single category 55 | * 56 | * @param json The Json passed in 57 | * 58 | * @return a single category 59 | * 60 | */ 61 | + (ZDKHelpCenterCategoryViewModel *)parseCategory:(NSDictionary *)json; 62 | 63 | - (void)updateWithSection:(ZDKHelpCenterSectionViewModel*)section; 64 | 65 | @end 66 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskProviderSDK.framework/Headers/ZDKHelpCenterFlatArticle.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKHelpCenterFlatArticle.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 17/07/2015. 7 | * 8 | * Copyright (c) 2015 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Master 11 | * Subscription Agreement https://www.zendesk.com/company/customers-partners/#master-subscription-agreement and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/customers-partners/#application-developer-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | #import 18 | #import "ZDKHelpCenterArticle.h" 19 | #import "ZDKHelpCenterCategory.h" 20 | #import "ZDKHelpCenterSection.h" 21 | 22 | /** 23 | * A Help Center FlatArticle. 24 | * 25 | * @since 1.4.0.1 26 | */ 27 | @interface ZDKHelpCenterFlatArticle : NSObject 28 | 29 | /** 30 | * An Article object. 31 | * 32 | * @since 1.4.0.1 33 | */ 34 | @property (nonatomic, strong) ZDKHelpCenterArticle *article; 35 | 36 | /** 37 | * A Section object. 38 | * 39 | * @since 1.4.0.1 40 | */ 41 | @property (nonatomic, strong) ZDKHelpCenterSection *section; 42 | 43 | /** 44 | * A Category object. 45 | * 46 | * @since 1.4.0.1 47 | */ 48 | @property (nonatomic, strong) ZDKHelpCenterCategory *category; 49 | 50 | /** 51 | * Get a string of an article's breadcrumb(i.e. it's relevant section and category). 52 | * 53 | * @since 1.4.0.1 54 | * 55 | * @return A string with the article's name, followed by it's section name and category name. 56 | */ 57 | - (NSString *) getArticleBreadcrumb; 58 | 59 | 60 | @end 61 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskProviderSDK.framework/Headers/ZDKHelpCenterLastSearch.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKHelpCenterLastSearch.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 15/05/2015. 7 | * 8 | * Copyright (c) 2015 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Master 11 | * Subscription Agreement https://www.zendesk.com/company/customers-partners/#master-subscription-agreement and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/customers-partners/#application-developer-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | #import 18 | 19 | /** 20 | * A model for recording the last search in Help Center. 21 | * 22 | * @since 1.3.0.1 23 | */ 24 | @interface ZDKHelpCenterLastSearch : NSObject 25 | 26 | 27 | /** 28 | * The last search query performed. 29 | * 30 | * @since 1.3.0.1 31 | */ 32 | @property (nonatomic, copy, readonly) NSString *query; 33 | 34 | 35 | /** 36 | * The result count for the last search query. 37 | * 38 | * @since 1.3.0.1 39 | */ 40 | @property (nonatomic, strong, readonly) NSNumber *results_count; 41 | 42 | 43 | /** 44 | * Create a new last search model. 45 | * 46 | * @since 1.3.0.1 47 | * 48 | * @param query The search query. 49 | * @param count The results count. 50 | * 51 | * @return A new instance. 52 | */ 53 | - (instancetype)initWithQuery:(NSString*)query resultsCount:(NSNumber*)count; 54 | 55 | 56 | /** 57 | * Get the json representation for this object. 58 | * 59 | * @since 1.3.0.1 60 | * 61 | * @return A dictionary with the property names as keys and property values as values. 62 | */ 63 | - (NSDictionary *) toJson; 64 | 65 | @end 66 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskProviderSDK.framework/Headers/ZDKHelpCenterSessionCache.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKHelpCenterSessionCache.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 15/07/2015. 7 | * 8 | * Copyright (c) 2015 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Master 11 | * Subscription Agreement https://www.zendesk.com/company/customers-partners/#master-subscription-agreement and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/customers-partners/#application-developer-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | #import 18 | 19 | @class ZDKHelpCenterLastSearch; 20 | 21 | @interface ZDKHelpCenterSessionCache : NSObject 22 | 23 | 24 | /** 25 | * Cache a search. This has the side effect of setting a unique search result click BOOL to yes. 26 | * 27 | * @since 1.3.2.1 28 | * 29 | * @param lastSearch The search to be cached. 30 | */ 31 | + (void) cacheLastSearch:(ZDKHelpCenterLastSearch*)lastSearch; 32 | 33 | 34 | /** 35 | * Un-sets the unique search result click flag 36 | * 37 | * @since 1.3.2.1 38 | */ 39 | + (void) unsetUniqueSearchResultClick; 40 | 41 | 42 | /** 43 | * Get the last search 44 | * 45 | * @return The last search, can be nil. 46 | * 47 | * @since 1.3.3.1 48 | */ 49 | + (ZDKHelpCenterLastSearch *)getLastSearch; 50 | 51 | 52 | /** 53 | * Used when submitting an article view with the Help Center provider. 54 | * 55 | * @return A dictionary containing the last search model and a unique search result click. nil if no search has been preformed. 56 | * 57 | * @since 1.3.2.1 58 | */ 59 | + (NSDictionary *)recordArticleViewRequestJson; 60 | 61 | @end 62 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskProviderSDK.framework/Headers/ZDKHelpCenterSettings.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKHelpCenterSettings.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 16/10/2014. 7 | * 8 | * Copyright (c) 2014 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Master 11 | * Subscription Agreement https://www.zendesk.com/company/customers-partners/#master-subscription-agreement and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/customers-partners/#application-developer-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | #import 18 | #import "ZDKCoding.h" 19 | 20 | @interface ZDKHelpCenterSettings : ZDKCoding 21 | 22 | 23 | /** 24 | * enabled defines if the conversations component is enabled or not 25 | */ 26 | @property (nonatomic, assign, readonly) BOOL enabled; 27 | 28 | /** 29 | * String definition of the locale to be used by the help center component 30 | */ 31 | @property (nonatomic, copy, readonly) NSString *locale; 32 | 33 | 34 | /** 35 | * initWithDictionary, passing the NSDictionary of Conversations settings received from the server 36 | */ 37 | - (id) initWithDictionary:(NSDictionary *)dictionary ; 38 | 39 | @end 40 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskProviderSDK.framework/Headers/ZDKHelpCenterSimpleArticle.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKHelpCenterSimpleArticle.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 3/31/15. 7 | * 8 | * Copyright (c) 2015 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Master 11 | * Subscription Agreement https://www.zendesk.com/company/customers-partners/#master-subscription-agreement and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/customers-partners/#application-developer-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | #import 18 | 19 | /** 20 | * This is a model object for a simple article returned by the suggested article provider 21 | * @see ZDKHelpCenterProvider.h 22 | * @since 1.2.0.1 23 | */ 24 | @interface ZDKHelpCenterSimpleArticle : NSObject 25 | 26 | /** 27 | * The article ID. 28 | * @since 1.2.0.1 29 | */ 30 | @property (nonatomic, copy) NSString *id; 31 | 32 | /** 33 | * The article title. 34 | * @since 1.2.0.1 35 | */ 36 | @property (nonatomic, copy) NSString *title; 37 | 38 | /** 39 | * Parse a collection of simple articles returned by the suggested articles provider. 40 | * @since 1.2.0.1 41 | */ 42 | + (NSArray *) parseDeflectionSearchResults:(NSDictionary *)json; 43 | 44 | 45 | /** 46 | * Parse a single simple article object. 47 | * @since 1.2.0.1 48 | */ 49 | + (ZDKHelpCenterSimpleArticle *) parseSimpleArticle:(NSDictionary *)simpleArticleJSON; 50 | 51 | 52 | 53 | @end 54 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskProviderSDK.framework/Headers/ZDKHelpCenterViewModel.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKHelpCenterViewModel.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 27/05/2016. 7 | * 8 | * Copyright © 2016 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Master 11 | * Subscription Agreement https://www.zendesk.com/company/customers-partners/#master-subscription-agreement and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/customers-partners/#application-developer-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | #import 18 | 19 | @protocol ZDKHelpCenterViewModel 20 | 21 | @required 22 | 23 | @property (copy, readonly) NSString *title; 24 | 25 | @optional 26 | 27 | @property (copy, readonly) NSString *detailTitle; 28 | 29 | @end 30 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskProviderSDK.framework/Headers/ZDKIdentity.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKIdentity.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 19/11/2014. 7 | * 8 | * Copyright (c) 2014 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Master 11 | * Subscription Agreement https://www.zendesk.com/company/customers-partners/#master-subscription-agreement and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/customers-partners/#application-developer-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | #import 18 | 19 | @protocol ZDKIdentity 20 | 21 | - (NSDictionary *) toJson; 22 | 23 | @end 24 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskProviderSDK.framework/Headers/ZDKIdentityStorage.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKIdentityStorage.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 25/11/2014. 7 | * 8 | * Copyright (c) 2014 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Master 11 | * Subscription Agreement https://www.zendesk.com/company/customers-partners/#master-subscription-agreement and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/customers-partners/#application-developer-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | #import 18 | #import "ZDKIdentity.h" 19 | 20 | 21 | @interface ZDKIdentityStorage : NSObject 22 | 23 | 24 | /** 25 | * Get UUID from local storage or generate if required 26 | * 27 | * @return NSString of UUID that has been generated 28 | */ 29 | - (NSString *)getUUID; 30 | 31 | /** 32 | * Store object that implements ZDKIdentity protocol in local storage 33 | * 34 | * @param identity NSObject that implements ZDKIdentity protocol 35 | */ 36 | - (void) storeIdentity:(id ) identity; 37 | 38 | 39 | /** 40 | * Fetch stored Identity from local storage 41 | * 42 | * @return instance that implements ZDKIdentity protocol 43 | */ 44 | - (id ) storedIdentity; 45 | 46 | 47 | /** 48 | * Fetch stored OAuth token from local storage 49 | * 50 | * @return NSString OAuth token 51 | */ 52 | - (NSString *) storedOAuthToken; 53 | 54 | 55 | /** 56 | * Stores an OAuth token to be stored 57 | * 58 | * @param oAuthToken NSString of the OAuth to be stored 59 | */ 60 | - (void) storeOAuthToken:(NSString *)oAuthToken; 61 | 62 | /** 63 | * Deletes ALL storage 64 | */ 65 | - (void) deleteStoredData; 66 | 67 | @end 68 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskProviderSDK.framework/Headers/ZDKJwtIdentity.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKJwtIdentity.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 19/11/2014. 7 | * 8 | * Copyright (c) 2014 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Master 11 | * Subscription Agreement https://www.zendesk.com/company/customers-partners/#master-subscription-agreement and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/customers-partners/#application-developer-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | #import 18 | #import "ZDKIdentity.h" 19 | #import "ZDKCoding.h" 20 | 21 | @interface ZDKJwtIdentity : ZDKCoding 22 | 23 | /** 24 | * Init method to set the jwtUserIdentifier for the SDK 25 | * 26 | * @param jwtUserIdentifier NSString which specifies the identifier to be used as part of JWT Authentication 27 | * 28 | * @return instance of ZDKJwtIdentity 29 | */ 30 | - (instancetype) initWithJwtUserIdentifier:(NSString *)jwtUserIdentifier; 31 | 32 | 33 | - (BOOL) hasIdentifer; 34 | 35 | @end 36 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskProviderSDK.framework/Headers/ZDKLocalization.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKLocalization.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 06/04/2016. 7 | * 8 | * Copyright (c) 2016 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Master 11 | * Subscription Agreement https://www.zendesk.com/company/customers-partners/#master-subscription-agreement and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/customers-partners/#application-developer-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | #import 18 | 19 | NS_ASSUME_NONNULL_BEGIN 20 | 21 | @interface ZDKLocalization : NSObject 22 | 23 | /** 24 | * Prints out every key in the SDK bundle. Use this if you want a complete 25 | * list of all the keys used in the SDK. 26 | */ 27 | + (void)printAllKeys; 28 | 29 | /** 30 | * Use this method to register a non standard localized string table name. 31 | * The standard name is "Localizabel.strings". 32 | * 33 | * If, for example, you have a strings file called "MyStrings.strings", you 34 | * should register "MyStrings" with this method. 35 | * 36 | * @param tableName The name of a strings file. 37 | */ 38 | + (void)registerTableName:(NSString*)tableName; 39 | 40 | /** 41 | * Returns a localized value for the key provided. If a value is not found 42 | * this method will return the key which was provided. An empty string key will 43 | * always result in an empty string for a value. 44 | * 45 | * @param key A key which represents a localized value. 46 | * 47 | * @return A localized string for the key provided. 48 | */ 49 | + (NSString*)localizedStringWithKey:(NSString*)key; 50 | 51 | @end 52 | 53 | NS_ASSUME_NONNULL_END 54 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskProviderSDK.framework/Headers/ZDKMobileProvisionAnalyzer.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKMobileProvisionAnalyzer.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 7/22/15. 7 | * 8 | * Copyright (c) 2015 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Master 11 | * Subscription Agreement https://www.zendesk.com/company/customers-partners/#master-subscription-agreement and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/customers-partners/#application-developer-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | #import 18 | 19 | 20 | 21 | @interface ZDKMobileProvisionAnalyzer : NSObject 22 | 23 | + (NSString*) getEnvironment; 24 | 25 | @end 26 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskProviderSDK.framework/Headers/ZDKNSCodingUtil.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKNSCodingUtil.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 25/11/2014. 7 | * 8 | * Copyright (c) 2014 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Master 11 | * Subscription Agreement https://www.zendesk.com/company/customers-partners/#master-subscription-agreement and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/customers-partners/#application-developer-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | #import 18 | 19 | @interface ZDKNSCodingUtil : NSObject 20 | 21 | + (void)encodeWithCoder:(NSCoder *)aCoder forInstance:(NSObject *)instance ; 22 | 23 | + (void)decodeWithCoder:(NSCoder *)aDecoder forInstance:(NSObject *)instance ; 24 | 25 | 26 | @end 27 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskProviderSDK.framework/Headers/ZDKProvider.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKProvider.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 01/01/2016. 7 | * 8 | * Copyright (c) 2016 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Master 11 | * Subscription Agreement https://www.zendesk.com/company/customers-partners/#master-subscription-agreement and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/customers-partners/#application-developer-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | #import 18 | 19 | @class ZDKAuthenticationSpace; 20 | 21 | /** 22 | * ZDKProvider class 23 | * 24 | * @since 1.6.0.1 25 | */ 26 | @interface ZDKProvider : NSObject 27 | 28 | /** 29 | * Authentication space to use 30 | * 31 | * @since 1.6.0.1 32 | */ 33 | @property (nonatomic, strong, readonly) ZDKAuthenticationSpace *authenticationSpace; 34 | 35 | /** 36 | * Creates a provider with an authentication space 37 | * 38 | * @since 1.6.0.1 39 | * 40 | * @param authenticationSpace authentication space to use with requests 41 | */ 42 | - (instancetype)initWithAuthenticationSpace:(ZDKAuthenticationSpace*)authenticationSpace; 43 | 44 | 45 | @end 46 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskProviderSDK.framework/Headers/ZDKPushRegistrationRequest.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKPushRegistrationRequest.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 04/03/2015. 7 | * 8 | * Copyright (c) 2015 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Master 11 | * Subscription Agreement https://www.zendesk.com/company/customers-partners/#master-subscription-agreement and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/customers-partners/#application-developer-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | #import 18 | 19 | /** 20 | * Models the api request which is formed when registering a device for push notifications. 21 | * 22 | * @since 1.2.0.1 23 | */ 24 | @interface ZDKPushRegistrationRequest : NSObject 25 | 26 | 27 | /** 28 | * The device identifier. 29 | * 30 | * @since 1.2.0.1 31 | */ 32 | @property (nonatomic, copy) NSString *identifier; 33 | 34 | 35 | /** 36 | * The locale of the device in the format of ll-cc. en-us, en-ca. 37 | * 38 | * @since 1.2.0.1 39 | */ 40 | @property (nonatomic, copy) NSString *locale; 41 | 42 | 43 | /** 44 | * The device type, e.g. iPhone. 45 | * 46 | * @since 1.2.0.1 47 | */ 48 | @property (nonatomic, copy, readonly) NSString *device_type; 49 | 50 | /** 51 | * Token type, only used to identify Urban Airship channels, nil otherwise. 52 | * 53 | * @since 1.4.0.1 54 | */ 55 | @property (nonatomic, copy) NSString *token_type; 56 | 57 | 58 | /** 59 | * Returns a dictionary representation of the object. 60 | * 61 | * @return a dictionary with property values keyed by property names. 62 | * 63 | * @since 1.2.0.1 64 | */ 65 | - (NSMutableDictionary *) toJson; 66 | 67 | 68 | @end 69 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskProviderSDK.framework/Headers/ZDKPushRegistrationResponse.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKPushRegistrationResponse.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 04/03/2015. 7 | * 8 | * Copyright (c) 2015 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Master 11 | * Subscription Agreement https://www.zendesk.com/company/customers-partners/#master-subscription-agreement and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/customers-partners/#application-developer-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | #import 18 | 19 | /** 20 | * This is a class model for a response for registering a device for push notifications. 21 | * 22 | * @since 1.2.0.1 23 | */ 24 | @interface ZDKPushRegistrationResponse : NSObject 25 | 26 | 27 | /** 28 | * The device specific id 29 | * 30 | * @since 1.2.0.1 31 | */ 32 | @property (nonatomic, copy) NSString *identifier; 33 | 34 | 35 | /** 36 | * Initialize an object with a dictionary. 37 | * 38 | * @since 1.2.0.1 39 | * 40 | * @param dictionary a dictionary with values for the properties on this class. 41 | * 42 | * @return an initialized object. 43 | */ 44 | - (instancetype)initWithDictionary:(NSDictionary *)dictionary; 45 | 46 | 47 | @end 48 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskProviderSDK.framework/Headers/ZDKRequestUpdates.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKRequestUpdates.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 19/05/2017. 7 | * 8 | * Copyright (c) 2017 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Master 11 | * Subscription Agreement https://www.zendesk.com/company/customers-partners/#master-subscription-agreement and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/customers-partners/#application-developer-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | 18 | #import 19 | 20 | 21 | /** 22 | Returned by ZDKRequsetProvider method getUnreadCount. 23 | */ 24 | @interface ZDKRequestUpdates : NSObject 25 | 26 | 27 | /** 28 | * This will be true if there are any unread comments on for the current 29 | * identity, false otherwises. 30 | * 31 | * @since 1.10.0.1 32 | */ 33 | @property (nonatomic, readonly) BOOL hasUpdates; 34 | 35 | /** 36 | * Returns an aggregate of unread comment counts. 37 | * 38 | * @since 1.10.0.1 39 | */ 40 | @property (nonatomic, readonly) NSNumber *updateCount; 41 | 42 | 43 | /** 44 | * A map of request id to unread count. This will be empty if 45 | * hasUnread is false, or totalUnreadCount is 0 46 | * 47 | * @since 1.10.0.1 48 | */ 49 | @property (nonatomic, copy, readonly) NSMutableDictionary *requestsWithUpdates; 50 | 51 | + (instancetype)new NS_UNAVAILABLE; 52 | - (instancetype)init NS_UNAVAILABLE; 53 | 54 | @end 55 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskProviderSDK.framework/Headers/ZDKRequestUpdatesProtocol.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKRequestUpdatesProtocol.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 19/05/2017. 7 | * 8 | * Copyright (c) 2017 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Master 11 | * Subscription Agreement https://www.zendesk.com/company/customers-partners/#master-subscription-agreement and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/customers-partners/#application-developer-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | 18 | #import 19 | 20 | @protocol ZDKRequestUpdatesProtocol 21 | 22 | - (void) markRequestAsRead:(NSString*)requestId; 23 | 24 | @end 25 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskProviderSDK.framework/Headers/ZDKRequestsResponse.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKRequestsResponse.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 10/11/2014. 7 | * 8 | * Copyright (c) 2014 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Master 11 | * Subscription Agreement https://www.zendesk.com/company/customers-partners/#master-subscription-agreement and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/customers-partners/#application-developer-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | #import 18 | 19 | @interface ZDKRequestsResponse : NSObject 20 | 21 | + (NSArray *) parseRequestListWithDictionary:(NSDictionary*)dictionary; 22 | 23 | @end 24 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskProviderSDK.framework/Headers/ZDKSdkStorage.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKSdkStorage.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 25/11/2014. 7 | * 8 | * Copyright (c) 2014 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Master 11 | * Subscription Agreement https://www.zendesk.com/company/customers-partners/#master-subscription-agreement and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/customers-partners/#application-developer-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | #import 18 | 19 | @class ZDKRequestStorage, ZDKIdentityStorage, ZDKSettingsStorage, ZDKTicketForm; 20 | 21 | @interface ZDKSdkStorage : NSObject 22 | 23 | @property (nonatomic, strong, readonly) ZDKRequestStorage *requestStorage; 24 | @property (nonatomic, strong, readonly) ZDKIdentityStorage *identityStorage; 25 | 26 | 27 | /** 28 | * Clears user data from storage. 29 | * 30 | * This will only clear data that is associated with a user. 31 | * ZDKSettingsStorage are an example of something that won't be cleared but ZDKRequestStorage will 32 | * be cleared because that is from a user. 33 | * 34 | */ 35 | - (void) clearUserData; 36 | 37 | /** 38 | * Singleton return instance of object 39 | * 40 | * @return instance of ZDKSdkStorage 41 | */ 42 | + (instancetype) instance; 43 | 44 | @end 45 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskProviderSDK.framework/Headers/ZDKSettings.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKSettings.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 19/01/2015. 7 | * 8 | * Copyright (c) 2015 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Master 11 | * Subscription Agreement https://www.zendesk.com/company/customers-partners/#master-subscription-agreement and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/customers-partners/#application-developer-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | #import 18 | #import "ZDKCoding.h" 19 | 20 | @class ZDKAppSettings, ZDKAccountSettings; 21 | 22 | @interface ZDKSettings : ZDKCoding 23 | 24 | /** 25 | * Gets the app settings. 26 | */ 27 | @property (nonatomic, strong, readonly) ZDKAppSettings *appSettings; 28 | 29 | /** 30 | * Gets the Zendesk account settings. 31 | */ 32 | @property (nonatomic, strong, readonly) ZDKAccountSettings *accountSettings; 33 | 34 | 35 | /** 36 | * Initializes a new instance of ZDKSettings with the contents of the dictionary provided. 37 | * 38 | * @param dictionary A dictionary of the SDK settings. 39 | * 40 | * @return An initialized ZDKSettings object. 41 | */ 42 | - (id) initWithDictionary: (NSDictionary *) dictionary; 43 | 44 | 45 | @end 46 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskProviderSDK.framework/Headers/ZDKSettingsProvider.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKSettingsProvider.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 10/11/2014. 7 | * 8 | * Copyright (c) 2014 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Master 11 | * Subscription Agreement https://www.zendesk.com/company/customers-partners/#master-subscription-agreement and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/customers-partners/#application-developer-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | #import 18 | #import "ZDKProvider.h" 19 | 20 | @class ZDKAppSettings, ZDKSettings; 21 | 22 | /** 23 | * Block used to pass response from API call 24 | * 25 | * @param settings ZDKAppSettings returned based on applicationId set in ZDKConfig.init, can be nil on error 26 | * @param error NSError passed when an error has occurred, can be nil on success 27 | */ 28 | typedef void (^ZDKSettingsCallback)(ZDKSettings *settings, NSError *error); 29 | 30 | @interface ZDKSettingsProvider : ZDKProvider 31 | 32 | /** 33 | * Get SDK Settings from Zendesk instance 34 | * 35 | * @param callback block callback invoked on success and error states 36 | */ 37 | - (void) getSdkSettingsWithCallback:(ZDKSettingsCallback) callback; 38 | 39 | /** 40 | * Get SDK Settings from Zendesk instance using the specified locale. 41 | * 42 | * @param locale IETF language code. Config returned from server will contain this string if the local is supported, will 43 | * be the default locale otherwise 44 | * @param callback block callback invoked on success and error states 45 | */ 46 | - (void) getSdkSettingsWithLocale:(NSString *)locale andCallback:(ZDKSettingsCallback) callback; 47 | 48 | @end 49 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskProviderSDK.framework/Headers/ZDKStringUtil.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZSKStringUtil.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 09/11/2014. 7 | * 8 | * Copyright (c) 2014 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Master 11 | * Subscription Agreement https://www.zendesk.com/company/customers-partners/#master-subscription-agreement and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/customers-partners/#application-developer-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | #import 18 | 19 | @interface ZDKStringUtil : NSObject 20 | 21 | /** 22 | * This method converts an array of strings into a comma separated string of the array's items. For example an array with 23 | * three items, "one", "two" and "three" will be converted into the string "one,two,three". 24 | * 25 | * @param array An array of Strings to convert into a comma-separated string 26 | * @return A comma separated string of the items in the array or an empty string if there were none. 27 | */ 28 | + (NSString*) csvStringFromArray:(NSArray*)array; 29 | 30 | @end 31 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskProviderSDK.framework/Headers/ZDKTicketFieldOption.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKTicketFieldOption.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 22/07/2016. 7 | * 8 | * Copyright (c) 2016 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Master 11 | * Subscription Agreement https://www.zendesk.com/company/customers-partners/#master-subscription-agreement and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/customers-partners/#application-developer-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | #import 18 | 19 | 20 | /** 21 | * Ticket Field Option (for ZDKTicketFieldTypeTagger ticket field types) 22 | * @since 1.9.0.1 23 | */ 24 | @interface ZDKTicketFieldOption : NSObject 25 | 26 | /** 27 | * Ticket Field Option ID 28 | * @since 1.9.0.1 29 | */ 30 | @property (nonatomic, copy) NSNumber *fieldOptionId; 31 | 32 | /** 33 | * Option Name 34 | * @since 1.9.0.1 35 | */ 36 | @property (nonatomic, copy) NSString *name; 37 | 38 | /** 39 | * Option Value, passed to zendesk server 40 | * @since 1.9.0.1 41 | */ 42 | @property (nonatomic, copy) NSString *value; 43 | 44 | /** 45 | * If isDefaultValue is true, then this option is the default selected one 46 | * @since 1.9.0.1 47 | */ 48 | @property (nonatomic, assign) BOOL isDefaultValue; 49 | 50 | /** 51 | * Initialize a ticket field with a dictionary 52 | * 53 | * @param dictionary The dictionary 54 | * 55 | * @return a ticket field option 56 | * 57 | * @since 1.9.0.1 58 | */ 59 | - (instancetype)initWithDictionary:(NSDictionary*)dictionary; 60 | 61 | @end 62 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskProviderSDK.framework/Headers/ZDKTicketFieldSystemOption.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKTicketFieldSystemOption.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 27/03/2017. 7 | * 8 | * Copyright (c) 2016 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Master 11 | * Subscription Agreement https://www.zendesk.com/company/customers-partners/#master-subscription-agreement and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/customers-partners/#application-developer-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | #import 18 | 19 | 20 | /** 21 | * Ticket Field System Option (for `ZDKTicketFieldTypeStatus`, `ZDKTicketFieldTypePriority` and `ZDKTicketFieldTypeTicketType` ticket field types) 22 | * @since 1.10.0.1 23 | */ 24 | @interface ZDKTicketFieldSystemOption : NSObject 25 | 26 | /** 27 | * System Option Name 28 | * @since 1.10.0.1 29 | */ 30 | @property (nonatomic, copy) NSString *name; 31 | 32 | /** 33 | * System Option Value, passed to zendesk server 34 | * @since 1.10.0.1 35 | */ 36 | @property (nonatomic, copy) NSString *value; 37 | 38 | /** 39 | * Initialize a system ticket field option with a dictionary 40 | * 41 | * @param dictionary The dictionary 42 | * 43 | * @return a ticket field option 44 | * 45 | * @since 1.10.0.1 46 | */ 47 | - (instancetype)initWithDictionary:(NSDictionary*)dictionary; 48 | 49 | @end 50 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskProviderSDK.framework/Headers/ZDKTicketForm.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKTicketForm.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 25/07/2016. 7 | * 8 | * Copyright (c) 2016 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Master 11 | * Subscription Agreement https://www.zendesk.com/company/customers-partners/#master-subscription-agreement and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/customers-partners/#application-developer-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | #import 18 | #import "ZDKDictionaryCreatable.h" 19 | 20 | 21 | @class ZDKTicketField; 22 | 23 | /** 24 | * Ticket form class 25 | * @since 1.9.0.1 26 | */ 27 | @interface ZDKTicketForm : NSObject 28 | 29 | /** 30 | * Ticket form id 31 | * @since 1.9.0.1 32 | */ 33 | @property (nonatomic, copy) NSNumber *formId; 34 | 35 | /** 36 | * Ticket form name for agents 37 | * @since 1.9.0.1 38 | */ 39 | @property (nonatomic, copy) NSString *name; 40 | 41 | /** 42 | * Ticket form name for end users 43 | * @since 1.9.1.1 44 | */ 45 | @property (nonatomic, copy) NSString *displayName; 46 | 47 | /** 48 | * List of ticket field ids 49 | * @since 1.9.0.1 50 | */ 51 | @property (nonatomic, copy) NSArray *ticketFieldsIds; 52 | 53 | /** 54 | * List of ticket field objects 55 | * @since 1.9.0.1 56 | */ 57 | @property (nonatomic, copy) NSArray *ticketFields; 58 | 59 | /** 60 | * Initialize a ticket form 61 | * @since 1.9.0.1 62 | */ 63 | - (instancetype)initWithDictionary:(NSDictionary*)dictionary; 64 | 65 | @end 66 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskProviderSDK.framework/Headers/ZDKTicketFormsSettings.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKTicketFormsSettings.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 21/09/2016. 7 | * 8 | * Copyright (c) 2014 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Terms 11 | * of Service https://www.zendesk.com/company/terms and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/application-developer-and-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | #import 18 | #import "ZDKCoding.h" 19 | 20 | 21 | /** 22 | * Models the Conversations settings in the admin config panel. 23 | * 24 | * @since 1.9.0.1 25 | */ 26 | @interface ZDKTicketFormsSettings : ZDKCoding 27 | 28 | 29 | /** 30 | * enabled defines if the conversations component is enabled or not. 31 | * 32 | * @since 1.9.0.1 33 | */ 34 | @property (nonatomic, assign, readonly) BOOL enabled; 35 | 36 | 37 | /** 38 | * initWithDictionary, passing the NSDictionary of Conversations settings received from the server. 39 | * 40 | * @since 1.9.0.1 41 | */ 42 | - (id) initWithDictionary:(NSDictionary *)dictionary; 43 | 44 | @end 45 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskProviderSDK.framework/Headers/ZDKUploadResponse.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKUploadResponse.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 1/21/15. 7 | * 8 | * Copyright (c) 2015 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Master 11 | * Subscription Agreement https://www.zendesk.com/company/customers-partners/#master-subscription-agreement and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/customers-partners/#application-developer-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | #import 18 | #import "ZDKAttachment.h" 19 | 20 | /** 21 | * Model for an upload response. 22 | * 23 | * @since 1.1.0.1 24 | */ 25 | @interface ZDKUploadResponse : NSObject 26 | 27 | 28 | /** 29 | * A token for the upload. This is used to associate the upload with a request. 30 | * 31 | * @since 1.1.0.1 32 | */ 33 | @property (nonatomic, copy) NSString *uploadToken; 34 | 35 | 36 | /** 37 | * The attachment model for the upload. 38 | * 39 | * @since 1.1.0.1 40 | */ 41 | @property (nonatomic, strong) ZDKAttachment *attachment; 42 | 43 | 44 | /** 45 | * Initialise with a dictionary representation of an upload response. 46 | * 47 | * @since 1.1.0.1 48 | * 49 | * @param dict a dictionary containing values from which a new instance is created. 50 | * 51 | * @return A new instance of ZDKUploadRequest. 52 | */ 53 | - (instancetype) initWithDict:(NSDictionary*)dict; 54 | 55 | @end 56 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskProviderSDK.framework/Headers/ZDKUser.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKUser.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 13/06/2014. 7 | * 8 | * Copyright (c) 2014 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Master 11 | * Subscription Agreement https://www.zendesk.com/company/customers-partners/#master-subscription-agreement and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/customers-partners/#application-developer-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | 18 | #import 19 | 20 | 21 | /** 22 | * A user in Zendesk. 23 | */ 24 | @interface ZDKUser : NSObject 25 | 26 | /** 27 | * The users id in Zendesk. 28 | */ 29 | @property (nonatomic, strong) NSNumber *userId; 30 | 31 | /** 32 | * The users name. 33 | */ 34 | @property (nonatomic, copy) NSString *name; 35 | 36 | /** 37 | * URL of the users avatar. 38 | */ 39 | @property (nonatomic, copy) NSString *avatarURL; 40 | 41 | /** 42 | * YES if the user is an agent. 43 | */ 44 | @property (nonatomic, assign) BOOL isAgent; 45 | 46 | /** 47 | * Tags associated with the user. 48 | * 49 | * @since 1.4.0.1 50 | */ 51 | @property (nonatomic, copy) NSArray *tags; 52 | 53 | /** 54 | * User fields for this user as a dictionary with the key being the name of the user field 55 | * and the corresponding value being the value of the user field set for this user. 56 | * 57 | * @since 1.4.0.1 58 | */ 59 | @property (nonatomic, copy) NSDictionary *userFields; 60 | 61 | 62 | /** 63 | * Initialize with dictionary generated from API json. 64 | * 65 | * @param dictionary the user details 66 | */ 67 | - (instancetype) initWithDictionary:(NSDictionary*)dictionary; 68 | 69 | 70 | @end 71 | 72 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskProviderSDK.framework/Headers/ZDKUserField.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKUserField.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 17/08/2015. 7 | * 8 | * Copyright (c) 2015 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Master 11 | * Subscription Agreement https://www.zendesk.com/company/customers-partners/#master-subscription-agreement and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/customers-partners/#application-developer-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | #import 18 | 19 | @interface ZDKUserField : NSObject 20 | 21 | /** 22 | * User Field ID in zendesk instance. 23 | */ 24 | @property (nonatomic, strong) NSNumber *userFieldId; 25 | 26 | /** 27 | * Title of User Field. 28 | */ 29 | @property (nonatomic, copy) NSString *title; 30 | 31 | /** 32 | * The type of the user field e.g. "checkbox", "text" or "date". 33 | */ 34 | @property (nonatomic, copy) NSString *typeOfField; 35 | 36 | /** 37 | * Description of the user field's purpose. 38 | */ 39 | @property (nonatomic, copy) NSString *fieldDescription; 40 | 41 | /** 42 | * Options for the custom userfield. An array of ZDKCustomField objects(only for "dropdown" type userfields). 43 | */ 44 | @property (nonatomic, copy) NSArray *customFieldOptions; 45 | 46 | /** 47 | * Initialise with dictionary generated from API json. 48 | * 49 | * @param dictionary the user details 50 | */ 51 | - (instancetype)initWithDictionary:(NSDictionary *)dictionary; 52 | 53 | /** 54 | * Parses a json array of user fields into an array of ZDKUserField objects. 55 | * 56 | * @see Developer docs on user fields for more information: https://developer.zendesk.com/rest_api/docs/core/user_fields 57 | * 58 | * @param array The array of API json. 59 | * 60 | * @return An array of ZDKUserField objects. 61 | */ 62 | + (NSArray*) parseUserFields:(NSArray*)array; 63 | 64 | @end 65 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskProviderSDK.framework/Info.plist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zendesk/sdk_unity_plugin/12e6afef14c29dddef5de08035a5a0b27c0803d9/ios-plugin/src/ZendeskProviderSDK.framework/Info.plist -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskProviderSDK.framework/Modules/module.modulemap: -------------------------------------------------------------------------------- 1 | framework module ZendeskProviderSDK { 2 | umbrella header "ZendeskProviderSDK.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskProviderSDK.framework/PrivateHeaders/ZDKErrorParser.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKErrorParser.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 14/12/2015 7 | * 8 | * Copyright (c) 2015 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Master 11 | * Subscription Agreement https://www.zendesk.com/company/customers-partners/#master-subscription-agreement and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/customers-partners/#application-developer-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | #import 18 | 19 | 20 | /** 21 | * Parses the response from a request executor 22 | */ 23 | @interface ZDKErrorParser : NSObject 24 | 25 | /** 26 | * Validates the response from an executor and returns an error if appropriate 27 | * 28 | * @param response the URL response from the executor 29 | * @param error the original error 30 | * 31 | * @return error if the response and error pair represent a request error 32 | */ 33 | + (NSError *__nullable)errorWithURLResponse:(NSURLResponse *__nonnull)response 34 | originalError:(NSError *__nullable)error; 35 | 36 | @end 37 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskProviderSDK.framework/PrivateHeaders/ZDKLoginRequest.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKLoginRequest.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 14/12/2015 7 | * 8 | * Copyright (c) 2015 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Master 11 | * Subscription Agreement https://www.zendesk.com/company/customers-partners/#master-subscription-agreement and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/customers-partners/#application-developer-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | #import 18 | #import "ZendeskSDKConstants.h" 19 | 20 | 21 | @protocol ZDKIdentity; 22 | @class ZDKRequestExecutor, ZDKAccount, ZDKAuthenticationSpace; 23 | 24 | /** 25 | class that performs the login request and manages the storage of the auth token 26 | */ 27 | NS_ASSUME_NONNULL_BEGIN 28 | @interface ZDKLoginRequest : NSObject 29 | 30 | /** 31 | * create a new login request 32 | * 33 | * @param requestExecutor executor to use for the request 34 | * @param authenticationSpace authentication space to use with requests 35 | * 36 | */ 37 | - (instancetype)initWithRequestExecutor:(ZDKRequestExecutor*)requestExecutor 38 | authenticationSpace:(ZDKAuthenticationSpace*)authenticationSpace NS_DESIGNATED_INITIALIZER; 39 | 40 | /** 41 | * perform the login request 42 | * 43 | * @param completionHandler handler to call when request ends 44 | */ 45 | - (void)loginWithcompletionHandler:(void (^)(NSError *))completionHandler; 46 | 47 | - (instancetype)init NS_UNAVAILABLE; 48 | 49 | @end 50 | NS_ASSUME_NONNULL_END 51 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskProviderSDK.framework/PrivateHeaders/ZDKLoginRequestPartsFactory.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKLoginRequestPartsFactory.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 14/12/2015 7 | * 8 | * Copyright (c) 2015 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Master 11 | * Subscription Agreement https://www.zendesk.com/company/customers-partners/#master-subscription-agreement and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/customers-partners/#application-developer-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | #import 18 | #import "ZendeskProviderSDK.h" 19 | 20 | 21 | @class ZDKAccount; 22 | /** 23 | * class that aids in the creation of the parts of a login request 24 | */ 25 | NS_ASSUME_NONNULL_BEGIN 26 | @interface ZDKLoginRequestPartsFactory : NSObject 27 | 28 | /** 29 | * returns the URL to use based on the accounts settings 30 | * @param account account to use to get url 31 | * @param identity identity type to get body from 32 | */ 33 | + (NSURL *_Nullable)loginURLWithAccount:(ZDKAccount*)account identity:(id )identity; 34 | 35 | /** 36 | * returns the HTTP body to send 37 | * @param identity identity type to get body from 38 | */ 39 | + (NSDictionary *)loginBodyForIdentity:(id )identity; 40 | 41 | /** 42 | * return an error if the stored identity is not valid 43 | * @param identity identity type to get body from 44 | */ 45 | + (NSError *_Nullable)validateIdentityForSettingsAuthenticationType:(id )identity; 46 | 47 | @end 48 | NS_ASSUME_NONNULL_END 49 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskProviderSDK.framework/PrivateHeaders/ZDKRequestHelper.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKRequestHelper.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 14/12/2015 7 | * 8 | * Copyright (c) 2015 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Master 11 | * Subscription Agreement https://www.zendesk.com/company/customers-partners/#master-subscription-agreement and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/customers-partners/#application-developer-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | #import 18 | #import "ZendeskSDKConstants.h" 19 | 20 | 21 | @protocol ZDKIdentity; 22 | @class ZDKAccount, ZDKAuthenticationSpace; 23 | 24 | NS_ASSUME_NONNULL_BEGIN 25 | @interface ZDKRequestHelper : NSObject 26 | 27 | /** 28 | * Retrurn a dictionary of shared to be sent with the providors requests 29 | * 30 | * @param authenticationSpace Authentication space used 31 | */ 32 | + (NSDictionary *)sharedHeadersWithAuthenticationSpace:(ZDKAuthenticationSpace*)authenticationSpace; 33 | 34 | /** 35 | * Returns a dictionary that has the Accept-Language header set in it 36 | * 37 | * @param headers the request headers to update 38 | * @param userLocale the user locale to set 39 | * 40 | * @return the updated request header 41 | */ 42 | + (NSDictionary *)requestHeaders:(NSDictionary*)headers byAddingLocale:(NSString*)userLocale; 43 | 44 | /** 45 | * Returns a String of User Agent Headers appendded together 46 | */ 47 | + (NSString *)userAgentHeader; 48 | 49 | /** 50 | * Class is not instantiable 51 | */ 52 | 53 | - (instancetype)init NS_UNAVAILABLE; 54 | + (instancetype)new NS_UNAVAILABLE; 55 | 56 | @end 57 | NS_ASSUME_NONNULL_END 58 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskProviderSDK.framework/PrivateHeaders/ZDKRequestManager.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKRequestManager.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 14/12/2015 7 | * 8 | * Copyright (c) 2015 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Master 11 | * Subscription Agreement https://www.zendesk.com/company/customers-partners/#master-subscription-agreement and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/customers-partners/#application-developer-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | #import 18 | #import "ZDKRequestExecutor.h" 19 | #import "ZDKReachability.h" 20 | #import "ZDKRequestSessionFactory.h" 21 | 22 | 23 | /** 24 | * Main class that handles executing http requests 25 | */ 26 | NS_ASSUME_NONNULL_BEGIN 27 | @interface ZDKRequestManager : NSObject 28 | 29 | /** 30 | * The current internal request session 31 | */ 32 | @property (nonatomic, strong, readonly) ZDKRequestSession *currentRequestSession; 33 | 34 | /** 35 | * Creates a new ZDKRequestManager 36 | * 37 | * @param reachability rechability instance to specify if internet is reachable 38 | * @param sessionFactory session factory helps in creating different types of sessions 39 | */ 40 | - (instancetype)initWithReachability:(ZDKReachability*)reachability 41 | sessionFactory:(ZDKRequestSessionFactory*)sessionFactory NS_DESIGNATED_INITIALIZER; 42 | 43 | /** 44 | * Executes the HTTP request 45 | * 46 | * @param request the request to execute 47 | * @param isAuthRequired Is authentication required or not 48 | * @param completionHandler handler to call when execution ends 49 | */ 50 | - (void)executeRequest:(NSURLRequest*)request isAuthRequired:(BOOL)isAuthRequired completionHandler:(nonnull ZDKAPIRequestBlock)completionHandler; 51 | 52 | - (instancetype)init NS_UNAVAILABLE; 53 | 54 | @end 55 | NS_ASSUME_NONNULL_END 56 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskProviderSDK.framework/PrivateHeaders/ZDKRequestQueue.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKRequestQueue.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 14/12/2015 7 | * 8 | * Copyright (c) 2015 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Master 11 | * Subscription Agreement https://www.zendesk.com/company/customers-partners/#master-subscription-agreement and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/customers-partners/#application-developer-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | #import 18 | #import "ZDKRequestExecutor.h" 19 | 20 | 21 | /** 22 | class responsible for storing a list of requests, and perform them later 23 | */ 24 | NS_ASSUME_NONNULL_BEGIN 25 | @interface ZDKRequestQueue : NSObject 26 | 27 | /** 28 | * create a request queue 29 | * 30 | * @param requestExecutor executor to perfom the requests on 31 | */ 32 | - (instancetype)initWithRequestExecutor:(ZDKRequestExecutor*)requestExecutor NS_DESIGNATED_INITIALIZER; 33 | 34 | 35 | /** 36 | * adds a request to the internally stored ones 37 | * 38 | * @param request request to store 39 | * @param isAuthRequired is auth required for this request 40 | * @param completionHandler the handler to call when the request is executed 41 | */ 42 | - (void)addRequest:(NSURLRequest *)request 43 | isAuthRequired:(BOOL)isAuthRequired 44 | completionHandler:(ZDKAPIRequestBlock)completionHandler; 45 | 46 | /** 47 | * Execute all the stored requests 48 | */ 49 | - (void)executeRequests; 50 | 51 | /** 52 | * Informs the passed blocks about an error 53 | * @param error Error to inform about 54 | */ 55 | - (void)informAboutError:(NSError*)error; 56 | 57 | /** 58 | * return the number of request queued 59 | */ 60 | - (NSInteger)pendingRequestsCount; 61 | 62 | - (instancetype)init NS_UNAVAILABLE; 63 | 64 | @end 65 | NS_ASSUME_NONNULL_END 66 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskProviderSDK.framework/PrivateHeaders/ZDKRequestSessionLoggedIn.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKRequestSessionLoggedIn.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 14/12/2015 7 | * 8 | * Copyright (c) 2015 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Master 11 | * Subscription Agreement https://www.zendesk.com/company/customers-partners/#master-subscription-agreement and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/customers-partners/#application-developer-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | #import "ZDKRequestSession.h" 18 | 19 | /** 20 | * Request session that handles the requests executed on a logged in session 21 | */ 22 | @interface ZDKRequestSessionLoggedIn: ZDKRequestSession 23 | @end 24 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskProviderSDK.framework/PrivateHeaders/ZDKRequestSessionNotLoggedIn.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKRequestSessionNotLoggedIn.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 14/12/2015 7 | * 8 | * Copyright (c) 2015 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Master 11 | * Subscription Agreement https://www.zendesk.com/company/customers-partners/#master-subscription-agreement and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/customers-partners/#application-developer-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | #import 18 | #import "ZDKRequestSession.h" 19 | 20 | /** 21 | * Request session that handles the requests executed on a not logged in session 22 | */ 23 | @interface ZDKRequestSessionNotLoggedIn: ZDKRequestSession 24 | @end 25 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskProviderSDK.framework/ZendeskProviderSDK: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zendesk/sdk_unity_plugin/12e6afef14c29dddef5de08035a5a0b27c0803d9/ios-plugin/src/ZendeskProviderSDK.framework/ZendeskProviderSDK -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskProviderSettings.m: -------------------------------------------------------------------------------- 1 | // 2 | // ZendeskProviderSettings.h 3 | // ZEN 4 | // 5 | 6 | #import "ZendeskCore.h" 7 | 8 | #pragma mark - ZDKSettingsProvider 9 | 10 | void _zendeskSettingsProviderGetSettings(char * gameObjectName, char * callbackId) { 11 | ZDKSettingsProvider *provider = [ZDKSettingsProvider new]; 12 | ZDKDefCallback(ZDKSettings*, [ZendeskJSON ZDKSettingsToJSON:result], "didSettingsProviderGetSettings") 13 | [provider getSdkSettingsWithCallback:callback]; 14 | } 15 | 16 | void _zendeskSettingsProviderGetSettingsWithLocale(char * gameObjectName, char * callbackId, char * locale) { 17 | ZDKSettingsProvider *provider = [ZDKSettingsProvider new]; 18 | ZDKDefCallback(ZDKSettings*, [ZendeskJSON ZDKSettingsToJSON:result], "didSettingsProviderGetSettingsWithLocale") 19 | [provider getSdkSettingsWithLocale:GetStringParam(locale) 20 | andCallback:callback]; 21 | } 22 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskProviderUpload.m: -------------------------------------------------------------------------------- 1 | // 2 | // ZendeskProviderUpload.m 3 | // ZEN 4 | // 5 | 6 | #import "ZendeskCore.h" 7 | 8 | #pragma mark - ZDKUploadProvider 9 | 10 | void _zendeskUploadProviderUploadAttachment(char * gameObjectName, char * callbackId, char * attachment, char * filename, char * contentType) { 11 | ZDKUploadProvider *provider = [ZDKUploadProvider new]; 12 | NSString * contentTypeHolder = GetStringParam(contentType); 13 | 14 | NSData * attachmentData; 15 | if ([contentTypeHolder rangeOfString:@"text" options:NSCaseInsensitiveSearch].location != NSNotFound || 16 | [contentTypeHolder rangeOfString:@"txt" options:NSCaseInsensitiveSearch].location != NSNotFound) { 17 | attachmentData = [GetStringParam(attachment) dataUsingEncoding:NSUTF8StringEncoding]; 18 | } 19 | else { 20 | attachmentData = ZDKBase64DataFromString(GetStringParam(attachment)); 21 | } 22 | 23 | ZDKDefCallback(ZDKUploadResponse*, [ZendeskJSON ZDKUploadResponseToJSON:result], "didUploadProviderUploadAttachment") 24 | [provider uploadAttachment:attachmentData 25 | withFilename:GetStringParam(filename) 26 | andContentType:GetStringParam(contentType) 27 | callback:callback]; 28 | } 29 | 30 | void _zendeskUploadProviderDeleteUpload(char * gameObjectName, char * callbackId, char * uploadToken) { 31 | ZDKUploadProvider *provider = [ZDKUploadProvider new]; 32 | ZDKDefCallback(NSString*, result, "didUploadProviderDeleteUpload") 33 | [provider deleteUpload:GetStringParam(uploadToken) 34 | andCallback:callback]; 35 | } 36 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskRequests.m: -------------------------------------------------------------------------------- 1 | // 2 | // ZendeskRequests.m 3 | // ZEN 4 | // 5 | 6 | #import "ZendeskCore.h" 7 | 8 | #pragma mark - ZDKRequests 9 | 10 | void _zendeskRequestsConfigureZDKRequests(char* requestSubject, char* tags[], int tagsLength, char* additionalInfo) { 11 | 12 | [ZDKRequests configure:^(ZDKAccount *account, ZDKRequestCreationConfig *requestCreationConfig) { 13 | 14 | if (requestSubject) { 15 | requestCreationConfig.subject = GetStringParam(requestSubject); 16 | } 17 | 18 | if (tags && tagsLength > 0) { 19 | NSMutableArray *nsTags = [NSMutableArray new]; 20 | 21 | for (int i = 0; i < tagsLength; i++) { 22 | [nsTags addObject:GetStringParam(tags[i])]; 23 | } 24 | 25 | requestCreationConfig.tags = nsTags; 26 | } 27 | 28 | if (additionalInfo) { 29 | requestCreationConfig.additionalRequestInfo = GetStringParam(additionalInfo); 30 | } 31 | }]; 32 | } 33 | 34 | void _zendeskRequestsShowRequestCreation() { 35 | [ZDKRequests presentRequestCreationWithViewController:UnityGetGLViewController()]; 36 | } 37 | 38 | void _zendeskRequestsShowRequestList() { 39 | [ZDKRequests presentRequestListWithViewController:UnityGetGLViewController()]; 40 | } 41 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK.bundle/Info.plist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zendesk/sdk_unity_plugin/12e6afef14c29dddef5de08035a5a0b27c0803d9/ios-plugin/src/ZendeskSDK.bundle/Info.plist -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK.bundle/ModelIdentifier.plist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zendesk/sdk_unity_plugin/12e6afef14c29dddef5de08035a5a0b27c0803d9/ios-plugin/src/ZendeskSDK.bundle/ModelIdentifier.plist -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK.bundle/ZDKCreateRequestViewController.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zendesk/sdk_unity_plugin/12e6afef14c29dddef5de08035a5a0b27c0803d9/ios-plugin/src/ZendeskSDK.bundle/ZDKCreateRequestViewController.nib -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK.bundle/ZDKHelpCenterArticleRatingView.nib/objects-11.0+.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zendesk/sdk_unity_plugin/12e6afef14c29dddef5de08035a5a0b27c0803d9/ios-plugin/src/ZendeskSDK.bundle/ZDKHelpCenterArticleRatingView.nib/objects-11.0+.nib -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK.bundle/ZDKHelpCenterArticleRatingView.nib/runtime.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zendesk/sdk_unity_plugin/12e6afef14c29dddef5de08035a5a0b27c0803d9/ios-plugin/src/ZendeskSDK.bundle/ZDKHelpCenterArticleRatingView.nib/runtime.nib -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK.bundle/ZDKHelpCenterOverviewArticleTableViewCell.nib/objects-11.0+.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zendesk/sdk_unity_plugin/12e6afef14c29dddef5de08035a5a0b27c0803d9/ios-plugin/src/ZendeskSDK.bundle/ZDKHelpCenterOverviewArticleTableViewCell.nib/objects-11.0+.nib -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK.bundle/ZDKHelpCenterOverviewArticleTableViewCell.nib/runtime.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zendesk/sdk_unity_plugin/12e6afef14c29dddef5de08035a5a0b27c0803d9/ios-plugin/src/ZendeskSDK.bundle/ZDKHelpCenterOverviewArticleTableViewCell.nib/runtime.nib -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK.bundle/ZDKHelpCenterOverviewController.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zendesk/sdk_unity_plugin/12e6afef14c29dddef5de08035a5a0b27c0803d9/ios-plugin/src/ZendeskSDK.bundle/ZDKHelpCenterOverviewController.nib -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK.bundle/ZDKHelpCenterOverviewFooterView.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zendesk/sdk_unity_plugin/12e6afef14c29dddef5de08035a5a0b27c0803d9/ios-plugin/src/ZendeskSDK.bundle/ZDKHelpCenterOverviewFooterView.nib -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK.bundle/ZDKHelpCenterOverviewHeaderView.nib/objects-11.0+.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zendesk/sdk_unity_plugin/12e6afef14c29dddef5de08035a5a0b27c0803d9/ios-plugin/src/ZendeskSDK.bundle/ZDKHelpCenterOverviewHeaderView.nib/objects-11.0+.nib -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK.bundle/ZDKHelpCenterOverviewHeaderView.nib/runtime.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zendesk/sdk_unity_plugin/12e6afef14c29dddef5de08035a5a0b27c0803d9/ios-plugin/src/ZendeskSDK.bundle/ZDKHelpCenterOverviewHeaderView.nib/runtime.nib -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK.bundle/ZDKHelpCenterOverviewLoadingTableViewCell.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zendesk/sdk_unity_plugin/12e6afef14c29dddef5de08035a5a0b27c0803d9/ios-plugin/src/ZendeskSDK.bundle/ZDKHelpCenterOverviewLoadingTableViewCell.nib -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK.bundle/ZDKHelpCenterOverviewSectionTableViewCell.nib/objects-11.0+.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zendesk/sdk_unity_plugin/12e6afef14c29dddef5de08035a5a0b27c0803d9/ios-plugin/src/ZendeskSDK.bundle/ZDKHelpCenterOverviewSectionTableViewCell.nib/objects-11.0+.nib -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK.bundle/ZDKHelpCenterOverviewSectionTableViewCell.nib/runtime.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zendesk/sdk_unity_plugin/12e6afef14c29dddef5de08035a5a0b27c0803d9/ios-plugin/src/ZendeskSDK.bundle/ZDKHelpCenterOverviewSectionTableViewCell.nib/runtime.nib -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK.bundle/ZDKHelpCenterOverviewSeeAllTableViewCell.nib/objects-11.0+.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zendesk/sdk_unity_plugin/12e6afef14c29dddef5de08035a5a0b27c0803d9/ios-plugin/src/ZendeskSDK.bundle/ZDKHelpCenterOverviewSeeAllTableViewCell.nib/objects-11.0+.nib -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK.bundle/ZDKHelpCenterOverviewSeeAllTableViewCell.nib/runtime.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zendesk/sdk_unity_plugin/12e6afef14c29dddef5de08035a5a0b27c0803d9/ios-plugin/src/ZendeskSDK.bundle/ZDKHelpCenterOverviewSeeAllTableViewCell.nib/runtime.nib -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK.bundle/ZDKHelpCenterOverviewSpacerTableViewCell.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zendesk/sdk_unity_plugin/12e6afef14c29dddef5de08035a5a0b27c0803d9/ios-plugin/src/ZendeskSDK.bundle/ZDKHelpCenterOverviewSpacerTableViewCell.nib -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK.bundle/ZDKHelpCenterSearchResultTableViewCell.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zendesk/sdk_unity_plugin/12e6afef14c29dddef5de08035a5a0b27c0803d9/ios-plugin/src/ZendeskSDK.bundle/ZDKHelpCenterSearchResultTableViewCell.nib -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK.bundle/ZDKHelpCenterSearchResultViewController.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zendesk/sdk_unity_plugin/12e6afef14c29dddef5de08035a5a0b27c0803d9/ios-plugin/src/ZendeskSDK.bundle/ZDKHelpCenterSearchResultViewController.nib -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK.bundle/btnAttach.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zendesk/sdk_unity_plugin/12e6afef14c29dddef5de08035a5a0b27c0803d9/ios-plugin/src/ZendeskSDK.bundle/btnAttach.png -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK.bundle/btnAttach@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zendesk/sdk_unity_plugin/12e6afef14c29dddef5de08035a5a0b27c0803d9/ios-plugin/src/ZendeskSDK.bundle/btnAttach@2x.png -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK.bundle/btnAttach@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zendesk/sdk_unity_plugin/12e6afef14c29dddef5de08035a5a0b27c0803d9/ios-plugin/src/ZendeskSDK.bundle/btnAttach@3x.png -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK.bundle/icoAdd.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zendesk/sdk_unity_plugin/12e6afef14c29dddef5de08035a5a0b27c0803d9/ios-plugin/src/ZendeskSDK.bundle/icoAdd.png -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK.bundle/icoAdd@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zendesk/sdk_unity_plugin/12e6afef14c29dddef5de08035a5a0b27c0803d9/ios-plugin/src/ZendeskSDK.bundle/icoAdd@2x.png -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK.bundle/icoAdd@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zendesk/sdk_unity_plugin/12e6afef14c29dddef5de08035a5a0b27c0803d9/ios-plugin/src/ZendeskSDK.bundle/icoAdd@3x.png -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK.bundle/icoAttach.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zendesk/sdk_unity_plugin/12e6afef14c29dddef5de08035a5a0b27c0803d9/ios-plugin/src/ZendeskSDK.bundle/icoAttach.png -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK.bundle/icoAttach@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zendesk/sdk_unity_plugin/12e6afef14c29dddef5de08035a5a0b27c0803d9/ios-plugin/src/ZendeskSDK.bundle/icoAttach@2x.png -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK.bundle/icoAttach@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zendesk/sdk_unity_plugin/12e6afef14c29dddef5de08035a5a0b27c0803d9/ios-plugin/src/ZendeskSDK.bundle/icoAttach@3x.png -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK.bundle/icoClose.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zendesk/sdk_unity_plugin/12e6afef14c29dddef5de08035a5a0b27c0803d9/ios-plugin/src/ZendeskSDK.bundle/icoClose.png -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK.bundle/icoClose@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zendesk/sdk_unity_plugin/12e6afef14c29dddef5de08035a5a0b27c0803d9/ios-plugin/src/ZendeskSDK.bundle/icoClose@2x.png -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK.bundle/icoClose@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zendesk/sdk_unity_plugin/12e6afef14c29dddef5de08035a5a0b27c0803d9/ios-plugin/src/ZendeskSDK.bundle/icoClose@3x.png -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK.bundle/icoDown.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zendesk/sdk_unity_plugin/12e6afef14c29dddef5de08035a5a0b27c0803d9/ios-plugin/src/ZendeskSDK.bundle/icoDown.png -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK.bundle/icoDown@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zendesk/sdk_unity_plugin/12e6afef14c29dddef5de08035a5a0b27c0803d9/ios-plugin/src/ZendeskSDK.bundle/icoDown@2x.png -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK.bundle/icoDown@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zendesk/sdk_unity_plugin/12e6afef14c29dddef5de08035a5a0b27c0803d9/ios-plugin/src/ZendeskSDK.bundle/icoDown@3x.png -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK.bundle/icoVoteDown.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zendesk/sdk_unity_plugin/12e6afef14c29dddef5de08035a5a0b27c0803d9/ios-plugin/src/ZendeskSDK.bundle/icoVoteDown.png -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK.bundle/icoVoteDown@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zendesk/sdk_unity_plugin/12e6afef14c29dddef5de08035a5a0b27c0803d9/ios-plugin/src/ZendeskSDK.bundle/icoVoteDown@2x.png -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK.bundle/icoVoteDown@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zendesk/sdk_unity_plugin/12e6afef14c29dddef5de08035a5a0b27c0803d9/ios-plugin/src/ZendeskSDK.bundle/icoVoteDown@3x.png -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK.bundle/icoVoteUp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zendesk/sdk_unity_plugin/12e6afef14c29dddef5de08035a5a0b27c0803d9/ios-plugin/src/ZendeskSDK.bundle/icoVoteUp.png -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK.bundle/icoVoteUp@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zendesk/sdk_unity_plugin/12e6afef14c29dddef5de08035a5a0b27c0803d9/ios-plugin/src/ZendeskSDK.bundle/icoVoteUp@2x.png -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK.bundle/icoVoteUp@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zendesk/sdk_unity_plugin/12e6afef14c29dddef5de08035a5a0b27c0803d9/ios-plugin/src/ZendeskSDK.bundle/icoVoteUp@3x.png -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK.bundle/ico_coversations.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zendesk/sdk_unity_plugin/12e6afef14c29dddef5de08035a5a0b27c0803d9/ios-plugin/src/ZendeskSDK.bundle/ico_coversations.png -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK.bundle/ico_coversations@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zendesk/sdk_unity_plugin/12e6afef14c29dddef5de08035a5a0b27c0803d9/ios-plugin/src/ZendeskSDK.bundle/ico_coversations@2x.png -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK.bundle/ico_coversations@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zendesk/sdk_unity_plugin/12e6afef14c29dddef5de08035a5a0b27c0803d9/ios-plugin/src/ZendeskSDK.bundle/ico_coversations@3x.png -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK.bundle/ico_newticket.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zendesk/sdk_unity_plugin/12e6afef14c29dddef5de08035a5a0b27c0803d9/ios-plugin/src/ZendeskSDK.bundle/ico_newticket.png -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK.bundle/ico_newticket@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zendesk/sdk_unity_plugin/12e6afef14c29dddef5de08035a5a0b27c0803d9/ios-plugin/src/ZendeskSDK.bundle/ico_newticket@2x.png -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK.bundle/ico_newticket@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zendesk/sdk_unity_plugin/12e6afef14c29dddef5de08035a5a0b27c0803d9/ios-plugin/src/ZendeskSDK.bundle/ico_newticket@3x.png -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK.framework/Headers/ZDKAttachmentCollectionViewCell.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKAttachmentCollectionViewCell.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 02/02/2015. 7 | * 8 | * Copyright (c) 2015 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Master 11 | * Subscription Agreement https://www.zendesk.com/company/customers-partners/#master-subscription-agreement and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/customers-partners/#application-developer-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | #import 18 | 19 | 20 | /** 21 | * Collection view cell which displays an attachment. 22 | */ 23 | @interface ZDKAttachmentCollectionViewCell : UICollectionViewCell 24 | 25 | 26 | /** 27 | * Prepare cell for display with an image. 28 | * 29 | * @param image an attachment to display. 30 | */ 31 | - (void)prepareWithImage:(UIImage *)image; 32 | 33 | 34 | /** 35 | * Helper method. 36 | * 37 | * @return a reuse identifier. 38 | */ 39 | + (NSString *) reuseIdentifier; 40 | 41 | 42 | /** 43 | * Returns the preferred size for the view. 44 | */ 45 | + (CGSize) preferedSize; 46 | 47 | 48 | @end 49 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK.framework/Headers/ZDKAttachmentView.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKAttachmentView.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 03/02/2015. 7 | * 8 | * Copyright (c) 2015 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Master 11 | * Subscription Agreement https://www.zendesk.com/company/customers-partners/#master-subscription-agreement and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/customers-partners/#application-developer-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | #import 18 | 19 | 20 | /** 21 | * A small view which displays attachments for a comment being created. 22 | * Allowing end users to add and remove attachments to comments. 23 | */ 24 | @interface ZDKAttachmentView : UIView 25 | 26 | 27 | /** 28 | * Collection view for attachments. 29 | */ 30 | @property (nonatomic, strong, readonly) UICollectionView *attachmentsCollectionView; 31 | 32 | 33 | /** 34 | * Add a target for the close button accion on this view. 35 | * 36 | * @param target the target for the action. 37 | * @param action the action. 38 | */ 39 | - (void) addTarget:(id)target forCloseAction:(SEL)action; 40 | 41 | 42 | @end 43 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK.framework/Headers/ZDKAttachmentViewDataSource.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKAttachmentViewDataSource.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 02/02/2015. 7 | * 8 | * Copyright (c) 2015 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Master 11 | * Subscription Agreement https://www.zendesk.com/company/customers-partners/#master-subscription-agreement and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/customers-partners/#application-developer-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | #import 18 | 19 | 20 | /** 21 | * Collection view data source for ZDKAttachmentView. 22 | */ 23 | @interface ZDKAttachmentViewDataSource : NSObject 24 | 25 | 26 | @property (nonatomic, copy) NSMutableArray *data; 27 | 28 | @end 29 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK.framework/Headers/ZDKCommentInputViewController.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKCommentInputViewController.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 04/02/2015. 7 | * 8 | * Copyright (c) 2015 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Master 11 | * Subscription Agreement https://www.zendesk.com/company/customers-partners/#master-subscription-agreement and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/customers-partners/#application-developer-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | #import 18 | 19 | 20 | @class ZDKCommentInputView, ZDKRequest; 21 | 22 | 23 | @interface ZDKCommentInputViewController : UIViewController 24 | 25 | @property (nonatomic, strong) ZDKCommentInputView *commentInputView; 26 | 27 | - (instancetype)initWithRequest:(ZDKRequest *)request isAttachmentEnabled:(BOOL)isAttachmentEnabled; 28 | 29 | - (CGFloat) preferredHeight; 30 | 31 | @end 32 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK.framework/Headers/ZDKCommentsTableViewController.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKCommentsTableViewController.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 04/02/2015. 7 | * 8 | * Copyright (c) 2015 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Master 11 | * Subscription Agreement https://www.zendesk.com/company/customers-partners/#master-subscription-agreement and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/customers-partners/#application-developer-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | #import 18 | #import "ZDKRotationForwarding.h" 19 | 20 | @class ZDKRequest, ZDKCommentsTableViewDataSource; 21 | 22 | @interface ZDKCommentsTableViewController : UIViewController 23 | 24 | @property (nonatomic, strong, readonly) ZDKCommentsTableViewDataSource *datasource; 25 | 26 | @property (nonatomic, strong, readonly) UITableView *commentsView; 27 | 28 | @property (nonatomic, assign) id rotationEventDelegate; 29 | 30 | /** 31 | * Init with provided request. 32 | * 33 | * @param request the request object this comments view is for 34 | * @return the instance 35 | */ 36 | - (instancetype) initWithRequest:(ZDKRequest *)request; 37 | 38 | 39 | @end 40 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK.framework/Headers/ZDKCommentsTableViewDataSource.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKCommentsTableViewDataSource.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 04/02/2015. 7 | * 8 | * Copyright (c) 2015 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Master 11 | * Subscription Agreement https://www.zendesk.com/company/customers-partners/#master-subscription-agreement and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/customers-partners/#application-developer-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | #import 18 | 19 | @class ZDKRequest; 20 | 21 | 22 | extern NSString * const ZDK_RequestCommentsListUpdated; 23 | 24 | /** 25 | * Data source for the comments table view. 26 | */ 27 | @interface ZDKCommentsTableViewDataSource : NSObject 28 | 29 | 30 | /** 31 | * State tracking, if true then a refresh if the request list is in progress. 32 | */ 33 | @property (nonatomic, assign, readonly) BOOL loadingInProgress; 34 | 35 | 36 | /** 37 | * Read-only array of items associated with the data source. 38 | */ 39 | @property (nonatomic, copy, readonly) NSArray *items; 40 | 41 | 42 | /** 43 | * Init with provided request. 44 | * 45 | * @param request the request object this comments view is for 46 | * @return the instance 47 | */ 48 | - (instancetype) initWithRequest:(ZDKRequest*)request; 49 | 50 | 51 | /** 52 | * Retrieves an item for the given index path. 53 | * 54 | * @param indexPath The index path for the item to be retrieved. 55 | * @return An item, depending on the data source this could be a category, section or article. 56 | */ 57 | - (id)itemAtIndexPath:(NSIndexPath *)indexPath; 58 | 59 | 60 | /** 61 | * Reloads the data source. 62 | */ 63 | - (void) reloadData; 64 | 65 | 66 | @end 67 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK.framework/Headers/ZDKCommentsTableViewDelegate.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKCommentsTableViewDelegate.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 04/02/2015. 7 | * 8 | * Copyright (c) 2015 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Master 11 | * Subscription Agreement https://www.zendesk.com/company/customers-partners/#master-subscription-agreement and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/customers-partners/#application-developer-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | #import 18 | #import "ZDKRotationForwarding.h" 19 | 20 | 21 | @interface ZDKCommentsTableViewDelegate : NSObject 22 | 23 | @property (nonatomic, assign) id rotationEventDelegate; 24 | 25 | @end 26 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK.framework/Headers/ZDKCommentsViewController.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKCommentsViewController.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 04/02/2015. 7 | * 8 | * Copyright (c) 2015 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Master 11 | * Subscription Agreement https://www.zendesk.com/company/customers-partners/#master-subscription-agreement and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/customers-partners/#application-developer-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | #import 18 | 19 | #import "ZDKUIViewController.h" 20 | #import "ZDKRotationForwarding.h" 21 | 22 | 23 | @class ZDKRequest; 24 | 25 | 26 | @interface ZDKCommentsViewController : ZDKUIViewController 27 | 28 | 29 | /** 30 | * The original request for the comment stream. 31 | */ 32 | @property (nonatomic, strong, readonly) ZDKRequest *request; 33 | 34 | 35 | /** 36 | * Initialize the comments controller with a request. 37 | * 38 | * @param aRequest A request model. 39 | * 40 | * @return A new instance of ZDKCommentsViewController. 41 | */ 42 | - (instancetype)initWithRequest:(ZDKRequest *)aRequest; 43 | 44 | /** 45 | * Dismiss the controller that was presented modally. 46 | */ 47 | - (void) dismiss; 48 | 49 | @end 50 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK.framework/Headers/ZDKCreateRequestView.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKCoreCreateRequestView.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 31/10/2014. 7 | * 8 | * Copyright (c) 2014 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Master 11 | * Subscription Agreement https://www.zendesk.com/company/customers-partners/#master-subscription-agreement and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/customers-partners/#application-developer-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | #import 18 | #import "ZDKSpinnerDelegate.h" 19 | 20 | @class ZDKUITextView; 21 | 22 | 23 | /** 24 | * Request creation view. 25 | * 26 | * @since 0.9.3.1 27 | */ 28 | @interface ZDKCreateRequestView : UIView 29 | 30 | /** 31 | * Text view for request description. 32 | * 33 | * @since 0.9.3.1 34 | */ 35 | @property (nonatomic, strong) ZDKUITextView *textView; 36 | 37 | /** 38 | * Text field for email input. Only shown if using anonymous and conversations disabled. 39 | * 40 | * @since 1.4.0.1 41 | */ 42 | @property (nonatomic, strong) UITextField *emailField; 43 | 44 | /** 45 | * Button to allow user to attach images 46 | * 47 | * @since 1.1.0.1 48 | */ 49 | @property (nonatomic, strong) UIButton *attachImageButton; 50 | 51 | /** 52 | * Height of the textView frame 53 | * 54 | * @since 1.1.0.1 55 | */ 56 | @property (nonatomic, readonly, assign) NSInteger textViewHeight; 57 | 58 | 59 | @end 60 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK.framework/Headers/ZDKHelpCenterAttachmentsDataSource.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKHelpCenterAttachmentsDataSource.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 07/11/2014. 7 | * 8 | * Copyright (c) 2014 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Master 11 | * Subscription Agreement https://www.zendesk.com/company/customers-partners/#master-subscription-agreement and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/customers-partners/#application-developer-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | #import "ZDKHelpCenterDataSource.h" 18 | 19 | 20 | /** 21 | * Data source for Help Center attachments. 22 | * 23 | * @since 0.9.3.1 24 | */ 25 | @interface ZDKHelpCenterAttachmentsDataSource : ZDKHelpCenterDataSource 26 | 27 | 28 | /** 29 | * Initializes a data source with a cell identifier, configuration block and a provider. 30 | * 31 | * @since 0.9.3.1 32 | * 33 | * @param articleId The articleId passed as a String, the article to which attachments will be fetched. 34 | * 35 | * @return A new instance. 36 | */ 37 | - (instancetype) initWithArticleId:(NSString *)articleId ; 38 | 39 | 40 | @end 41 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK.framework/Headers/ZDKHelpCenterErrorCodes.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKHelpCenterErrorCodes.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 30/05/2016. 7 | * 8 | * Copyright © 2016 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Master 11 | * Subscription Agreement https://www.zendesk.com/company/customers-partners/#master-subscription-agreement and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/customers-partners/#application-developer-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | #import 18 | 19 | 20 | /** 21 | * Help Center error codes. 22 | */ 23 | typedef NS_ENUM(NSUInteger, ZDKHelpCenterError) { 24 | 25 | /** 26 | * Category ids were not found in Help Center. 27 | */ 28 | ZDKHelpCenterErrorInvalidCategoryIds = 100, 29 | 30 | /** 31 | * Section ids were not found in Help Center. 32 | */ 33 | ZDKHelpCenterErrorInvalidSectionIds, 34 | 35 | /** 36 | * No articles were found with the specified labels. 37 | */ 38 | ZDKHelpCenterErrorNoArticlesForLabels, 39 | 40 | /** 41 | * Help Center has no content. 42 | */ 43 | ZDKHelpCenterErrorEmptyHelpCenter 44 | }; 45 | 46 | /** 47 | * Help Center error domain. 48 | */ 49 | extern NSString * const ZDKHelpCenterErrorDomain; 50 | 51 | /** 52 | * Error description for category id error. 53 | */ 54 | extern NSString * const ZDKHelpCenterNoCategoriesLocalisedDescription; 55 | 56 | /** 57 | * Error description for section id error. 58 | */ 59 | extern NSString * const ZDKHelpCenterNoSectionsLocalisedDescription; 60 | 61 | /** 62 | * Error description for label error. 63 | */ 64 | extern NSString * const ZDKHelpCenterNoArticlesForLabelsDescription; 65 | 66 | /** 67 | * Error description for empty Help Center. 68 | */ 69 | extern NSString * const ZDKHelpCenterEmptyHelpCenterDescription; 70 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK.framework/Headers/ZDKHelpCenterOverviewController.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKHelpCenterOverviewController.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 27/05/2016. 7 | * 8 | * Copyright © 2016 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Master 11 | * Subscription Agreement https://www.zendesk.com/company/customers-partners/#master-subscription-agreement and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/customers-partners/#application-developer-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | #import 18 | #import 19 | 20 | @class ZDKHelpCenterOverviewContentModel; 21 | 22 | NS_ASSUME_NONNULL_BEGIN 23 | NS_AVAILABLE_IOS(8_0) 24 | 25 | 26 | /** 27 | * Displays Help Center content. 28 | */ 29 | @interface ZDKHelpCenterOverviewController : UIViewController 30 | 31 | @property (nonatomic, weak) id uiDelegate; 32 | 33 | - (instancetype) initWithHelpCenterOverviewModel:(ZDKHelpCenterOverviewContentModel *)helpCenterContentModel; 34 | 35 | @end 36 | NS_ASSUME_NONNULL_END 37 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK.framework/Headers/ZDKImageViewerViewController.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKImageViewerViewController.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 2/11/15. 7 | * 8 | * Copyright (c) 2015 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Master 11 | * Subscription Agreement https://www.zendesk.com/company/customers-partners/#master-subscription-agreement and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/customers-partners/#application-developer-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | #import 18 | #import "ZDKUIViewController.h" 19 | #import "ZDKRotationForwarding.h" 20 | 21 | @interface ZDKImageViewerViewController : ZDKUIViewController 22 | 23 | @property (nonatomic, assign) id rotationEventDelegate; 24 | 25 | - (instancetype) initWithImage:(UIImage*)image; 26 | 27 | - (void) dismiss; 28 | 29 | 30 | @end 31 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK.framework/Headers/ZDKRequestCommentAttachmentLoadingTableCell.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKRequestCommentAttachmentLoadingTableCell.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 26/01/2015. 7 | * 8 | * Copyright (c) 2015 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Master 11 | * Subscription Agreement https://www.zendesk.com/company/customers-partners/#master-subscription-agreement and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/customers-partners/#application-developer-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | #import "ZDKRequestCommentTableCell.h" 18 | 19 | @interface ZDKRequestCommentAttachmentLoadingTableCell : ZDKRequestCommentTableCell 20 | 21 | 22 | + (CGFloat) cellHeightForCommentWithAttachment:(CGFloat) width; 23 | 24 | @end 25 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK.framework/Headers/ZDKRequestListViewController.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKRequestListViewController.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 15/10/2014. 7 | * 8 | * Copyright (c) 2014 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Master 11 | * Subscription Agreement https://www.zendesk.com/company/customers-partners/#master-subscription-agreement and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/customers-partners/#application-developer-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | #import "ZDKUIViewController.h" 18 | 19 | @class ZDKRequestListTable; 20 | 21 | @protocol ZDKCreateRequestUIDelegate; 22 | 23 | @interface ZDKRequestListViewController : ZDKUIViewController 24 | 25 | /** 26 | * Scroll view that contains the ZDKRequestListTable. 27 | */ 28 | @property (nonatomic, strong) UIScrollView *requestListContainer; 29 | 30 | /** 31 | * A table that displays open requests. 32 | */ 33 | @property (nonatomic, strong) ZDKRequestListTable *requestList; 34 | 35 | /** 36 | * Delegate for nav ban button UI. 37 | */ 38 | @property (nonatomic, weak) id delegate; 39 | 40 | 41 | /** 42 | * Dismiss modally presented controller. 43 | * 44 | * @since 1.5.4.1 45 | */ 46 | - (void) dismiss; 47 | 48 | @end 49 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK.framework/Headers/ZDKRotationForwarding.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKRotationForwarding.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 3/30/16. 7 | * 8 | * Copyright © 2016 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Master 11 | * Subscription Agreement https://www.zendesk.com/company/customers-partners/#master-subscription-agreement and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/customers-partners/#application-developer-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | @protocol ZDKRotationForwarding 18 | 19 | - (void)orientationWillChange:(UIInterfaceOrientation)toInterfaceOrientation; 20 | 21 | @end 22 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK.framework/Headers/ZDKSpinnerDelegate.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKSpinnerDelegate.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 30/04/2014. 7 | * 8 | * Copyright (c) 2014 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Master 11 | * Subscription Agreement https://www.zendesk.com/company/customers-partners/#master-subscription-agreement and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/customers-partners/#application-developer-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | 18 | #import 19 | 20 | 21 | /** 22 | * Spinner control delegate. 23 | */ 24 | @protocol ZDKSpinnerDelegate 25 | 26 | 27 | /** 28 | * Frame of spinner. 29 | */ 30 | @property (nonatomic, assign) CGRect frame; 31 | 32 | 33 | /** 34 | * Is the spinner hidden? YES or NO. 35 | */ 36 | @property (nonatomic, assign, getter=isHidden) BOOL hidden; 37 | 38 | 39 | /** 40 | * The center of the view. 41 | */ 42 | @property (nonatomic, assign) CGPoint center; 43 | 44 | 45 | /** 46 | * Start the spinner animating. 47 | */ 48 | - (void) startAnimating; 49 | 50 | 51 | /** 52 | * Stop the spinner animating. 53 | */ 54 | - (void) stopAnimating; 55 | 56 | 57 | @end 58 | 59 | 60 | /** 61 | * Spinner creation block. 62 | * @param frame rect for the spinner 63 | */ 64 | typedef id (^ZDUISpinner) (CGRect frame); 65 | 66 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK.framework/Headers/ZDKSupportAttachmentCell.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKHelpCenterAttachmentCell.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 30/09/2014. 7 | * 8 | * Copyright (c) 2014 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Master 11 | * Subscription Agreement https://www.zendesk.com/company/customers-partners/#master-subscription-agreement and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/customers-partners/#application-developer-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | #import 18 | 19 | @interface ZDKSupportAttachmentCell : UITableViewCell 20 | 21 | #pragma mark - Properties 22 | 23 | /** 24 | * A label which displays the articles parent category and section. 25 | * 26 | */ 27 | @property (nonatomic, strong, readonly) UILabel *fileSize; 28 | 29 | /** 30 | * A label which displays the articles title. 31 | * 32 | */ 33 | @property (nonatomic, strong, readonly) UILabel *title; 34 | 35 | #pragma mark - Methods 36 | 37 | /** 38 | * Helper method to retrieve this classes cell identifier. 39 | * 40 | * @returns The classes cell identifier. 41 | */ 42 | + (NSString *) cellIdentifier; 43 | 44 | 45 | 46 | @end 47 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK.framework/Headers/ZDKUIActivityView.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKUIActivityView.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 01/05/2014. 7 | * 8 | * Copyright (c) 2014 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Master 11 | * Subscription Agreement https://www.zendesk.com/company/customers-partners/#master-subscription-agreement and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/customers-partners/#application-developer-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | 18 | #import 19 | #import "ZDKSpinnerDelegate.h" 20 | 21 | 22 | @interface ZDKUIActivityView : UIImageView 23 | 24 | 25 | @end 26 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK.framework/Headers/ZDKUIImageScrollView.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKUIImageScrollView.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 2/12/15. 7 | * 8 | * Copyright (c) 2015 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Master 11 | * Subscription Agreement https://www.zendesk.com/company/customers-partners/#master-subscription-agreement and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/customers-partners/#application-developer-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | #import 18 | 19 | @interface ZDKUIImageScrollView : UIScrollView 20 | 21 | @property (nonatomic, strong) UIImageView *imageView; 22 | 23 | - (instancetype) initWithImage:(UIImage*)image; 24 | 25 | @end 26 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK.framework/Headers/ZDKUILoadingView.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKUILoadingView.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 22/01/2015. 7 | * 8 | * Copyright (c) 2015 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Master 11 | * Subscription Agreement https://www.zendesk.com/company/customers-partners/#master-subscription-agreement and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/customers-partners/#application-developer-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | @interface ZDKUILoadingView : UIView 18 | 19 | 20 | /** 21 | * Loading indicator. 22 | */ 23 | @property (nonatomic, strong, readonly) UIActivityIndicatorView *spinner; 24 | 25 | 26 | @end 27 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK.framework/Headers/ZDKUITextViewDelegate.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKUITextViewDelegate.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 09/05/2014. 7 | * 8 | * Copyright (c) 2014 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Master 11 | * Subscription Agreement https://www.zendesk.com/company/customers-partners/#master-subscription-agreement and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/customers-partners/#application-developer-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | #import 18 | @class ZDKUITextView; 19 | 20 | @protocol ZDKUITextViewDelegate 21 | 22 | - (void) caretPosition:(CGRect)caret; 23 | 24 | @optional 25 | - (void) updateTextViewLayout:(ZDKUITextView*)textView; 26 | 27 | @end 28 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK.framework/Headers/Zendesk.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Zendesk.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 12/01/2017. 7 | * 8 | * Copyright (c) 2017 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Master 11 | * Subscription Agreement https://www.zendesk.com/company/customers-partners/#master-subscription-agreement and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/customers-partners/#application-developer-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | #import 18 | 19 | @interface Zendesk : NSObject 20 | 21 | @end 22 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK.framework/Info.plist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zendesk/sdk_unity_plugin/12e6afef14c29dddef5de08035a5a0b27c0803d9/ios-plugin/src/ZendeskSDK.framework/Info.plist -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK.framework/Modules/module.modulemap: -------------------------------------------------------------------------------- 1 | framework module ZendeskSDK { 2 | umbrella header "ZendeskSDK.h" 3 | 4 | export * 5 | module * { export * } 6 | 7 | link framework "CoreFoundation" 8 | link framework "Security" 9 | link framework "SystemConfiguration" 10 | link framework "MobileCoreServices" 11 | link framework "MessageUI" 12 | } 13 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK.framework/PrivateHeaders/ZDKUITextView.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKUITextView.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 28/04/2014. 7 | * 8 | * Copyright (c) 2014 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Master 11 | * Subscription Agreement https://www.zendesk.com/company/customers-partners/#master-subscription-agreement and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/customers-partners/#application-developer-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | 18 | #import 19 | #import "ZDKUITextViewDelegate.h" 20 | 21 | 22 | /** 23 | * A UITextView with a placeholder that is shown when there is no text in the text 24 | * view. Retains all the functionality of a normal UITextView. Setting the font 25 | * on the text view sets the font on the placeholder. The placeholder text color 26 | * is set with the placeholderTextColor property. 27 | */ 28 | @interface ZDKUITextView : UITextView 29 | 30 | 31 | /** 32 | * The placeholder text that is shown when there is no text in the text view. 33 | */ 34 | @property (nonatomic, strong) IBInspectable NSString *placeholderText; 35 | 36 | 37 | /** 38 | * The color of the placeholder that is shown when there is no text in the text view. 39 | */ 40 | @property (nonatomic, strong) IBInspectable UIColor *placeholderTextColor; 41 | 42 | 43 | /** 44 | * Init method for ZDKRMATextView. 45 | * 46 | * @param frame The frame for the text view 47 | * @param placeholderText The text for the placeholder 48 | * @return An initialized ZDKRMATextView object or nil if the object couldn't be created. 49 | * 50 | */ 51 | - (instancetype) initWithFrame:(CGRect)frame andPlaceholder:(NSString*)placeholderText; 52 | 53 | 54 | @end 55 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK.framework/ZendeskSDK: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zendesk/sdk_unity_plugin/12e6afef14c29dddef5de08035a5a0b27c0803d9/ios-plugin/src/ZendeskSDK.framework/ZendeskSDK -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK/ZDKAPIDispatcher.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKAPIDispatcher.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 22/04/2014. 7 | * 8 | * Copyright (c) 2014 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Terms 11 | * of Service https://www.zendesk.com/company/terms and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/application-developer-and-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | #import 18 | #import "ZDKDeviceInfo.h" 19 | #import "ZDKAccount.h" 20 | #import "ZDKDispatcher.h" 21 | #import "ZDKDispatcherDelegate.h" 22 | #import "ZDKRequest.h" 23 | #import "ZDKComment.h" 24 | 25 | /** 26 | * ZDKAPI is the primary access point for API requests. 27 | * 28 | * @since 0.9.3.1 29 | */ 30 | @interface ZDKAPIDispatcher : ZDKDispatcher 31 | 32 | /** 33 | * Returns the singleton instance of the dispatcher. 34 | * 35 | * @since 0.9.3.1 36 | * 37 | * @return the dispatcher. 38 | */ 39 | + (instancetype) instance; 40 | 41 | 42 | + (NSMutableDictionary *) getSharedHeaders; 43 | 44 | @end 45 | 46 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK/ZDKArticleViewController.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKArticleViewController.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 24/09/2014. 7 | * 8 | * Copyright (c) 2014 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Terms 11 | * of Service https://www.zendesk.com/company/terms and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/application-developer-and-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | #import 18 | 19 | #import "ZDKUIViewController.h" 20 | #import "ZDKArticleView.h" 21 | #import 22 | 23 | 24 | @class ZDKArticleView, ZDKHelpCenterArticle, ZDKHelpCenterArticleViewModel; 25 | 26 | /** 27 | * View controller for an article view. 28 | * 29 | * @since 0.9.3.1 30 | */ 31 | @interface ZDKArticleViewController : ZDKUIViewController 32 | 33 | /** 34 | * The article view. 35 | * 36 | * @since 0.9.3.1 37 | */ 38 | @property (nonatomic, strong) ZDKArticleView *articleView; 39 | 40 | 41 | /** 42 | * Initializes the article controller with an article. 43 | * 44 | * @since 0.9.3.1 45 | * 46 | * @param article A help center article. 47 | */ 48 | - (instancetype) initWithArticle:(ZDKHelpCenterArticle *)article; 49 | 50 | /** 51 | * Initializes the article controller with an article view model which trigger a network call 52 | * to fetch the full article model. 53 | * 54 | * @param articleViewModel An articleViewModel 55 | * 56 | * @since 1.7.0.1 57 | */ 58 | - (instancetype) initWithArticleViewModel:(ZDKHelpCenterArticleViewModel *)articleViewModel; 59 | 60 | @end 61 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK/ZDKAttachmentCollectionViewCell.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKAttachmentCollectionViewCell.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 02/02/2015. 7 | * 8 | * Copyright (c) 2015 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Terms 11 | * of Service https://www.zendesk.com/company/terms and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/application-developer-and-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | #import 18 | 19 | 20 | /** 21 | * Collection view cell which displays an attachment. 22 | */ 23 | @interface ZDKAttachmentCollectionViewCell : UICollectionViewCell 24 | 25 | 26 | /** 27 | * Prepare cell for display with an image. 28 | * 29 | * @param image an attachment to display. 30 | */ 31 | - (void)prepareWithImage:(UIImage *)image; 32 | 33 | 34 | /** 35 | * Helper method. 36 | * 37 | * @return a reuse identifier. 38 | */ 39 | + (NSString *) reuseIdentifier; 40 | 41 | 42 | /** 43 | * Returns the preferred size for the view. 44 | */ 45 | + (CGSize) preferedSize; 46 | 47 | 48 | @end 49 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK/ZDKAttachmentView.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKAttachmentView.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 03/02/2015. 7 | * 8 | * Copyright (c) 2015 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Terms 11 | * of Service https://www.zendesk.com/company/terms and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/application-developer-and-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | #import 18 | 19 | 20 | /** 21 | * A small view which displays attachments for a comment being created. 22 | * Allowing end users to add and remove attachments to comments. 23 | */ 24 | @interface ZDKAttachmentView : UIView 25 | 26 | 27 | /** 28 | * Collection view for attachments. 29 | */ 30 | @property (nonatomic, strong, readonly) UICollectionView *attachmentsCollectionView; 31 | 32 | 33 | /** 34 | * Add a target for the close button accion on this view. 35 | * 36 | * @param target the target for the action. 37 | * @param action the action. 38 | */ 39 | - (void) addTarget:(id)target forCloseAction:(SEL)action; 40 | 41 | 42 | @end 43 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK/ZDKAttachmentViewController.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKAttachmentViewController.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 02/02/2015. 7 | * 8 | * Copyright (c) 2015 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Terms 11 | * of Service https://www.zendesk.com/company/terms and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/application-developer-and-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | #import 18 | 19 | 20 | @class ZDKAttachmentView; 21 | 22 | 23 | @protocol ZDKAttachmentViewControllerDelegate 24 | 25 | - (void) didCloseAttachmentView; 26 | 27 | - (void) attachmentTooLarge:(NSData *)data; 28 | 29 | - (void) attachmentsView:(ZDKAttachmentView *)attachmentView didSelectAttachment:(NSString *)attachment data:(NSData*)data; 30 | 31 | - (void) attachmentsView:(ZDKAttachmentView *)attachmentView didRemoveAttachment:(NSString *)attachment; 32 | 33 | @end 34 | 35 | 36 | @class ZDKAttachmentViewDataSource; 37 | 38 | 39 | /** 40 | * Controller for attachment view. 41 | */ 42 | @interface ZDKAttachmentViewController : UIViewController 43 | 44 | 45 | /** 46 | * Attachment view delegate. 47 | */ 48 | @property (nonatomic, weak) iddelegate; 49 | 50 | 51 | @property (nonatomic) ZDKAttachmentView *attachmentView; 52 | 53 | 54 | @property (nonatomic, readonly) ZDKAttachmentViewDataSource *datasource; 55 | 56 | 57 | - (void) resetAttachmentsView; 58 | 59 | @end 60 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK/ZDKAttachmentViewDataSource.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKAttachmentViewDataSource.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 02/02/2015. 7 | * 8 | * Copyright (c) 2015 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Terms 11 | * of Service https://www.zendesk.com/company/terms and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/application-developer-and-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | #import 18 | 19 | 20 | /** 21 | * Collection view data source for ZDKAttachmentView. 22 | */ 23 | @interface ZDKAttachmentViewDataSource : NSObject 24 | 25 | 26 | @property (nonatomic, copy) NSMutableArray *data; 27 | 28 | @end 29 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK/ZDKCommentInputViewController.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKCommentInputViewController.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 04/02/2015. 7 | * 8 | * Copyright (c) 2015 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Terms 11 | * of Service https://www.zendesk.com/company/terms and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/application-developer-and-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | #import 18 | 19 | 20 | @class ZDKCommentInputView, ZDKRequest; 21 | 22 | 23 | @interface ZDKCommentInputViewController : UIViewController 24 | 25 | @property (nonatomic, strong) ZDKCommentInputView *commentInputView; 26 | 27 | - (instancetype)initWithRequest:(ZDKRequest *)request isAttachmentEnabled:(BOOL)isAttachmentEnabled; 28 | 29 | - (CGFloat) preferredHeight; 30 | 31 | @end 32 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK/ZDKCommentsTableViewController.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKCommentsTableViewController.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 04/02/2015. 7 | * 8 | * Copyright (c) 2015 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Terms 11 | * of Service https://www.zendesk.com/company/terms and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/application-developer-and-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | #import 18 | #import "ZDKRotationForwarding.h" 19 | 20 | @class ZDKRequest, ZDKCommentsTableViewDataSource; 21 | 22 | @interface ZDKCommentsTableViewController : UIViewController 23 | 24 | @property (nonatomic, strong, readonly) ZDKCommentsTableViewDataSource *datasource; 25 | 26 | @property (nonatomic, strong, readonly) UITableView *commentsView; 27 | 28 | @property (nonatomic, assign) id rotationEventDelegate; 29 | 30 | /** 31 | * Init with provided request. 32 | * 33 | * @param request the request object this comments view is for 34 | * @return the instance 35 | */ 36 | - (instancetype) initWithRequest:(ZDKRequest *)request; 37 | 38 | 39 | @end 40 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK/ZDKCommentsTableViewDataSource.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKCommentsTableViewDataSource.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 04/02/2015. 7 | * 8 | * Copyright (c) 2015 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Terms 11 | * of Service https://www.zendesk.com/company/terms and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/application-developer-and-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | #import 18 | 19 | @class ZDKRequest; 20 | 21 | 22 | extern NSString * const ZDK_RequestCommentsListUpdated; 23 | 24 | /** 25 | * Data source for the comments table view. 26 | */ 27 | @interface ZDKCommentsTableViewDataSource : NSObject 28 | 29 | 30 | /** 31 | * State tracking, if true then a refresh if the request list is in progress. 32 | */ 33 | @property (nonatomic, assign, readonly) BOOL loadingInProgress; 34 | 35 | 36 | /** 37 | * Read-only array of items associated with the data source. 38 | */ 39 | @property (nonatomic, copy, readonly) NSArray *items; 40 | 41 | 42 | /** 43 | * Init with provided request. 44 | * 45 | * @param request the request object this comments view is for 46 | * @return the instance 47 | */ 48 | - (instancetype) initWithRequest:(ZDKRequest*)request; 49 | 50 | 51 | /** 52 | * Retrieves an item for the given index path. 53 | * 54 | * @param indexPath The index path for the item to be retrieved. 55 | * @return An item, depending on the data source this could be a category, section or article. 56 | */ 57 | - (id)itemAtIndexPath:(NSIndexPath *)indexPath; 58 | 59 | 60 | /** 61 | * Reloads the data source. 62 | */ 63 | - (void) reloadData; 64 | 65 | 66 | @end 67 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK/ZDKCommentsTableViewDelegate.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKCommentsTableViewDelegate.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 04/02/2015. 7 | * 8 | * Copyright (c) 2015 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Terms 11 | * of Service https://www.zendesk.com/company/terms and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/application-developer-and-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | #import 18 | #import "ZDKRotationForwarding.h" 19 | 20 | 21 | @interface ZDKCommentsTableViewDelegate : NSObject 22 | 23 | @property (nonatomic, assign) id rotationEventDelegate; 24 | 25 | @end 26 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK/ZDKCommentsViewController.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKCommentsViewController.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 04/02/2015. 7 | * 8 | * Copyright (c) 2015 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Terms 11 | * of Service https://www.zendesk.com/company/terms and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/application-developer-and-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | #import 18 | 19 | #import "ZDKUIViewController.h" 20 | #import "ZDKRotationForwarding.h" 21 | 22 | 23 | @class ZDKRequest; 24 | 25 | 26 | @interface ZDKCommentsViewController : ZDKUIViewController 27 | 28 | 29 | /** 30 | * The original request for the comment stream. 31 | */ 32 | @property (nonatomic, strong, readonly) ZDKRequest *request; 33 | 34 | 35 | /** 36 | * Initialize the comments controller with a request. 37 | * 38 | * @param aRequest A request model. 39 | * 40 | * @return A new instance of ZDKCommentsViewController. 41 | */ 42 | - (instancetype)initWithRequest:(ZDKRequest *)aRequest; 43 | 44 | /** 45 | * Dismiss the controller that was presented modally. 46 | */ 47 | - (void) dismiss; 48 | 49 | @end 50 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK/ZDKCreateRequestView.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKCoreCreateRequestView.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 31/10/2014. 7 | * 8 | * Copyright (c) 2014 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Terms 11 | * of Service https://www.zendesk.com/company/terms and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/application-developer-and-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | #import 18 | #import "ZDKSpinnerDelegate.h" 19 | 20 | @class ZDKUITextView; 21 | 22 | 23 | /** 24 | * Request creation view. 25 | * 26 | * @since 0.9.3.1 27 | */ 28 | @interface ZDKCreateRequestView : UIView 29 | 30 | /** 31 | * Text view for request description. 32 | * 33 | * @since 0.9.3.1 34 | */ 35 | @property (nonatomic, strong) ZDKUITextView *textView; 36 | 37 | /** 38 | * Text field for email input. Only shown if using anonymous and conversations disabled. 39 | * 40 | * @since 1.4.0.1 41 | */ 42 | @property (nonatomic, strong) UITextField *emailField; 43 | 44 | /** 45 | * Button to allow user to attach images 46 | * 47 | * @since 1.1.0.1 48 | */ 49 | @property (nonatomic, strong) UIButton *attachImageButton; 50 | 51 | /** 52 | * Height of the textView frame 53 | * 54 | * @since 1.1.0.1 55 | */ 56 | @property (nonatomic, readonly, assign) NSInteger textViewHeight; 57 | 58 | 59 | @end 60 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK/ZDKHelpCenterArticlesByLabelDataSource.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKHelpCenterArticlesByLabelDataSource.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 06/11/2014. 7 | * 8 | * Copyright (c) 2014 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Terms 11 | * of Service https://www.zendesk.com/company/terms and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/application-developer-and-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | #import "ZDKHelpCenterDataSource.h" 18 | 19 | 20 | /** 21 | * Help Center article datasource. Specifically getting articles by labels. 22 | * 23 | * @since 0.9.3.1 24 | */ 25 | @interface ZDKHelpCenterArticlesByLabelDataSource : ZDKHelpCenterDataSource 26 | 27 | 28 | /** 29 | * Initializes a data source with an array of labels to filter the list of articles to be shown. 30 | * 31 | * @since 0.9.3.1 32 | * 33 | * @param articleLabels The articleLabels passed as an array of Strings of possible labels to filter by 34 | * 35 | * @return A new instance. 36 | */ 37 | - (instancetype) initWithArticleLabels:(NSArray *)articleLabels; 38 | 39 | 40 | @end 41 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK/ZDKHelpCenterArticlesDataSource.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKHelpCenterArticlesDataSource.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 06/11/2014. 7 | * 8 | * Copyright (c) 2014 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Terms 11 | * of Service https://www.zendesk.com/company/terms and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/application-developer-and-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | #import "ZDKHelpCenterDataSource.h" 18 | 19 | 20 | /** 21 | * Help Center article datasource. 22 | * 23 | * @since 0.9.3.1 24 | */ 25 | @interface ZDKHelpCenterArticlesDataSource : ZDKHelpCenterDataSource 26 | 27 | 28 | /** 29 | * Initializes a data source with a sectionId to fetch articles for that sectionId. 30 | * 31 | * @since 0.9.3.1 32 | * 33 | * @param sectionId The sectionId passed from selecting a category 34 | */ 35 | - (instancetype) initWithSectionId:(NSString *)sectionId; 36 | 37 | 38 | @end 39 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK/ZDKHelpCenterAttachmentsDataSource.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKHelpCenterAttachmentsDataSource.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 07/11/2014. 7 | * 8 | * Copyright (c) 2014 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Terms 11 | * of Service https://www.zendesk.com/company/terms and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/application-developer-and-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | #import "ZDKHelpCenterDataSource.h" 18 | 19 | 20 | /** 21 | * Data source for Help Center attachments. 22 | * 23 | * @since 0.9.3.1 24 | */ 25 | @interface ZDKHelpCenterAttachmentsDataSource : ZDKHelpCenterDataSource 26 | 27 | 28 | /** 29 | * Initializes a data source with a cell identifier, configuration block and a provider. 30 | * 31 | * @since 0.9.3.1 32 | * 33 | * @param articleId The articleId passed as a String, the article to which attachments will be fetched. 34 | * 35 | * @return A new instance. 36 | */ 37 | - (instancetype) initWithArticleId:(NSString *)articleId ; 38 | 39 | 40 | @end 41 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK/ZDKHelpCenterCategoriesDataSource.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKHelpCenterCategoriesDataSource.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 06/11/2014. 7 | * 8 | * Copyright (c) 2014 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Terms 11 | * of Service https://www.zendesk.com/company/terms and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/application-developer-and-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | #import "ZDKHelpCenterDataSource.h" 18 | 19 | 20 | /** 21 | * Data source for Help Center categories. 22 | * 23 | * @since 0.9.3.1 24 | */ 25 | @interface ZDKHelpCenterCategoriesDataSource : ZDKHelpCenterDataSource 26 | 27 | 28 | /** 29 | * Initializes a data source and fetches the categories for the configured Zendesk instance. 30 | * 31 | * @since 0.9.3.1 32 | * 33 | * @return A new instance. 34 | */ 35 | - (instancetype) init; 36 | 37 | 38 | @end 39 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK/ZDKHelpCenterErrorCodes.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKHelpCenterErrorCodes.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 30/05/2016. 7 | * 8 | * Copyright © 2016 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Terms 11 | * of Service https://www.zendesk.com/company/terms and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/application-developer-and-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | #import 18 | 19 | 20 | /** 21 | * Help Center error codes. 22 | */ 23 | typedef NS_ENUM(NSUInteger, ZDKHelpCenterError) { 24 | 25 | /** 26 | * Category ids were not found in Help Center. 27 | */ 28 | ZDKHelpCenterErrorInvalidCategoryIds = 100, 29 | 30 | /** 31 | * Section ids were not found in Help Center. 32 | */ 33 | ZDKHelpCenterErrorInvalidSectionIds, 34 | 35 | /** 36 | * No articles were found with the specified labels. 37 | */ 38 | ZDKHelpCenterErrorNoArticlesForLabels, 39 | 40 | /** 41 | * Help Center has no content. 42 | */ 43 | ZDKHelpCenterErrorEmptyHelpCenter 44 | }; 45 | 46 | /** 47 | * Help Center error domain. 48 | */ 49 | extern NSString * const ZDKHelpCenterErrorDomain; 50 | 51 | /** 52 | * Error description for category id error. 53 | */ 54 | extern NSString * const ZDKHelpCenterNoCategoriesLocalisedDescription; 55 | 56 | /** 57 | * Error description for section id error. 58 | */ 59 | extern NSString * const ZDKHelpCenterNoSectionsLocalisedDescription; 60 | 61 | /** 62 | * Error description for label error. 63 | */ 64 | extern NSString * const ZDKHelpCenterNoArticlesForLabelsDescription; 65 | 66 | /** 67 | * Error description for empty Help Center. 68 | */ 69 | extern NSString * const ZDKHelpCenterEmptyHelpCenterDescription; 70 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK/ZDKHelpCenterOverviewController.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKHelpCenterOverviewController.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 27/05/2016. 7 | * 8 | * Copyright © 2016 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Terms 11 | * of Service https://www.zendesk.com/company/terms and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/application-developer-and-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | #import 18 | #import 19 | 20 | NS_ASSUME_NONNULL_BEGIN 21 | NS_AVAILABLE_IOS(8_0) 22 | 23 | 24 | /** 25 | * Displays Help Center content. 26 | */ 27 | @interface ZDKHelpCenterOverviewController : UIViewController 28 | 29 | @property (nonatomic, weak) id uiDelegate; 30 | 31 | - (instancetype) initWithHelpCenterOverviewModel:(ZDKHelpCenterOverviewContentModel *)helpCenterContentModel; 32 | 33 | @end 34 | NS_ASSUME_NONNULL_END 35 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK/ZDKHelpCenterSearchDataSource.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKHelpCenterSearchDataSource.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 07/11/2014. 7 | * 8 | * Copyright (c) 2014 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Terms 11 | * of Service https://www.zendesk.com/company/terms and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/application-developer-and-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | #import "ZDKHelpCenterDataSource.h" 18 | 19 | @class ZDKHelpCenterSearch; 20 | 21 | @interface ZDKHelpCenterSearchDataSource : ZDKHelpCenterDataSource 22 | 23 | /** 24 | * init with search query 25 | * 26 | * @param query NSString search query to be sent to Help Center instance * 27 | * @return instance of data source 28 | */ 29 | - (instancetype) initWithQuery:(NSString *)query; 30 | 31 | /** 32 | * init with search query and labels 33 | * 34 | * @param query NSString search query to be sent to Help Center instance 35 | * @param labels NSArray of Strings, used to filter search query with additional labels 36 | * 37 | * @return instance of data source 38 | */ 39 | - (instancetype) initWithQuery:(NSString *)query andLabels:(NSArray *)labels; 40 | 41 | /** 42 | * init with a search base 43 | * 44 | * @param search ZDKHelpCenterSearch which contains the query and confining category or section 45 | * 46 | * @return instance of data source 47 | * 48 | * @since 1.5.4.1 49 | */ 50 | 51 | - (instancetype) initWithSearch:(ZDKHelpCenterSearch *)search; 52 | 53 | 54 | @end 55 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK/ZDKHelpCenterSectionsDataSource.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKHelpCenterSectionsDataSource.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 06/11/2014. 7 | * 8 | * Copyright (c) 2014 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Terms 11 | * of Service https://www.zendesk.com/company/terms and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/application-developer-and-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | #import "ZDKHelpCenterDataSource.h" 18 | 19 | @interface ZDKHelpCenterSectionsDataSource : ZDKHelpCenterDataSource 20 | 21 | /** 22 | * Initializes a data source with a categoryId to be used to fetch the sections for the provided categoryId. 23 | * @param categoryId The categoryId passed from selecting a category 24 | */ 25 | 26 | - (instancetype) initWithCategoryId:(NSString *)categoryId ; 27 | 28 | @end 29 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK/ZDKHelpCenterTableDelegate.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKHelpCenterTableDelegate.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 15/09/2014. 7 | * 8 | * Copyright (c) 2014 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Terms 11 | * of Service https://www.zendesk.com/company/terms and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/application-developer-and-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | #import 18 | 19 | @interface ZDKHelpCenterTableDelegate : NSObject 20 | 21 | 22 | /** 23 | * Block touches when there is no network connectivity. 24 | */ 25 | @property (nonatomic, assign, readonly) BOOL blockTouches; 26 | 27 | @end 28 | 29 | 30 | @interface ZDKHelpCenterSearchResultTableDelegate : ZDKHelpCenterTableDelegate 31 | 32 | @end 33 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK/ZDKImageViewerViewController.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKImageViewerViewController.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 2/11/15. 7 | * 8 | * Copyright (c) 2015 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Terms 11 | * of Service https://www.zendesk.com/company/terms and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/application-developer-and-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | #import 18 | #import "ZDKUIViewController.h" 19 | #import "ZDKRotationForwarding.h" 20 | 21 | @interface ZDKImageViewerViewController : ZDKUIViewController 22 | 23 | @property (nonatomic, assign) id rotationEventDelegate; 24 | 25 | - (instancetype) initWithImage:(UIImage*)image; 26 | 27 | - (void) dismiss; 28 | 29 | 30 | @end 31 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK/ZDKRequestCommentAttachmentLoadingTableCell.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKRequestCommentAttachmentLoadingTableCell.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 26/01/2015. 7 | * 8 | * Copyright (c) 2015 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Terms 11 | * of Service https://www.zendesk.com/company/terms and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/application-developer-and-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | #import "ZDKRequestCommentTableCell.h" 18 | 19 | @interface ZDKRequestCommentAttachmentLoadingTableCell : ZDKRequestCommentTableCell 20 | 21 | 22 | + (CGFloat) cellHeightForCommentWithAttachment:(CGFloat) width; 23 | 24 | @end 25 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK/ZDKRequestCommentAttachmentTableCell.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKRequestCommentAttachmentTableCell.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 22/01/2015. 7 | * 8 | * Copyright (c) 2015 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Terms 11 | * of Service https://www.zendesk.com/company/terms and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/application-developer-and-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | #import "ZDKRequestCommentTableCell.h" 18 | 19 | 20 | @interface ZDKRequestCommentAttachmentTableCell : ZDKRequestCommentTableCell 21 | 22 | 23 | /** 24 | * Sets up this cell with the UIImage parameter. 25 | * 26 | * @param attachment a UIImage that will be displayed in the cell. 27 | * @param constraint A max width for the image. This is used to resize the image to save memory. 28 | * 29 | * @since 1.4.0.1 30 | */ 31 | - (void) prepareWithImage:(UIImage *)attachment andWidthConstraint:(CGFloat)constraint; 32 | 33 | /** 34 | * Sets up this cell with the UIImage parameter. 35 | * 36 | * @param attachment a UIImage that will be displayed in the cell. 37 | */ 38 | - (void) prepareWithImage:(UIImage *)attachment __deprecated_msg(" As of version 1.4.0.1"); 39 | 40 | 41 | /** 42 | * Get the total amount of virticle padding for content in this cell. 43 | * 44 | * @return a CGFloat value for the padding in this cell. 45 | */ 46 | + (CGFloat) virticlePadding; 47 | 48 | 49 | @end 50 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK/ZDKRequestListViewController.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKRequestListViewController.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 15/10/2014. 7 | * 8 | * Copyright (c) 2014 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Terms 11 | * of Service https://www.zendesk.com/company/terms and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/application-developer-and-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | #import "ZDKUIViewController.h" 18 | 19 | @class ZDKRequestListTable; 20 | 21 | @protocol ZDKCreateRequestUIDelegate; 22 | 23 | @interface ZDKRequestListViewController : ZDKUIViewController 24 | 25 | /** 26 | * Scroll view that contains the ZDKRequestListTable. 27 | */ 28 | @property (nonatomic, strong) UIScrollView *requestListContainer; 29 | 30 | /** 31 | * A table that displays open requests. 32 | */ 33 | @property (nonatomic, strong) ZDKRequestListTable *requestList; 34 | 35 | /** 36 | * Delegate for nav ban button UI. 37 | */ 38 | @property (nonatomic, weak) id delegate; 39 | 40 | 41 | /** 42 | * Dismiss modally presented controller. 43 | * 44 | * @since 1.5.4.1 45 | */ 46 | - (void) dismiss; 47 | 48 | @end 49 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK/ZDKRotationForwarding.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKRotationForwarding.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 3/30/16. 7 | * 8 | * Copyright © 2016 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Terms 11 | * of Service https://www.zendesk.com/company/terms and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/application-developer-and-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | @protocol ZDKRotationForwarding 18 | 19 | - (void)orientationWillChange:(UIInterfaceOrientation)toInterfaceOrientation; 20 | 21 | @end 22 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK/ZDKSpinnerDelegate.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKSpinnerDelegate.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 30/04/2014. 7 | * 8 | * Copyright (c) 2014 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Terms 11 | * of Service https://www.zendesk.com/company/terms and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/application-developer-and-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | 18 | #import 19 | 20 | 21 | /** 22 | * Spinner control delegate. 23 | */ 24 | @protocol ZDKSpinnerDelegate 25 | 26 | 27 | /** 28 | * Frame of spinner. 29 | */ 30 | @property (nonatomic, assign) CGRect frame; 31 | 32 | 33 | /** 34 | * Is the spinner hidden? YES or NO. 35 | */ 36 | @property (nonatomic, assign, getter=isHidden) BOOL hidden; 37 | 38 | 39 | /** 40 | * The center of the view. 41 | */ 42 | @property (nonatomic, assign) CGPoint center; 43 | 44 | 45 | /** 46 | * Start the spinner animating. 47 | */ 48 | - (void) startAnimating; 49 | 50 | 51 | /** 52 | * Stop the spinner animating. 53 | */ 54 | - (void) stopAnimating; 55 | 56 | 57 | @end 58 | 59 | 60 | /** 61 | * Spinner creation block. 62 | * @param frame rect for the spinner 63 | */ 64 | typedef id (^ZDUISpinner) (CGRect frame); 65 | 66 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK/ZDKSupportAttachmentCell.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKHelpCenterAttachmentCell.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 30/09/2014. 7 | * 8 | * Copyright (c) 2014 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Terms 11 | * of Service https://www.zendesk.com/company/terms and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/application-developer-and-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | #import 18 | 19 | @interface ZDKSupportAttachmentCell : UITableViewCell 20 | 21 | #pragma mark - Properties 22 | 23 | /** 24 | * A label which displays the articles parent category and section. 25 | * 26 | */ 27 | @property (nonatomic, strong, readonly) UILabel *fileSize; 28 | 29 | /** 30 | * A label which displays the articles title. 31 | * 32 | */ 33 | @property (nonatomic, strong, readonly) UILabel *title; 34 | 35 | #pragma mark - Methods 36 | 37 | /** 38 | * Helper method to retrieve this classes cell identifier. 39 | * 40 | * @returns The classes cell identifier. 41 | */ 42 | + (NSString *) cellIdentifier; 43 | 44 | 45 | 46 | @end 47 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK/ZDKUIActivityView.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKUIActivityView.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 01/05/2014. 7 | * 8 | * Copyright (c) 2014 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Terms 11 | * of Service https://www.zendesk.com/company/terms and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/application-developer-and-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | 18 | #import 19 | #import "ZDKSpinnerDelegate.h" 20 | 21 | 22 | @interface ZDKUIActivityView : UIImageView 23 | 24 | 25 | @end 26 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK/ZDKUIImageScrollView.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKUIImageScrollView.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 2/12/15. 7 | * 8 | * Copyright (c) 2015 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Terms 11 | * of Service https://www.zendesk.com/company/terms and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/application-developer-and-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | #import 18 | 19 | @interface ZDKUIImageScrollView : UIScrollView 20 | 21 | @property (nonatomic, strong) UIImageView *imageView; 22 | 23 | - (instancetype) initWithImage:(UIImage*)image; 24 | 25 | @end 26 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK/ZDKUILoadingView.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKUILoadingView.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 22/01/2015. 7 | * 8 | * Copyright (c) 2015 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Terms 11 | * of Service https://www.zendesk.com/company/terms and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/application-developer-and-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | @interface ZDKUILoadingView : UIView 18 | 19 | 20 | /** 21 | * Loading indicator. 22 | */ 23 | @property (nonatomic, strong, readonly) UIActivityIndicatorView *spinner; 24 | 25 | 26 | @end 27 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK/ZDKUITextView.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKUITextView.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 28/04/2014. 7 | * 8 | * Copyright (c) 2014 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Terms 11 | * of Service https://www.zendesk.com/company/terms and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/application-developer-and-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | 18 | #import 19 | #import "ZDKUITextViewDelegate.h" 20 | 21 | 22 | /** 23 | * A UITextView with a placeholder that is shown when there is no text in the text 24 | * view. Retains all the functionality of a normal UITextView. Setting the font 25 | * on the text view sets the font on the placeholder. The placeholder text color 26 | * is set with the placeholderTextColor property. 27 | */ 28 | @interface ZDKUITextView : UITextView 29 | 30 | 31 | /** 32 | * The placeholder text that is shown when there is no text in the text view. 33 | */ 34 | @property (nonatomic, retain) NSString *placeholderText; 35 | 36 | 37 | /** 38 | * The color of the placeholder that is shown when there is no text in the text view. 39 | */ 40 | @property (nonatomic, retain) UIColor *placeholderTextColor; 41 | 42 | 43 | /** 44 | * Fix for iOS 7 text view bugs. Scrolls the text view to the caret. 45 | * @param animated If YES, view animates caret to visible. If NO, view scrolls caret to visible with no animation. 46 | */ 47 | - (void) scrollToVisibleCaretAnimated:(BOOL)animated; 48 | 49 | 50 | /** 51 | * Init method for ZDKRMATextView. 52 | * 53 | * @param frame The frame for the text view 54 | * @param placeholderText The text for the placeholder 55 | * @return An initialized ZDKRMATextView object or nil if the object couldn't be created. 56 | * 57 | */ 58 | - (instancetype) initWithFrame:(CGRect)frame andPlaceholder:(NSString*)placeholderText; 59 | 60 | 61 | @end 62 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDK/ZDKUITextViewDelegate.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * ZDKUITextViewDelegate.h 4 | * ZendeskSDK 5 | * 6 | * Created by Zendesk on 09/05/2014. 7 | * 8 | * Copyright (c) 2014 Zendesk. All rights reserved. 9 | * 10 | * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Terms 11 | * of Service https://www.zendesk.com/company/terms and Application Developer and API License 12 | * Agreement https://www.zendesk.com/company/application-developer-and-api-license-agreement and 13 | * acknowledge that such terms govern Your use of and access to the Mobile SDK. 14 | * 15 | */ 16 | 17 | #import 18 | @class ZDKUITextView; 19 | 20 | @protocol ZDKUITextViewDelegate 21 | 22 | - (void) caretPosition:(CGRect)caret; 23 | 24 | @optional 25 | - (void) updateTextViewLayout:(ZDKUITextView*)textView; 26 | 27 | @end 28 | -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDKStrings.bundle/Info.plist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zendesk/sdk_unity_plugin/12e6afef14c29dddef5de08035a5a0b27c0803d9/ios-plugin/src/ZendeskSDKStrings.bundle/Info.plist -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDKStrings.bundle/da.lproj/Localizable.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zendesk/sdk_unity_plugin/12e6afef14c29dddef5de08035a5a0b27c0803d9/ios-plugin/src/ZendeskSDKStrings.bundle/da.lproj/Localizable.strings -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDKStrings.bundle/de.lproj/Localizable.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zendesk/sdk_unity_plugin/12e6afef14c29dddef5de08035a5a0b27c0803d9/ios-plugin/src/ZendeskSDKStrings.bundle/de.lproj/Localizable.strings -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDKStrings.bundle/en-GB.lproj/Localizable.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zendesk/sdk_unity_plugin/12e6afef14c29dddef5de08035a5a0b27c0803d9/ios-plugin/src/ZendeskSDKStrings.bundle/en-GB.lproj/Localizable.strings -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDKStrings.bundle/en.lproj/Localizable.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zendesk/sdk_unity_plugin/12e6afef14c29dddef5de08035a5a0b27c0803d9/ios-plugin/src/ZendeskSDKStrings.bundle/en.lproj/Localizable.strings -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDKStrings.bundle/es.lproj/Localizable.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zendesk/sdk_unity_plugin/12e6afef14c29dddef5de08035a5a0b27c0803d9/ios-plugin/src/ZendeskSDKStrings.bundle/es.lproj/Localizable.strings -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDKStrings.bundle/fi.lproj/Localizable.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zendesk/sdk_unity_plugin/12e6afef14c29dddef5de08035a5a0b27c0803d9/ios-plugin/src/ZendeskSDKStrings.bundle/fi.lproj/Localizable.strings -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDKStrings.bundle/fr.lproj/Localizable.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zendesk/sdk_unity_plugin/12e6afef14c29dddef5de08035a5a0b27c0803d9/ios-plugin/src/ZendeskSDKStrings.bundle/fr.lproj/Localizable.strings -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDKStrings.bundle/it.lproj/Localizable.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zendesk/sdk_unity_plugin/12e6afef14c29dddef5de08035a5a0b27c0803d9/ios-plugin/src/ZendeskSDKStrings.bundle/it.lproj/Localizable.strings -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDKStrings.bundle/ja.lproj/Localizable.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zendesk/sdk_unity_plugin/12e6afef14c29dddef5de08035a5a0b27c0803d9/ios-plugin/src/ZendeskSDKStrings.bundle/ja.lproj/Localizable.strings -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDKStrings.bundle/ko.lproj/Localizable.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zendesk/sdk_unity_plugin/12e6afef14c29dddef5de08035a5a0b27c0803d9/ios-plugin/src/ZendeskSDKStrings.bundle/ko.lproj/Localizable.strings -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDKStrings.bundle/nb.lproj/Localizable.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zendesk/sdk_unity_plugin/12e6afef14c29dddef5de08035a5a0b27c0803d9/ios-plugin/src/ZendeskSDKStrings.bundle/nb.lproj/Localizable.strings -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDKStrings.bundle/nl.lproj/Localizable.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zendesk/sdk_unity_plugin/12e6afef14c29dddef5de08035a5a0b27c0803d9/ios-plugin/src/ZendeskSDKStrings.bundle/nl.lproj/Localizable.strings -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDKStrings.bundle/pl.lproj/Localizable.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zendesk/sdk_unity_plugin/12e6afef14c29dddef5de08035a5a0b27c0803d9/ios-plugin/src/ZendeskSDKStrings.bundle/pl.lproj/Localizable.strings -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDKStrings.bundle/pt.lproj/Localizable.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zendesk/sdk_unity_plugin/12e6afef14c29dddef5de08035a5a0b27c0803d9/ios-plugin/src/ZendeskSDKStrings.bundle/pt.lproj/Localizable.strings -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDKStrings.bundle/ru.lproj/Localizable.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zendesk/sdk_unity_plugin/12e6afef14c29dddef5de08035a5a0b27c0803d9/ios-plugin/src/ZendeskSDKStrings.bundle/ru.lproj/Localizable.strings -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDKStrings.bundle/sv.lproj/Localizable.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zendesk/sdk_unity_plugin/12e6afef14c29dddef5de08035a5a0b27c0803d9/ios-plugin/src/ZendeskSDKStrings.bundle/sv.lproj/Localizable.strings -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDKStrings.bundle/tr.lproj/Localizable.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zendesk/sdk_unity_plugin/12e6afef14c29dddef5de08035a5a0b27c0803d9/ios-plugin/src/ZendeskSDKStrings.bundle/tr.lproj/Localizable.strings -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDKStrings.bundle/zh-Hans.lproj/Localizable.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zendesk/sdk_unity_plugin/12e6afef14c29dddef5de08035a5a0b27c0803d9/ios-plugin/src/ZendeskSDKStrings.bundle/zh-Hans.lproj/Localizable.strings -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskSDKStrings.bundle/zh-Hant.lproj/Localizable.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zendesk/sdk_unity_plugin/12e6afef14c29dddef5de08035a5a0b27c0803d9/ios-plugin/src/ZendeskSDKStrings.bundle/zh-Hant.lproj/Localizable.strings -------------------------------------------------------------------------------- /ios-plugin/src/ZendeskStringUtils.m: -------------------------------------------------------------------------------- 1 | // 2 | // ZendeskStringUtils.m 3 | // ZEN 4 | // 5 | 6 | #import "ZendeskCore.h" 7 | 8 | #pragma mark - ZDKStringUtil 9 | 10 | char* _zendeskCsvStringFromArray(char *charArray[], int length) { 11 | NSMutableArray * newStrings = @[].mutableCopy; 12 | for (int i = 0; i < length; i++) { 13 | [newStrings addObject:GetStringParam(charArray[i])]; 14 | } 15 | return ZDKMakeStringCopy([ZDKStringUtil csvStringFromArray:[newStrings copy]].UTF8String); 16 | } 17 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':android-plugin', ':ios-plugin' 2 | -------------------------------------------------------------------------------- /unity-src/scripts/ZDKAvatarProvider.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System; 3 | using System.Collections; 4 | using System.Runtime.InteropServices; 5 | 6 | namespace ZendeskSDK { 7 | 8 | public class ZDKAvatarProvider : ZDKBaseComponent { 9 | 10 | private static ZDKAvatarProvider _instance; 11 | 12 | private static ZDKAvatarProvider instance() { 13 | if (_instance != null) 14 | return _instance; 15 | _instance = new ZDKAvatarProvider(); 16 | return _instance; 17 | } 18 | 19 | override protected string GetAndroidClass() { 20 | return null; // there is no Android avatar provider 21 | } 22 | override protected string GetIOsMethodPrefix() { 23 | return "_zendeskAvatarProvider"; 24 | } 25 | 26 | /// 27 | /// Get the image/avatar data for a given URL. 28 | /// iOS only (callback will not return on Android) 29 | /// 30 | /// String url of the image to be fetched. 31 | /// block callback executed on error or success states 32 | public static void GetAvatar(string avatarUrl, Action callback) { 33 | instance().CallIOS("getAvatar", callback, avatarUrl); 34 | } 35 | 36 | #if UNITY_IPHONE 37 | 38 | [DllImport("__Internal")] 39 | private static extern void _zendeskAvatarProviderGetAvatar(string gameObjectName, string callbackId, string avatarUrl); 40 | 41 | #endif 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /unity-src/scripts/ZDKError.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System; 3 | using System.Collections; 4 | using System.Runtime.InteropServices; 5 | 6 | namespace ZendeskSDK { 7 | 8 | /// 9 | /// Error response from a failed Zendesk provider callback request. 10 | /// 11 | public class ZDKError { 12 | 13 | private static string _logTag = "ZDKError"; 14 | 15 | public static void Log(string message) { 16 | if(Debug.isDebugBuild) 17 | Debug.Log(_logTag + "/" + message); 18 | } 19 | 20 | /// 21 | /// Description of the error if available. 22 | /// 23 | public string Description; 24 | 25 | /// 26 | /// Error code if available. 27 | /// 28 | public Int64 Code; 29 | 30 | public ZDKError() { 31 | 32 | } 33 | 34 | #if UNITY_EDITOR || (!UNITY_ANDROID && !UNITY_IPHONE) 35 | public ZDKError(Hashtable dict) { 36 | Log ("Unity : ZDKError init"); 37 | } 38 | 39 | #elif UNITY_IPHONE 40 | 41 | public ZDKError(Hashtable dict) { 42 | if (dict["localizedDescription"] != null) { 43 | Description = (string) dict["localizedDescription"]; 44 | } 45 | if (dict["code"] != null) { 46 | Code = (Int64) dict["code"]; 47 | } 48 | } 49 | 50 | #elif UNITY_ANDROID 51 | 52 | public ZDKError(Hashtable dict) { 53 | if(dict["reason"] != null){ 54 | Description = (string) dict["reason"]; 55 | } 56 | if(dict["status"] != null){ 57 | Code = (Int64) dict["status"]; 58 | } 59 | } 60 | 61 | #endif 62 | } 63 | } -------------------------------------------------------------------------------- /unity-src/scripts/ZDKHelpCenterDeflection.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System; 3 | using System.Collections; 4 | using System.Runtime.InteropServices; 5 | 6 | namespace ZendeskSDK { 7 | 8 | /// 9 | /// This class models a Help Center deflection query (returning suggested articles). 10 | /// 11 | public class ZDKHelpCenterDeflection { 12 | 13 | private static string _logTag = "ZDKHelpCenterDeflection"; 14 | 15 | public static void Log(string message) { 16 | if(Debug.isDebugBuild) 17 | Debug.Log(_logTag + "/" + message); 18 | } 19 | 20 | /// 21 | /// This models the free-form text query 22 | /// 23 | public string Query; 24 | 25 | /// 26 | /// This models the "label_names" parameter. This will be a comma-separated list of label names to restrict the search to. 27 | /// 28 | public string[] LabelNames; 29 | 30 | /// 31 | /// This models the "locale" parameter. This specifies that the search will be restricted to content with this locale. The locale 32 | /// is in the format of "ll-cc", e.g. "en-us". Locales in the form of "ll" are also permitted, e.g. "en". 33 | /// 34 | public string Locale; 35 | 36 | /// 37 | /// This models the "category" parameter. This specifies that the search will be restricted to content that is in the given 38 | /// category. 39 | /// 40 | public int CategoryId; 41 | 42 | /// 43 | /// This models the "section" parameter. This specifies that the search will be restricted to content that is in the given 44 | /// section. 45 | /// 46 | public int SectionId; 47 | 48 | public ZDKHelpCenterDeflection() { 49 | Query = null; 50 | LabelNames = null; 51 | Locale = null; 52 | CategoryId = -1; 53 | SectionId = -1; 54 | } 55 | } 56 | } -------------------------------------------------------------------------------- /unity-src/scripts/ZDKLogger.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System; 3 | using System.Collections; 4 | using System.Runtime.InteropServices; 5 | 6 | namespace ZendeskSDK { 7 | 8 | public enum LogLevel { 9 | Error, Warn, Info, Debug, Verbose 10 | } 11 | 12 | /// 13 | /// SDK Logger 14 | /// 15 | public class ZDKLogger : ZDKBaseComponent { 16 | 17 | private static ZDKLogger _instance; 18 | 19 | private static ZDKLogger instance() { 20 | if (_instance != null) 21 | return _instance; 22 | _instance = new ZDKLogger(); 23 | return _instance; 24 | } 25 | 26 | override protected string GetIOsMethodPrefix() { 27 | return "_zendeskLogger"; 28 | } 29 | 30 | /// 31 | /// Enable or disable debug logging output. iOS Only 32 | /// 33 | /// YES for debug logging 34 | public static void SetLogLevelIOS(LogLevel level) { 35 | instance().DoIOS("setLogLevel", (int) level); 36 | } 37 | 38 | /// 39 | /// Set logger enabled 40 | /// 41 | /// enable ZDKLogger wiht YES, disable with NO 42 | public static void Enable(bool enabled) { 43 | instance().Do("enableLogger", enabled); 44 | } 45 | 46 | #if UNITY_IPHONE 47 | 48 | [DllImport("__Internal")] 49 | private static extern void _zendeskLoggerEnableLogger(bool enabled); 50 | 51 | [DllImport("__Internal")] 52 | private static extern void _zendeskLoggerSetLogLevel(int level); 53 | 54 | #endif 55 | } 56 | } -------------------------------------------------------------------------------- /unity-src/scripts/ZDKStringUtil.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System; 3 | using System.Collections; 4 | using System.Runtime.InteropServices; 5 | 6 | namespace ZendeskSDK { 7 | 8 | public class ZDKStringUtil : ZDKBaseComponent { 9 | 10 | private static ZDKStringUtil _instance; 11 | 12 | private static ZDKStringUtil instance() { 13 | if (_instance != null) 14 | return _instance; 15 | _instance = new ZDKStringUtil(); 16 | return _instance; 17 | } 18 | 19 | /// 20 | /// This method converts an array of strings into a comma separated string of the array's items. 21 | /// For example an array with 22 | /// three items, "one", "two" and "three" will be converted into the string "one,two,three". 23 | /// 24 | /// An array of Strings to convert into a comma-separated string 25 | /// A comma separated string of the items in the array or an empty string if there were none. 26 | public static string CsvStringFromArray(string[] strings) { 27 | if (strings == null) 28 | return ""; 29 | return instance().Get("csvStringFromArray", strings, strings.Length); 30 | } 31 | 32 | #if UNITY_IPHONE 33 | 34 | [DllImport("__Internal")] 35 | private static extern string _zendeskCsvStringFromArray(string[] charArray, int length); 36 | 37 | #endif 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /unity-src/scripts/ZenColor.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System; 3 | using System.Collections; 4 | using System.Runtime.InteropServices; 5 | 6 | namespace ZendeskSDK { 7 | 8 | /// 9 | /// Color specification for ZenAppearance properties. 10 | /// Similar to NSColor for iOS. 11 | /// 12 | public class ZenColor { 13 | 14 | public float Red; 15 | public float Green; 16 | public float Blue; 17 | public float Alpha; 18 | 19 | public ZenColor(float red, float green, float blue) : this(red, green, blue, 1.0f) {} 20 | 21 | public ZenColor(float red, float green, float blue, float alpha) { 22 | Red = red; 23 | Green = green; 24 | Blue = blue; 25 | Alpha = alpha; 26 | } 27 | } 28 | } --------------------------------------------------------------------------------