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
  • Constructor Details

    • AdminAnalyticsGetFileResponse

      public AdminAnalyticsGetFileResponse()
  • Method Details

    • asBytes

      public byte[] asBytes() throws IOException
      Specified by:
      asBytes in interface SlackApiBinaryResponse
      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

      public String getError()
    • getResponseMetadata

      public ResponseMetadata getResponseMetadata()
    • getHttpResponseHeaders

      public Map<String,List<String>> 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 interface SlackApiResponse
    • 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)
    • setHttpResponseHeaders

      public void setHttpResponseHeaders(Map<String,List<String>> httpResponseHeaders)
      Description copied from interface: SlackApiResponse
      Sets the response headers. Pass a Map object with lower-cased keys.
      Specified by:
      setHttpResponseHeaders in interface SlackApiResponse
    • 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.

    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object