Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
{
@Type(value = ViewContainer.class, name = "view"),
@Type(value = MessageContainer.class, name = "message"),
@Type(value = MessageAttachmentContainer.class, name = "message_attachment"),
}
)
public interface Container {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
public enum ContainerType {
VIEW,
MESSAGE,
MESSAGE_ATTACHMENT,
UNKNOWN;

private static final EnumIndex<String, ContainerType> INDEX = new EnumIndex<>(
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
package com.hubspot.slack.client.models.interaction;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.PropertyNamingStrategies;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
import com.hubspot.immutables.style.HubSpotStyle;
import com.hubspot.slack.client.methods.params.chat.workobject.ExternalRef;
import java.util.Optional;
import org.immutables.value.Value;

@Value.Immutable
@HubSpotStyle
@JsonNaming(PropertyNamingStrategies.SnakeCaseStrategy.class)
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public interface MessageAttachmentContainerIF extends Container {
String getMessageTs();

String getChannelId();

@JsonProperty("is_ephemeral")
boolean isEphemeral();

@JsonProperty("is_app_unfurl")
boolean isAppUnfurl();

int getAttachmentId();

Optional<ExternalRef> getExternalRef();

Optional<String> getEntityUrl();
}