Class AdminAnalyticsGetFileResponse
- java.lang.Object
-
- com.slack.api.methods.response.admin.analytics.AdminAnalyticsGetFileResponse
-
- All Implemented Interfaces:
SlackApiBinaryResponse,SlackApiResponse
public class AdminAnalyticsGetFileResponse extends Object implements SlackApiBinaryResponse
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAdminAnalyticsGetFileResponse.AnalyticsDataParsed Analytics Data
-
Constructor Summary
Constructors Constructor Description AdminAnalyticsGetFileResponse()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]asBytes()protected booleancanEqual(Object other)booleanequals(Object o)voidforEach(Consumer<AdminAnalyticsGetFileResponse.AnalyticsData> handler)StringgetError()InputStreamgetFileStream()This method is almost completely unlike other Web API methods you encounter.ResponseMetadatagetResponseMetadata()inthashCode()booleanisOk()voidsetError(String error)voidsetFileStream(InputStream fileStream)This method is almost completely unlike other Web API methods you encounter.voidsetOk(boolean ok)voidsetResponseMetadata(ResponseMetadata responseMetadata)StringtoString()
-
-
-
Method Detail
-
asBytes
public byte[] asBytes() throws IOException- Specified by:
asBytesin interfaceSlackApiBinaryResponse- Throws:
IOException
-
forEach
public void forEach(Consumer<AdminAnalyticsGetFileResponse.AnalyticsData> handler) throws IOException
- Throws:
IOException
-
isOk
public boolean isOk()
-
getError
public String getError()
-
getResponseMetadata
public ResponseMetadata getResponseMetadata()
-
getFileStream
public InputStream 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
public void setError(String error)
-
setResponseMetadata
public void setResponseMetadata(ResponseMetadata responseMetadata)
-
setFileStream
public void setFileStream(InputStream fileStream)
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.
-
canEqual
protected boolean canEqual(Object other)
-
-