
com.vspr.ai.slack.api.OauthAccessResponse 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;
/**
* Response Sent by slack when the user grants access.
*/
@Value.Immutable
@JsonSerialize(as = ImmutableOauthAccessResponse.class)
@JsonDeserialize(as = ImmutableOauthAccessResponse.class)
@SlackApiImmutableStyle
public abstract class OauthAccessResponse extends BaseSlackResponse {
/**
* The id for the user's team.
*/
@JsonProperty("team_id")
public abstract Optional getTeamId();
/**
* The name of the team
*/
@JsonProperty("team_name")
public abstract Optional getTeamName();
/**
* If app asked for bot permissions, return authentication data for bot.
*/
public abstract Optional getBot();
/**
* Map for containing json fields not explicitly defined.
*/
@JsonAnyGetter
@AllowNulls
public abstract Map getOther();
public static ImmutableOauthAccessResponse.Builder builder() {
return ImmutableOauthAccessResponse.builder();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy