code: public com.squareup.okhttp.Call getUserDevicesAsync(String userId, Integer offset, Integer count, Boolean includeProperties, String owner, Boolean includeShareInfo, String dtid, final ApiCallback<DevicesEnvelope> 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 = getUserDevicesValidateBeforeCall(userId, offset, count, includeProperties, owner, includeShareInfo, dtid, progressListener, progressRequestListener);
          Type localVarReturnType = new TypeToken<DevicesEnvelope>(){}.getType();
          apiClient.executeAsync(call, localVarReturnType, callback);
          return call;
      }
docs: Get User Devices (asynchronously)
  Retrieve User&#39;s Devices
  @param userId User ID (required)
  @param offset Offset for pagination. (optional)
  @param count Desired count of items in the result set (optional)
  @param includeProperties Optional. Boolean (true/false) - If false, only return the user&#39;s device types. If true, also return device types shared by other users. (optional)
  @param owner Return owned and/or shared devices. Default to ALL. (optional)
  @param includeShareInfo Include share info (optional)
  @param dtid Return only devices of this device type. If empty, assumes all device types allowed by the authorization. (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