com.vspr.ai.slack.api.Event 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.Map;
import java.util.Optional;
import org.immutables.value.Value;
/**
* Created by cobb on 7/27/17.
*/
@Value.Immutable
@JsonSerialize(as = ImmutableEvent.class)
@JsonDeserialize(as = ImmutableEvent.class)
@SlackApiImmutableStyle
public abstract class Event {
/**
* Challenge token provided to slack api
*/
public abstract Optional getChallenge();
/**
* Token for your app, should be valdiated before using even.
*/
public abstract String getToken();
/**
* Team_id sourcing the event.
*/
@JsonProperty("team_id")
public abstract Optional getTeamId();
/**
* Additional event details
*/
@JsonProperty("event")
public abstract Optional getEventType();
@JsonAnyGetter
public abstract Map getOther();
public static ImmutableEvent.Builder builder() {
return ImmutableEvent.builder();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy