Package zendesk.support
Class SupportSdkSettings
- java.lang.Object
-
- zendesk.support.SupportSdkSettings
-
public class SupportSdkSettings extends java.lang.Object
WrapsSupportSettings
and makes settings call null-safe.This class will generally default to false or 0 for return values if they don't exist.
Created by Zendesk on 28/07/15.
-
-
Constructor Summary
Constructors Constructor and Description SupportSdkSettings(zendesk.support.SupportSettings supportSettings, HelpCenterSettings helpCenterSettings, AuthenticationType authenticationType)
Creates an instance of SafeMobileSettings
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description AuthenticationType
getAuthenticationType()
java.util.List<java.lang.String>
getContactZendeskTags()
Gets the tags to use for theContactZendesk
components.java.lang.String
getHelpCenterLocale()
Gets the default locale of the help centerlong
getMaxAttachmentSize()
Gets the maximum attachment size allowed in bytesjava.lang.String
getReferrerUrl()
Gets the url that will be opened when referrer logo is clicked.java.lang.String
getRequestSystemMessage()
Gets the system message that will be shown after the first message was successfully sent.boolean
hasHelpCenterSettings()
Checks if we have Help Center settings or not.boolean
isAttachmentsEnabled()
Checks if attachments are enabled or notboolean
isConversationsEnabled()
Checks if conversations are enabled or notboolean
isHelpCenterArticleVotingEnabled()
Checks if help center voting is enabled or not.boolean
isHelpCenterEnabled()
Checks if help center is enabled or not.boolean
isNeverAskForEmailEnabled()
Checks if the SDK is allowed to ask the end-user for an email address if neededboolean
isShowClosedRequests()
Checks if the SDK is allowed to show closed requests in theRequestListView
.boolean
isShowReferrerLogoEnabled()
Checks if the SDK is allowed to display a referrer logo inside theRequestListView
andRequestViewConversationsDisabled
.boolean
isTicketFormSupportAvailable()
Gets if TicketForm support is available, or not.
-
-
-
Constructor Detail
-
SupportSdkSettings
public SupportSdkSettings(zendesk.support.SupportSettings supportSettings, HelpCenterSettings helpCenterSettings, AuthenticationType authenticationType)
Creates an instance of SafeMobileSettings- Parameters:
supportSettings
- The Support SDK settingshelpCenterSettings
- The Help Center SDK settingsauthenticationType
- The authentication type
-
-
Method Detail
-
isConversationsEnabled
public boolean isConversationsEnabled()
Checks if conversations are enabled or not- Returns:
- true only if conversations are enabled, false if they are not or the settings are missing
-
isAttachmentsEnabled
public boolean isAttachmentsEnabled()
Checks if attachments are enabled or not- Returns:
- true only if they are enabled, false if they are not or the settings are missing
-
getMaxAttachmentSize
public long getMaxAttachmentSize()
Gets the maximum attachment size allowed in bytes- Returns:
- The maximum attachment size allowed in bytes, or 0 if the settings are missing
-
hasHelpCenterSettings
public boolean hasHelpCenterSettings()
Checks if we have Help Center settings or not.- Returns:
- true if we have a non-null
HelpCenterSettings
, false if not.
-
isHelpCenterEnabled
public boolean isHelpCenterEnabled()
Checks if help center is enabled or not.- Returns:
- true only if help center is enabled, false if it is not or if the settings are missing
-
isHelpCenterArticleVotingEnabled
public boolean isHelpCenterArticleVotingEnabled()
Checks if help center voting is enabled or not.- Returns:
- true only if help center voting is enabled, false if it is not or if the settings are missing
-
getHelpCenterLocale
public java.lang.String getHelpCenterLocale()
Gets the default locale of the help center- Returns:
- the default locale of the help center, or the empty string if the settings are missing
-
getContactZendeskTags
public java.util.List<java.lang.String> getContactZendeskTags()
Gets the tags to use for theContactZendesk
components.
-
getAuthenticationType
public AuthenticationType getAuthenticationType()
-
isTicketFormSupportAvailable
public boolean isTicketFormSupportAvailable()
Gets if TicketForm support is available, or not.- Returns:
true
if TicketForm support is available,false
if not.
-
isNeverAskForEmailEnabled
public boolean isNeverAskForEmailEnabled()
Checks if the SDK is allowed to ask the end-user for an email address if needed- Returns:
true
if the SDK is not allowed to ask for an email address.
-
isShowClosedRequests
public boolean isShowClosedRequests()
Checks if the SDK is allowed to show closed requests in theRequestListView
.- Returns:
true
if the SDK should should display closed requests.
-
isShowReferrerLogoEnabled
public boolean isShowReferrerLogoEnabled()
Checks if the SDK is allowed to display a referrer logo inside theRequestListView
andRequestViewConversationsDisabled
.- Returns:
true
if the SDK should display a referrer logo.
-
getReferrerUrl
public java.lang.String getReferrerUrl()
Gets the url that will be opened when referrer logo is clicked.- Returns:
- the referrer url if we have it, empty
String
otherwise.
-
getRequestSystemMessage
public java.lang.String getRequestSystemMessage()
Gets the system message that will be shown after the first message was successfully sent.- Returns:
- the system message as a string
-
-