![JAR search and dependency download from the Maven repository](/logo.png)
com.vspr.ai.slack.api.Attachment Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of slack-api Show documentation
Show all versions of slack-api Show documentation
another slack api for java
package com.vspr.ai.slack.api;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import javax.annotation.Nullable;
import org.immutables.value.Value;
import org.immutables.value.Value.Default;
/**
* Created by cobb on 7/17/17.
*/
@Value.Immutable
@JsonSerialize(as = ImmutableAttachment.class)
@JsonDeserialize(as = ImmutableAttachment.class)
@SlackApiImmutableStyle
public abstract class Attachment {
public abstract Optional getText();
public abstract String getFallback();
@JsonProperty("callback_id")
public abstract Optional getCallbackId();
//Using 'nullable' instead of optional so 'addAction' will still be in builder, preventing a breaking a change
@Nullable
public abstract List getActions();
@Default
public String getAttachmentType() {
return "default";
}
public static ImmutableAttachment.Builder builder() {
return ImmutableAttachment.builder();
}
@JsonAnyGetter
@AllowNulls
public abstract Map getOther();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy