Class EventContext
java.lang.Object
com.slack.api.bolt.context.Context
com.slack.api.bolt.context.builtin.EventContext
- All Implemented Interfaces:
FunctionUtility,SayUtility
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class com.slack.api.bolt.context.Context
additionalValues, authTestResponse, botId, botScopes, botToken, botUserId, enterpriseId, enterpriseInstall, functionBotAccessToken, functionExecutionId, logger, requestUserId, requestUserScopes, requestUserToken, slack, teamId -
Constructor Summary
ConstructorsConstructorDescriptionEventContext(String channelId, String threadTs, AssistantThreadContext threadContext, AssistantThreadContextService threadContextService, boolean assistantThreadEvent, Integer retryNum, String retryReason) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()protected booleanbooleaninthashCode()booleansay(String text, List<LayoutBlock> blocks) say(List<LayoutBlock> blocks) Using `say(blocks, text)` instead is highly recommended for even better user experience.voidsetAssistantThreadEvent(boolean assistantThreadEvent) voidsetChannelId(String channelId) voidsetRetryNum(Integer retryNum) voidsetRetryReason(String retryReason) setStatus(RequestConfigurator<AssistantThreadsSetStatusRequest.AssistantThreadsSetStatusRequestBuilder> req) setSuggestedPrompts(RequestConfigurator<AssistantThreadsSetSuggestedPromptsRequest.AssistantThreadsSetSuggestedPromptsRequestBuilder> req) setSuggestedPrompts(List<SuggestedPrompt> prompts) setSuggestedPrompts(List<SuggestedPrompt> prompts, String title) voidsetThreadContext(AssistantThreadContext threadContext) voidsetThreadContextService(AssistantThreadContextService threadContextService) voidsetThreadTs(String threadTs) setTitle(RequestConfigurator<AssistantThreadsSetTitleRequest.AssistantThreadsSetTitleRequestBuilder> req) toString()Methods inherited from class com.slack.api.bolt.context.Context
ack, ack, ackWithJson, asyncClient, client, getAdditionalValues, getAuthTestResponse, getBotId, getBotScopes, getBotToken, getBotUserId, getEnterpriseId, getFunctionBotAccessToken, getFunctionExecutionId, getLogger, getRequestUserId, getRequestUserScopes, getRequestUserToken, getSlack, getTeamId, isAttachingFunctionTokenEnabled, isEnterpriseInstall, setAttachingFunctionTokenEnabled, setAuthTestResponse, setBotId, setBotScopes, setBotToken, setBotUserId, setEnterpriseId, setEnterpriseInstall, setFunctionBotAccessToken, setFunctionExecutionId, setRequestUserId, setRequestUserScopes, setRequestUserToken, setSlack, setTeamId, toJsonMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.slack.api.bolt.context.FunctionUtility
client, complete, fail, getFunctionExecutionIdMethods inherited from interface com.slack.api.bolt.context.SayUtility
client, verifyChannelId
-
Constructor Details
-
EventContext
public EventContext() -
EventContext
public EventContext(String channelId, String threadTs, AssistantThreadContext threadContext, AssistantThreadContextService threadContextService, boolean assistantThreadEvent, Integer retryNum, String retryReason)
-
-
Method Details
-
say
- Specified by:
sayin interfaceSayUtility- Throws:
IOExceptionSlackApiException
-
say
Description copied from interface:SayUtilityUsing `say(blocks, text)` instead is highly recommended for even better user experience.- Specified by:
sayin interfaceSayUtility- Throws:
IOExceptionSlackApiException
-
say
public ChatPostMessageResponse say(String text, List<LayoutBlock> blocks) throws IOException, SlackApiException - Specified by:
sayin interfaceSayUtility- Throws:
IOExceptionSlackApiException
-
say
public ChatPostMessageResponse say(BuilderConfigurator<ChatPostMessageRequest.ChatPostMessageRequestBuilder> request) throws IOException, SlackApiException - Overrides:
sayin classContext- Throws:
IOExceptionSlackApiException
-
setStatus
public AssistantThreadsSetStatusResponse setStatus(String status) throws IOException, SlackApiException - Throws:
IOExceptionSlackApiException
-
setStatus
public AssistantThreadsSetStatusResponse setStatus(RequestConfigurator<AssistantThreadsSetStatusRequest.AssistantThreadsSetStatusRequestBuilder> req) throws IOException, SlackApiException - Throws:
IOExceptionSlackApiException
-
setTitle
public AssistantThreadsSetTitleResponse setTitle(String title) throws IOException, SlackApiException - Throws:
IOExceptionSlackApiException
-
setTitle
public AssistantThreadsSetTitleResponse setTitle(RequestConfigurator<AssistantThreadsSetTitleRequest.AssistantThreadsSetTitleRequestBuilder> req) throws IOException, SlackApiException - Throws:
IOExceptionSlackApiException
-
setSuggestedPrompts
public AssistantThreadsSetSuggestedPromptsResponse setSuggestedPrompts(List<SuggestedPrompt> prompts) throws IOException, SlackApiException - Throws:
IOExceptionSlackApiException
-
setSuggestedPrompts
public AssistantThreadsSetSuggestedPromptsResponse setSuggestedPrompts(RequestConfigurator<AssistantThreadsSetSuggestedPromptsRequest.AssistantThreadsSetSuggestedPromptsRequestBuilder> req) throws IOException, SlackApiException - Throws:
IOExceptionSlackApiException
-
setSuggestedPrompts
public AssistantThreadsSetSuggestedPromptsResponse setSuggestedPrompts(List<SuggestedPrompt> prompts, String title) throws IOException, SlackApiException - Throws:
IOExceptionSlackApiException
-
builder
-
getChannelId
- Specified by:
getChannelIdin interfaceSayUtility
-
getThreadTs
-
getThreadContext
-
getThreadContextService
-
isAssistantThreadEvent
public boolean isAssistantThreadEvent() -
getRetryNum
-
getRetryReason
-
setChannelId
-
setThreadTs
-
setThreadContext
-
setThreadContextService
-
setAssistantThreadEvent
public void setAssistantThreadEvent(boolean assistantThreadEvent) -
setRetryNum
-
setRetryReason
-
toString
-
equals
-
canEqual
-
hashCode
public int hashCode()
-