code: public DeviceTypesEnvelope getDeviceTypesByApplication(String appId, Boolean productInfo, Integer count, Integer offset) throws ApiException {
          ApiResponse<DeviceTypesEnvelope> resp = getDeviceTypesByApplicationWithHttpInfo(appId, productInfo, count, offset);
          return resp.getData();
      }
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 DeviceTypesEnvelope
  @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body