code: public com.squareup.okhttp.Call getFieldPresenceAsync(Long startDate, Long endDate, String interval, String sdid, String fieldPresence, final ApiCallback<FieldPresenceEnvelope> callback) throws ApiException {
  
          ProgressResponseBody.ProgressListener progressListener = null;
          ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
  
          if (callback != null) {
              progressListener = new ProgressResponseBody.ProgressListener() {
                  @Override
                  public void update(long bytesRead, long contentLength, boolean done) {
                      callback.onDownloadProgress(bytesRead, contentLength, done);
                  }
              };
  
              progressRequestListener = new ProgressRequestBody.ProgressRequestListener() {
                  @Override
                  public void onRequestProgress(long bytesWritten, long contentLength, boolean done) {
                      callback.onUploadProgress(bytesWritten, contentLength, done);
                  }
              };
          }
  
          com.squareup.okhttp.Call call = getFieldPresenceValidateBeforeCall(startDate, endDate, interval, sdid, fieldPresence, progressListener, progressRequestListener);
          Type localVarReturnType = new TypeToken<FieldPresenceEnvelope>(){}.getType();
          apiClient.executeAsync(call, localVarReturnType, callback);
          return call;
      }
docs: Get normalized message presence (asynchronously)
  Get normalized message presence.
  @param startDate startDate (required)
  @param endDate endDate (required)
  @param interval String representing grouping interval. One of: &#39;minute&#39; (1 hour limit), &#39;hour&#39; (1 day limit), &#39;day&#39; (31 days limit), &#39;month&#39; (1 year limit), or &#39;year&#39; (10 years limit). (required)
  @param sdid Source device ID of the messages being searched. (optional)
  @param fieldPresence String representing a field from the specified device ID. (optional)
  @param callback The callback to be executed when the API call finishes
  @return The request call
  @throws ApiException If fail to process the API call, e.g. serializing the request body object