com.slack.api.model.Attachments Maven / Gradle / Ivy
package com.slack.api.model;
import java.util.Arrays;
import java.util.List;
public class Attachments {
private Attachments() {
}
public static List asAttachments(Attachment... attachments) {
return Arrays.asList(attachments);
}
public static Attachment attachment(ModelConfigurator configurator) {
return configurator.configure(Attachment.builder()).build();
}
public static Attachment.AttachmentMetadata attachmentMetadata(ModelConfigurator configurator) {
return configurator.configure(Attachment.AttachmentMetadata.builder()).build();
}
public static Field field(ModelConfigurator configurator) {
return configurator.configure(Field.builder()).build();
}
public static Action action(ModelConfigurator configurator) {
return configurator.configure(Action.builder()).build();
}
public static Confirmation confirm(ModelConfigurator configurator) {
return configurator.configure(Confirmation.builder()).build();
}
public static Action.OptionGroup optionGroup(ModelConfigurator configurator) {
return configurator.configure(Action.OptionGroup.builder()).build();
}
public static Action.Option option(ModelConfigurator configurator) {
return configurator.configure(Action.Option.builder()).build();
}
public static List asActions(Action... actions) {
return Arrays.asList(actions);
}
public static List asFields(Field... fields) {
return Arrays.asList(fields);
}
public static List asOptionGroups(Action.OptionGroup... optionGroups) {
return Arrays.asList(optionGroups);
}
public static List asOptions(Action.Option... options) {
return Arrays.asList(options);
}
public static List asList(String... values) {
return Arrays.asList(values);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy