Class AdminAnalyticsGetFileResponse
java.lang.Object
com.slack.api.methods.response.admin.analytics.AdminAnalyticsGetFileResponse
- All Implemented Interfaces:
SlackApiBinaryResponse,SlackApiResponse
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classParsed Analytics Datastatic classstatic classstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]asBytes()protected booleanbooleanvoidforEach(com.google.gson.Gson gson, Consumer<AdminAnalyticsGetFileResponse.AnalyticsData> handler) voidgetError()This method is almost completely unlike other Web API methods you encounter.Returns all the HTTP response headers in the API response.inthashCode()booleanisOk()voidvoidsetFileStream(InputStream fileStream) This method is almost completely unlike other Web API methods you encounter.voidsetHttpResponseHeaders(Map<String, List<String>> httpResponseHeaders) Sets the response headers.voidsetOk(boolean ok) voidsetResponseMetadata(ResponseMetadata responseMetadata) toString()
-
Constructor Details
-
AdminAnalyticsGetFileResponse
public AdminAnalyticsGetFileResponse()
-
-
Method Details
-
asBytes
- Specified by:
asBytesin interfaceSlackApiBinaryResponse- Throws:
IOException
-
forEach
public void forEach(Consumer<AdminAnalyticsGetFileResponse.AnalyticsData> handler) throws IOException - Throws:
IOException
-
forEach
public void forEach(com.google.gson.Gson gson, Consumer<AdminAnalyticsGetFileResponse.AnalyticsData> handler) throws IOException - Throws:
IOException
-
isOk
public boolean isOk() -
getError
-
getResponseMetadata
-
getHttpResponseHeaders
Description copied from interface:SlackApiResponseReturns all the HTTP response headers in the API response. The keys are lower-cased.- Specified by:
getHttpResponseHeadersin interfaceSlackApiResponse
-
getFileStream
This method is almost completely unlike other Web API methods you encounter. It doesn't return application/json with the traditional "ok": true response on success, though you'll find "ok": false on failure.Instead, it returns a single file, often very large, containing JSON objects that are separated by newlines and then compressed with application/gzip.
-
setOk
public void setOk(boolean ok) -
setError
-
setResponseMetadata
-
setHttpResponseHeaders
Description copied from interface:SlackApiResponseSets the response headers. Pass a Map object with lower-cased keys.- Specified by:
setHttpResponseHeadersin interfaceSlackApiResponse
-
setFileStream
This method is almost completely unlike other Web API methods you encounter. It doesn't return application/json with the traditional "ok": true response on success, though you'll find "ok": false on failure.Instead, it returns a single file, often very large, containing JSON objects that are separated by newlines and then compressed with application/gzip.
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-