code: public ApiResponse<DeviceTypesEnvelope> getDeviceTypesByApplicationWithHttpInfo(String appId, Boolean productInfo, Integer count, Integer offset) throws ApiException {
          com.squareup.okhttp.Call call = getDeviceTypesByApplicationValidateBeforeCall(appId, productInfo, count, offset, null, null);
          Type localVarReturnType = new TypeToken<DeviceTypesEnvelope>(){}.getType();
          return apiClient.execute(call, localVarReturnType);
      }
docs: Get Device Types by Application
  Get Device Types by Application
  @param appId Application ID. (required)
  @param productInfo Flag to include the associated ProductInfo if present (optional)
  @param count Desired count of items in the result set. (optional)
  @param offset Offset for pagination. (optional)
  @return ApiResponse&lt;DeviceTypesEnvelope&gt;
  @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body