com.slack.api.model.dialog.Dialogs Maven / Gradle / Ivy
package com.slack.api.model.dialog;
import com.slack.api.model.ModelConfigurator;
import java.util.Arrays;
import java.util.List;
public class Dialogs {
private Dialogs() {
}
public static List asElements(DialogElement... elements) {
return Arrays.asList(elements);
}
public static List asOptions(DialogOption... options) {
return Arrays.asList(options);
}
public static Dialog dialog(ModelConfigurator configurator) {
return configurator.configure(Dialog.builder()).build();
}
public static DialogOption dialogOption(ModelConfigurator configurator) {
return configurator.configure(DialogOption.builder()).build();
}
public static DialogSelectElement dialogSelect(ModelConfigurator configurator) {
return configurator.configure(DialogSelectElement.builder()).build();
}
public static DialogTextElement dialogText(ModelConfigurator configurator) {
return configurator.configure(DialogTextElement.builder()).build();
}
public static DialogTextAreaElement dialogTextArea(ModelConfigurator configurator) {
return configurator.configure(DialogTextAreaElement.builder()).build();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy