Class OAuthV2AccessResponse
java.lang.Object
com.slack.api.methods.response.oauth.OAuthV2AccessResponse
- All Implemented Interfaces:
SlackApiResponse
,SlackApiTextResponse
https://api.slack.com/methods/oauth.v2.access
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
static class
static class
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
getAppId()
getError()
Returns all the HTTP response headers in the API response.getScope()
getTeam()
int
hashCode()
boolean
boolean
isOk()
void
setAccessToken
(String accessToken) void
void
setAuthedUser
(OAuthV2AccessResponse.AuthedUser authedUser) void
setBotUserId
(String botUserId) void
setEnterprise
(OAuthV2AccessResponse.Enterprise enterprise) void
setEnterpriseInstall
(boolean isEnterpriseInstall) void
void
setExpiresIn
(Integer expiresIn) void
setHttpResponseHeaders
(Map<String, List<String>> httpResponseHeaders) Sets the response headers.void
setIncomingWebhook
(OAuthV2AccessResponse.IncomingWebhook incomingWebhook) void
void
setOk
(boolean ok) void
setProvided
(String provided) void
setRefreshToken
(String refreshToken) void
void
void
setTokenType
(String tokenType) void
setWarning
(String warning) toString()
-
Constructor Details
-
OAuthV2AccessResponse
public OAuthV2AccessResponse()
-
-
Method Details
-
isOk
public boolean isOk()- Specified by:
isOk
in interfaceSlackApiTextResponse
-
getWarning
- Specified by:
getWarning
in interfaceSlackApiTextResponse
-
getError
- Specified by:
getError
in interfaceSlackApiTextResponse
-
getNeeded
- Specified by:
getNeeded
in interfaceSlackApiTextResponse
-
getProvided
- Specified by:
getProvided
in interfaceSlackApiTextResponse
-
getHttpResponseHeaders
Description copied from interface:SlackApiResponse
Returns all the HTTP response headers in the API response. The keys are lower-cased.- Specified by:
getHttpResponseHeaders
in interfaceSlackApiResponse
-
getAppId
-
getAuthedUser
-
getScope
-
getTokenType
-
getAccessToken
-
getRefreshToken
-
getExpiresIn
-
getBotUserId
-
getTeam
-
getEnterprise
-
isEnterpriseInstall
public boolean isEnterpriseInstall() -
getIncomingWebhook
-
setOk
public void setOk(boolean ok) - Specified by:
setOk
in interfaceSlackApiTextResponse
-
setWarning
- Specified by:
setWarning
in interfaceSlackApiTextResponse
-
setError
- Specified by:
setError
in interfaceSlackApiTextResponse
-
setNeeded
- Specified by:
setNeeded
in interfaceSlackApiTextResponse
-
setProvided
- Specified by:
setProvided
in interfaceSlackApiTextResponse
-
setHttpResponseHeaders
Description copied from interface:SlackApiResponse
Sets the response headers. Pass a Map object with lower-cased keys.- Specified by:
setHttpResponseHeaders
in interfaceSlackApiResponse
-
setAppId
-
setAuthedUser
-
setScope
-
setTokenType
-
setAccessToken
-
setRefreshToken
-
setExpiresIn
-
setBotUserId
-
setTeam
-
setEnterprise
-
setEnterpriseInstall
public void setEnterpriseInstall(boolean isEnterpriseInstall) -
setIncomingWebhook
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-