com.slack.api.model.dialog.Dialog Maven / Gradle / Ivy
package com.slack.api.model.dialog;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.List;
/**
* Represents a Slack Modal Dialog
*
* @see Slack Dialogs
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Dialog {
/**
* User-facing title of this entire dialog. 24 characters to work with and it's required.
*/
private String title;
/**
* An identifier strictly for you to recognize submissions of this particular instance of
* a dialog. Use something meaningful to your app. 255 characters maximum.
* Absolutely required.
*/
private String callbackId;
/**
* Up to 5 form elements are allowed per dialog. Required.
*/
private List elements;
/**
* User-facing string for whichever button-like thing submits the form, depending on
* form factor. Defaults to {@code Submit}, localized in whichever language the end user
* prefers. 24 characters maximum, and may contain only a single word.
*/
private String submitLabel;
/**
* Default is false. When set to true, we'll notify your request URL
* whenever there's a user-induced dialog cancellation.
*/
private boolean notifyOnCancel;
/**
* An optional string that will be echoed back to your app when a user interacts with your dialog.
* Use it as a pointer to reference sensitive data stored elsewhere.
*/
private String state;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy