All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.hubspot.slack.client.models.events.user.SlackMemberLeftChannelEventIF 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 org.immutables.value.Value.Immutable;

@Immutable
@HubSpotStyle
@JsonNaming(SnakeCaseStrategy.class)
@JsonDeserialize(as = SlackMemberLeftChannelEvent.class)
public interface SlackMemberLeftChannelEventIF extends SlackEvent, HasChannel {
  @JsonProperty("user")
  String getUserId();

  @JsonProperty("channel")
  String getChannelId();

  ChannelType getChannelType();

  String getTeam();

  //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