Class AppSettings
- java.lang.Object
-
- com.zendesk.sunshine_conversations_client.model.AppSettings
-
public class AppSettings extends java.lang.ObjectCustomizable app settings.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringJSON_PROPERTY_APP_LOCALIZATION_ENABLEDstatic java.lang.StringJSON_PROPERTY_CONVERSATION_RETENTION_SECONDSstatic java.lang.StringJSON_PROPERTY_ECHO_POSTBACKstatic java.lang.StringJSON_PROPERTY_IGNORE_AUTO_CONVERSATION_STARTstatic java.lang.StringJSON_PROPERTY_MASK_CREDIT_CARD_NUMBERSstatic java.lang.StringJSON_PROPERTY_MULTI_CONVO_ENABLEDstatic java.lang.StringJSON_PROPERTY_USE_ANIMAL_NAMES
-
Constructor Summary
Constructors Constructor Description AppSettings()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AppSettingsappLocalizationEnabled(java.lang.Boolean appLocalizationEnabled)AppSettingsconversationRetentionSeconds(java.lang.Integer conversationRetentionSeconds)AppSettingsechoPostback(java.lang.Boolean echoPostback)booleanequals(java.lang.Object o)java.lang.BooleangetAppLocalizationEnabled()A boolean specifying whether the messages authored by the Sunshine Conversations platform should be localized.java.lang.IntegergetConversationRetentionSeconds()Number of seconds of inactivity before a conversation’s messages will be automatically deleted.java.lang.BooleangetEchoPostback()A boolean specifying whether a message should be added to the conversation history when a postback button is clicked.java.lang.BooleangetIgnoreAutoConversationStart()A boolean specifying whether a non message event coming from a channel will trigger a [start conversation](https://docs.smooch.io/rest/#section/Webhook-Triggers) event and count as a monthly active user (MAU).java.lang.BooleangetMaskCreditCardNumbers()A boolean specifying whether credit card numbers should be masked when sent through Sunshine Conversations.java.lang.BooleangetMultiConvoEnabled()A boolean specifying whether users are allowed to be part of several conversations.java.lang.BooleangetUseAnimalNames()A boolean specifying whether animal names should be used for unnamed users.inthashCode()AppSettingsignoreAutoConversationStart(java.lang.Boolean ignoreAutoConversationStart)AppSettingsmaskCreditCardNumbers(java.lang.Boolean maskCreditCardNumbers)AppSettingsmultiConvoEnabled(java.lang.Boolean multiConvoEnabled)voidsetAppLocalizationEnabled(java.lang.Boolean appLocalizationEnabled)voidsetConversationRetentionSeconds(java.lang.Integer conversationRetentionSeconds)voidsetEchoPostback(java.lang.Boolean echoPostback)voidsetIgnoreAutoConversationStart(java.lang.Boolean ignoreAutoConversationStart)voidsetMaskCreditCardNumbers(java.lang.Boolean maskCreditCardNumbers)voidsetMultiConvoEnabled(java.lang.Boolean multiConvoEnabled)voidsetUseAnimalNames(java.lang.Boolean useAnimalNames)java.lang.StringtoString()AppSettingsuseAnimalNames(java.lang.Boolean useAnimalNames)
-
-
-
Field Detail
-
JSON_PROPERTY_CONVERSATION_RETENTION_SECONDS
public static final java.lang.String JSON_PROPERTY_CONVERSATION_RETENTION_SECONDS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_MASK_CREDIT_CARD_NUMBERS
public static final java.lang.String JSON_PROPERTY_MASK_CREDIT_CARD_NUMBERS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_USE_ANIMAL_NAMES
public static final java.lang.String JSON_PROPERTY_USE_ANIMAL_NAMES
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ECHO_POSTBACK
public static final java.lang.String JSON_PROPERTY_ECHO_POSTBACK
- See Also:
- Constant Field Values
-
JSON_PROPERTY_IGNORE_AUTO_CONVERSATION_START
public static final java.lang.String JSON_PROPERTY_IGNORE_AUTO_CONVERSATION_START
- See Also:
- Constant Field Values
-
JSON_PROPERTY_MULTI_CONVO_ENABLED
public static final java.lang.String JSON_PROPERTY_MULTI_CONVO_ENABLED
- See Also:
- Constant Field Values
-
JSON_PROPERTY_APP_LOCALIZATION_ENABLED
public static final java.lang.String JSON_PROPERTY_APP_LOCALIZATION_ENABLED
- See Also:
- Constant Field Values
-
-
Method Detail
-
conversationRetentionSeconds
public AppSettings conversationRetentionSeconds(java.lang.Integer conversationRetentionSeconds)
-
getConversationRetentionSeconds
@Nullable public java.lang.Integer getConversationRetentionSeconds()
Number of seconds of inactivity before a conversation’s messages will be automatically deleted. See [Conversation Retention Seconds](https://docs.smooch.io/guide/creating-and-managing-apps/#conversation-retention-seconds) for more information. minimum: 0- Returns:
- conversationRetentionSeconds
-
setConversationRetentionSeconds
public void setConversationRetentionSeconds(java.lang.Integer conversationRetentionSeconds)
-
maskCreditCardNumbers
public AppSettings maskCreditCardNumbers(java.lang.Boolean maskCreditCardNumbers)
-
getMaskCreditCardNumbers
@Nullable public java.lang.Boolean getMaskCreditCardNumbers()
A boolean specifying whether credit card numbers should be masked when sent through Sunshine Conversations.- Returns:
- maskCreditCardNumbers
-
setMaskCreditCardNumbers
public void setMaskCreditCardNumbers(java.lang.Boolean maskCreditCardNumbers)
-
useAnimalNames
public AppSettings useAnimalNames(java.lang.Boolean useAnimalNames)
-
getUseAnimalNames
@Nullable public java.lang.Boolean getUseAnimalNames()
A boolean specifying whether animal names should be used for unnamed users. See the [user naming guide](https://docs.smooch.io/guide/receiving-messages/#message-author-name) for details.- Returns:
- useAnimalNames
-
setUseAnimalNames
public void setUseAnimalNames(java.lang.Boolean useAnimalNames)
-
echoPostback
public AppSettings echoPostback(java.lang.Boolean echoPostback)
-
getEchoPostback
@Nullable public java.lang.Boolean getEchoPostback()
A boolean specifying whether a message should be added to the conversation history when a postback button is clicked. See [Echo Postbacks](https://docs.smooch.io/guide/creating-and-managing-apps/#echo-postbacks) for more information.- Returns:
- echoPostback
-
setEchoPostback
public void setEchoPostback(java.lang.Boolean echoPostback)
-
ignoreAutoConversationStart
public AppSettings ignoreAutoConversationStart(java.lang.Boolean ignoreAutoConversationStart)
-
getIgnoreAutoConversationStart
@Nullable public java.lang.Boolean getIgnoreAutoConversationStart()
A boolean specifying whether a non message event coming from a channel will trigger a [start conversation](https://docs.smooch.io/rest/#section/Webhook-Triggers) event and count as a monthly active user (MAU). <aside class=\"notice\">Calling <code>startConversation()</code> (or equivalent) from the Android, iOS or Web SDK will count as a MAU, regardless of the value of this setting.</aside>- Returns:
- ignoreAutoConversationStart
-
setIgnoreAutoConversationStart
public void setIgnoreAutoConversationStart(java.lang.Boolean ignoreAutoConversationStart)
-
multiConvoEnabled
public AppSettings multiConvoEnabled(java.lang.Boolean multiConvoEnabled)
-
getMultiConvoEnabled
@Nullable public java.lang.Boolean getMultiConvoEnabled()
A boolean specifying whether users are allowed to be part of several conversations. Enabling `multiConvo` is **irreversible**.- Returns:
- multiConvoEnabled
-
setMultiConvoEnabled
public void setMultiConvoEnabled(java.lang.Boolean multiConvoEnabled)
-
appLocalizationEnabled
public AppSettings appLocalizationEnabled(java.lang.Boolean appLocalizationEnabled)
-
getAppLocalizationEnabled
@Nullable public java.lang.Boolean getAppLocalizationEnabled()
A boolean specifying whether the messages authored by the Sunshine Conversations platform should be localized.- Returns:
- appLocalizationEnabled
-
setAppLocalizationEnabled
public void setAppLocalizationEnabled(java.lang.Boolean appLocalizationEnabled)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-