Class SlashCommandContext
- java.lang.Object
-
- com.slack.api.bolt.context.Context
-
- com.slack.api.bolt.context.builtin.SlashCommandContext
-
- All Implemented Interfaces:
RespondUtility
,SayUtility
public class SlashCommandContext extends Context implements SayUtility, RespondUtility
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SlashCommandContext.SlashCommandContextBuilder
-
Field Summary
-
Fields inherited from class com.slack.api.bolt.context.Context
additionalValues, botId, botToken, botUserId, enterpriseId, logger, requestUserId, requestUserToken, slack, teamId
-
-
Constructor Summary
Constructors Constructor Description SlashCommandContext()
SlashCommandContext(String triggerId, String channelId, String responseUrl, Responder responder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Response
ack(SlashCommandResponse response)
Response
ack(BuilderConfigurator<SlashCommandResponse.SlashCommandResponseBuilder> builder)
Response
ack(String text)
Response
ack(List<LayoutBlock> blocks)
static SlashCommandContext.SlashCommandContextBuilder
builder()
protected boolean
canEqual(Object other)
boolean
equals(Object o)
String
getChannelId()
Responder
getResponder()
String
getResponseUrl()
String
getTriggerId()
int
hashCode()
WebhookResponse
respond(SlashCommandResponse response)
WebhookResponse
respond(BuilderConfigurator<SlashCommandResponse.SlashCommandResponseBuilder> builder)
WebhookResponse
respond(String text)
WebhookResponse
respond(List<LayoutBlock> blocks)
void
setChannelId(String channelId)
void
setResponder(Responder responder)
void
setResponseUrl(String responseUrl)
void
setTriggerId(String triggerId)
String
toString()
-
Methods inherited from class com.slack.api.bolt.context.Context
ack, ack, ackWithJson, asyncClient, client, getAdditionalValues, getBotId, getBotToken, getBotUserId, getEnterpriseId, getLogger, getRequestUserId, getRequestUserToken, getSlack, getTeamId, say, setBotId, setBotToken, setBotUserId, setEnterpriseId, setRequestUserId, setRequestUserToken, setSlack, setTeamId, toJson
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.slack.api.bolt.context.RespondUtility
getSlack
-
Methods inherited from interface com.slack.api.bolt.context.SayUtility
client, say, say, verifyChannelId
-
-
-
-
Method Detail
-
respond
public WebhookResponse respond(String text) throws IOException
- Throws:
IOException
-
respond
public WebhookResponse respond(List<LayoutBlock> blocks) throws IOException
- Throws:
IOException
-
respond
public WebhookResponse respond(SlashCommandResponse response) throws IOException
- Throws:
IOException
-
respond
public WebhookResponse respond(BuilderConfigurator<SlashCommandResponse.SlashCommandResponseBuilder> builder) throws IOException
- Throws:
IOException
-
ack
public Response ack(List<LayoutBlock> blocks)
-
ack
public Response ack(SlashCommandResponse response)
-
ack
public Response ack(BuilderConfigurator<SlashCommandResponse.SlashCommandResponseBuilder> builder)
-
builder
public static SlashCommandContext.SlashCommandContextBuilder builder()
-
getTriggerId
public String getTriggerId()
-
getChannelId
public String getChannelId()
- Specified by:
getChannelId
in interfaceSayUtility
-
getResponseUrl
public String getResponseUrl()
- Specified by:
getResponseUrl
in interfaceRespondUtility
-
getResponder
public Responder getResponder()
- Specified by:
getResponder
in interfaceRespondUtility
-
setTriggerId
public void setTriggerId(String triggerId)
-
setChannelId
public void setChannelId(String channelId)
-
setResponseUrl
public void setResponseUrl(String responseUrl)
-
setResponder
public void setResponder(Responder responder)
- Specified by:
setResponder
in interfaceRespondUtility
-
canEqual
protected boolean canEqual(Object other)
-
-