![JAR search and dependency download from the Maven repository](/logo.png)
io.smooch.v2.client.model.AppSettings Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of api Show documentation
Show all versions of api Show documentation
io.smooch - api - 5.29.0
/*
* Sunshine Conversations API
* # # Introduction Welcome to the Sunshine Conversations API. The API allows you to craft entirely unique messaging experiences for your app and website as well as talk to any backend or external service. The Sunshine Conversations API is designed according to REST principles. The API accepts JSON in request bodies and requires that the content-type: application/json header be specified for all such requests. The API will always respond with an object. Depending on context, resources may be returned as single objects or as arrays of objects, nested within the response object. In some cases, the API will also facilitate cross-origin resource sharing so that it can be called from a web application. ## API pagination and records limits Some APIs can be paginated by providing the `offset` query string parameter. The `offset` is the number of initial records to skip before picking records to return (default 0). The `limit` query string can also be provided to change the number of records to return (maximum 100, default 25). All paginated endpoints will eventually support cursor pagination and `offset` based pagination support will be dropped. ### Cursor Pagination Some APIs are paginated through cursor pagination. Rather than providing an `offset`, a `page[after]` or `page[before]` query string parameter may be provided. `page[after]` and `page[before]` are cursors pointing to a record id. The `page[after]` cursor indicates that only records **subsequent** to it should be returned. The `page[before]` cursor indicates that only records **preceding** it should be returned. **Only one** of `page[after]` or `page[before]` may be provided in a query, not both. In cursor pagination, the equivalent to the `limit` query string is the `page[size]` query string parameter. ## Regions Sunshine Conversations is available in the following regions. Each Sunshine Conversations region has its own API host. | Region | Host | | -------------- | -------------------------- | | United States | https://api.smooch.io | | European Union | https://api.eu-1.smooch.io | For more information on regions, visit [the guide](/guide/regions/).
*
* The version of the OpenAPI document: 6.0.0-alpha.2
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package io.smooch.v2.client.model;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* Customizable app settings.
*/
@ApiModel(description = "Customizable app settings.")
@JsonPropertyOrder({
AppSettings.JSON_PROPERTY_CONVERSATION_RETENTION_SECONDS,
AppSettings.JSON_PROPERTY_MASK_CREDIT_CARD_NUMBERS,
AppSettings.JSON_PROPERTY_USE_ANIMAL_NAMES,
AppSettings.JSON_PROPERTY_ECHO_POSTBACK,
AppSettings.JSON_PROPERTY_IGNORE_AUTO_CONVERSATION_START,
AppSettings.JSON_PROPERTY_MULTI_CONVO_ENABLED
})
public class AppSettings {
public static final String JSON_PROPERTY_CONVERSATION_RETENTION_SECONDS = "conversationRetentionSeconds";
private Integer conversationRetentionSeconds;
public static final String JSON_PROPERTY_MASK_CREDIT_CARD_NUMBERS = "maskCreditCardNumbers";
private Boolean maskCreditCardNumbers;
public static final String JSON_PROPERTY_USE_ANIMAL_NAMES = "useAnimalNames";
private Boolean useAnimalNames;
public static final String JSON_PROPERTY_ECHO_POSTBACK = "echoPostback";
private Boolean echoPostback;
public static final String JSON_PROPERTY_IGNORE_AUTO_CONVERSATION_START = "ignoreAutoConversationStart";
private Boolean ignoreAutoConversationStart;
public static final String JSON_PROPERTY_MULTI_CONVO_ENABLED = "multiConvoEnabled";
private Boolean multiConvoEnabled;
public AppSettings conversationRetentionSeconds(Integer conversationRetentionSeconds) {
this.conversationRetentionSeconds = conversationRetentionSeconds;
return this;
}
/**
* Number of seconds of inactivity before a conversation’s messages will be automatically deleted. See [Conversation Retention Seconds](https://docs.smooch.io/rest/#conversation-retention-seconds) for more information.
* @return conversationRetentionSeconds
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Number of seconds of inactivity before a conversation’s messages will be automatically deleted. See [Conversation Retention Seconds](https://docs.smooch.io/rest/#conversation-retention-seconds) for more information. ")
@JsonProperty(JSON_PROPERTY_CONVERSATION_RETENTION_SECONDS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getConversationRetentionSeconds() {
return conversationRetentionSeconds;
}
public void setConversationRetentionSeconds(Integer conversationRetentionSeconds) {
this.conversationRetentionSeconds = conversationRetentionSeconds;
}
public AppSettings maskCreditCardNumbers(Boolean maskCreditCardNumbers) {
this.maskCreditCardNumbers = maskCreditCardNumbers;
return this;
}
/**
* A boolean specifying whether credit card numbers should be masked when sent through Sunshine Conversations.
* @return maskCreditCardNumbers
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "A boolean specifying whether credit card numbers should be masked when sent through Sunshine Conversations. ")
@JsonProperty(JSON_PROPERTY_MASK_CREDIT_CARD_NUMBERS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getMaskCreditCardNumbers() {
return maskCreditCardNumbers;
}
public void setMaskCreditCardNumbers(Boolean maskCreditCardNumbers) {
this.maskCreditCardNumbers = maskCreditCardNumbers;
}
public AppSettings useAnimalNames(Boolean useAnimalNames) {
this.useAnimalNames = useAnimalNames;
return this;
}
/**
* 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.
* @return useAnimalNames
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "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. ")
@JsonProperty(JSON_PROPERTY_USE_ANIMAL_NAMES)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getUseAnimalNames() {
return useAnimalNames;
}
public void setUseAnimalNames(Boolean useAnimalNames) {
this.useAnimalNames = useAnimalNames;
}
public AppSettings echoPostback(Boolean echoPostback) {
this.echoPostback = echoPostback;
return this;
}
/**
* 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/rest/#echo-postbacks) for more information.
* @return echoPostback
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "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/rest/#echo-postbacks) for more information. ")
@JsonProperty(JSON_PROPERTY_ECHO_POSTBACK)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getEchoPostback() {
return echoPostback;
}
public void setEchoPostback(Boolean echoPostback) {
this.echoPostback = echoPostback;
}
public AppSettings ignoreAutoConversationStart(Boolean ignoreAutoConversationStart) {
this.ignoreAutoConversationStart = ignoreAutoConversationStart;
return this;
}
/**
* A boolean specifying whether a non message event coming from a channel will trigger a [start conversation](https://docs.smooch.io/rest/#conversation-events) event and count as an active user conversation (AUC). <aside class=\"notice\">Calling <code>startConversation()</code> (or equivalent) from the Android, iOS or Web SDK will count as an AUC, regardless of the value of this setting.</aside>
* @return ignoreAutoConversationStart
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "A boolean specifying whether a non message event coming from a channel will trigger a [start conversation](https://docs.smooch.io/rest/#conversation-events) event and count as an active user conversation (AUC). ")
@JsonProperty(JSON_PROPERTY_IGNORE_AUTO_CONVERSATION_START)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getIgnoreAutoConversationStart() {
return ignoreAutoConversationStart;
}
public void setIgnoreAutoConversationStart(Boolean ignoreAutoConversationStart) {
this.ignoreAutoConversationStart = ignoreAutoConversationStart;
}
public AppSettings multiConvoEnabled(Boolean multiConvoEnabled) {
this.multiConvoEnabled = multiConvoEnabled;
return this;
}
/**
* A boolean specifying whether users are allowed to be part of several conversations. Enabling `multiConvo` is **irreversible**.
* @return multiConvoEnabled
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "A boolean specifying whether users are allowed to be part of several conversations. Enabling `multiConvo` is **irreversible**. ")
@JsonProperty(JSON_PROPERTY_MULTI_CONVO_ENABLED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getMultiConvoEnabled() {
return multiConvoEnabled;
}
public void setMultiConvoEnabled(Boolean multiConvoEnabled) {
this.multiConvoEnabled = multiConvoEnabled;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
AppSettings appSettings = (AppSettings) o;
return Objects.equals(this.conversationRetentionSeconds, appSettings.conversationRetentionSeconds) &&
Objects.equals(this.maskCreditCardNumbers, appSettings.maskCreditCardNumbers) &&
Objects.equals(this.useAnimalNames, appSettings.useAnimalNames) &&
Objects.equals(this.echoPostback, appSettings.echoPostback) &&
Objects.equals(this.ignoreAutoConversationStart, appSettings.ignoreAutoConversationStart) &&
Objects.equals(this.multiConvoEnabled, appSettings.multiConvoEnabled);
}
@Override
public int hashCode() {
return Objects.hash(conversationRetentionSeconds, maskCreditCardNumbers, useAnimalNames, echoPostback, ignoreAutoConversationStart, multiConvoEnabled);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class AppSettings {\n");
sb.append(" conversationRetentionSeconds: ").append(toIndentedString(conversationRetentionSeconds)).append("\n");
sb.append(" maskCreditCardNumbers: ").append(toIndentedString(maskCreditCardNumbers)).append("\n");
sb.append(" useAnimalNames: ").append(toIndentedString(useAnimalNames)).append("\n");
sb.append(" echoPostback: ").append(toIndentedString(echoPostback)).append("\n");
sb.append(" ignoreAutoConversationStart: ").append(toIndentedString(ignoreAutoConversationStart)).append("\n");
sb.append(" multiConvoEnabled: ").append(toIndentedString(multiConvoEnabled)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy