
com.hubspot.slack.client.models.events.user.SlackMemberJoinedChannelEventIF Maven / Gradle / Ivy
package com.hubspot.slack.client.models.events.user;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.PropertyNamingStrategies.SnakeCaseStrategy;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
import com.hubspot.immutables.style.HubSpotStyle;
import com.hubspot.slack.client.methods.interceptor.HasChannel;
import com.hubspot.slack.client.models.ChannelType;
import com.hubspot.slack.client.models.events.SlackEvent;
import java.util.Optional;
import org.immutables.value.Value.Immutable;
@Immutable
@HubSpotStyle
@JsonNaming(SnakeCaseStrategy.class)
@JsonDeserialize(as = SlackMemberJoinedChannelEvent.class)
public interface SlackMemberJoinedChannelEventIF extends SlackEvent, HasChannel {
@JsonProperty("user")
String getUserId();
@JsonProperty("channel")
String getChannelId();
ChannelType getChannelType();
String getTeam();
@JsonProperty("inviter")
Optional getInviterId();
//Member joined events do not have a ts, so we manually set it as null
@Override
default String getTs() {
return null;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy