Package com.zendesk.sdk.model.settings
Class SafeMobileSettings
- java.lang.Object
- 
- com.zendesk.sdk.model.settings.SafeMobileSettings
 
- 
 
 public class SafeMobileSettings extends java.lang.ObjectWrapsMobileSettingsand 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 SummaryConstructors Constructor and Description SafeMobileSettings(MobileSettings mobileSettings)Creates an instance of SafeMobileSettings
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method and Description AuthenticationTypegetAuthenticationType()Gets the authentication type.java.util.List<java.lang.String>getContactZendeskTags()Gets the tags to use for theContactZendeskcomponents.java.lang.StringgetHelpCenterLocale()Gets the default locale of the help centerHelpCenterSettingsgetHelpCenterSettings()Gets the help center settingslonggetMaxAttachmentSize()Gets the maximum attachment size allowed in bytesMobileSettingsgetMobileSettings()Gets the rawMobileSettingsobject.booleanhasHelpCenterSettings()Checks if we have Help Center settings or not.booleanisAttachmentsEnabled()Checks if attachments are enabled or notbooleanisConversationsEnabled()Checks if conversations are enabled or notbooleanisHelpCenterEnabled()Checks if help center is enabled or not.booleanisPathfinderEnabled()Gets if blips are enabled for Pathfinder or not.booleanisTicketFormSupportAvailable()Gets if TicketForm support is available, or not.
 
- 
- 
- 
Constructor Detail- 
SafeMobileSettingspublic SafeMobileSettings(MobileSettings mobileSettings) Creates an instance of SafeMobileSettings- Parameters:
- mobileSettings- The mobile settings to wrap
 
 
- 
 - 
Method Detail- 
getMobileSettingspublic MobileSettings getMobileSettings() Gets the rawMobileSettingsobject.- Returns:
- The raw MobileSettingsobject.
 
 - 
isConversationsEnabledpublic 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
 
 - 
isAttachmentsEnabledpublic 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
 
 - 
getMaxAttachmentSizepublic 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
 
 - 
hasHelpCenterSettingspublic boolean hasHelpCenterSettings() Checks if we have Help Center settings or not.- Returns:
- true if we have a non-null HelpCenterSettings, false if not.
 
 - 
isHelpCenterEnabledpublic 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
 
 - 
getHelpCenterLocalepublic 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
 
 - 
getAuthenticationTypepublic AuthenticationType getAuthenticationType() Gets the authentication type.- Returns:
- The authentication type, or null if we don't have one.
 
 - 
getHelpCenterSettingspublic HelpCenterSettings getHelpCenterSettings() Gets the help center settingsmobileSettings.getSdkSettings()is NonNull but let's check it anyway, in case that is changed.- Returns:
- the HelpCenterSettings if we have them, null otherwise
 
 - 
getContactZendeskTagspublic java.util.List<java.lang.String> getContactZendeskTags() Gets the tags to use for theContactZendeskcomponents.
 - 
isTicketFormSupportAvailablepublic boolean isTicketFormSupportAvailable() Gets if TicketForm support is available, or not.- Returns:
- trueif TicketForm support is available,- falseif not.
 
 - 
isPathfinderEnabledpublic boolean isPathfinderEnabled() Gets if blips are enabled for Pathfinder or not.- Returns:
- trueif Pathfinder support is enabled, or- falseif not.
 
 
- 
 
-