CompareComply extends BaseService { public ServiceCall<FeedbackList> listFeedback(ListFeedbackOptions listFeedbackOptions) { String[] pathSegments = {"v1/feedback"}; RequestBuilder builder = RequestBuilder.get(RequestBuilder.constructHttpUrl(getServiceUrl(), pathSegments)); builder.query("version", versionDate); Map<String, String> sdkHeaders = SdkCommon.getSdkHeaders("compare-comply", "v1", "listFeedback"); for (Entry<String, String> header : sdkHeaders.entrySet()) { builder.header(header.getKey(), header.getValue()); } builder.header("Accept", "application/json"); if (listFeedbackOptions != null) { if (listFeedbackOptions.feedbackType() != null) { builder.query("feedback_type", listFeedbackOptions.feedbackType()); } if (listFeedbackOptions.before() != null) { builder.query("before", String.valueOf(listFeedbackOptions.before())); } if (listFeedbackOptions.after() != null) { builder.query("after", String.valueOf(listFeedbackOptions.after())); } if (listFeedbackOptions.documentTitle() != null) { builder.query("document_title", listFeedbackOptions.documentTitle()); } if (listFeedbackOptions.modelId() != null) { builder.query("model_id", listFeedbackOptions.modelId()); } if (listFeedbackOptions.modelVersion() != null) { builder.query("model_version", listFeedbackOptions.modelVersion()); } if (listFeedbackOptions.categoryRemoved() != null) { builder.query("category_removed", listFeedbackOptions.categoryRemoved()); } if (listFeedbackOptions.categoryAdded() != null) { builder.query("category_added", listFeedbackOptions.categoryAdded()); } if (listFeedbackOptions.categoryNotChanged() != null) { builder.query("category_not_changed", listFeedbackOptions.categoryNotChanged()); } if (listFeedbackOptions.typeRemoved() != null) { builder.query("type_removed", listFeedbackOptions.typeRemoved()); } if (listFeedbackOptions.typeAdded() != null) { builder.query("type_added", listFeedbackOptions.typeAdded()); } if (listFeedbackOptions.typeNotChanged() != null) { builder.query("type_not_changed", listFeedbackOptions.typeNotChanged()); } if (listFeedbackOptions.pageLimit() != null) { builder.query("page_limit", String.valueOf(listFeedbackOptions.pageLimit())); } if (listFeedbackOptions.cursor() != null) { builder.query("cursor", listFeedbackOptions.cursor()); } if (listFeedbackOptions.sort() != null) { builder.query("sort", listFeedbackOptions.sort()); } if (listFeedbackOptions.includeTotal() != null) { builder.query("include_total", String.valueOf(listFeedbackOptions.includeTotal())); } } ResponseConverter<FeedbackList> responseConverter = ResponseConverterUtils.getValue( new com.google.gson.reflect.TypeToken<FeedbackList>() {}.getType()); return createServiceCall(builder.build(), responseConverter); } CompareComply(String versionDate);  CompareComply(String versionDate, Authenticator authenticator);  CompareComply(String versionDate, String serviceName);  CompareComply(String versionDate, String serviceName, Authenticator authenticator); ServiceCall<HTMLReturn> convertToHtml(ConvertToHtmlOptions convertToHtmlOptions); ServiceCall<ClassifyReturn> classifyElements(
      ClassifyElementsOptions classifyElementsOptions); ServiceCall<TableReturn> extractTables(ExtractTablesOptions extractTablesOptions); ServiceCall<CompareReturn> compareDocuments(
      CompareDocumentsOptions compareDocumentsOptions); ServiceCall<FeedbackReturn> addFeedback(AddFeedbackOptions addFeedbackOptions); ServiceCall<FeedbackList> listFeedback(ListFeedbackOptions listFeedbackOptions); ServiceCall<FeedbackList> listFeedback(); ServiceCall<GetFeedback> getFeedback(GetFeedbackOptions getFeedbackOptions); ServiceCall<FeedbackDeleted> deleteFeedback(DeleteFeedbackOptions deleteFeedbackOptions); ServiceCall<BatchStatus> createBatch(CreateBatchOptions createBatchOptions); ServiceCall<Batches> listBatches(ListBatchesOptions listBatchesOptions); ServiceCall<Batches> listBatches(); ServiceCall<BatchStatus> getBatch(GetBatchOptions getBatchOptions); ServiceCall<BatchStatus> updateBatch(UpdateBatchOptions updateBatchOptions);  }
@Test public void testListFeedbackWithOptions() throws InterruptedException { server.enqueue(jsonResponse(listFeedbackResponse)); ListFeedbackOptions listFeedbackOptions = new ListFeedbackOptions.Builder().build(); FeedbackList response = service.listFeedback(listFeedbackOptions).execute().getResult(); RecordedRequest request = server.takeRequest(); assertFeedbackListResponse(request, response); }
@Test public void testListFeedbackWithoutOptions() throws InterruptedException { server.enqueue(jsonResponse(listFeedbackResponse)); FeedbackList response = service.listFeedback().execute().getResult(); RecordedRequest request = server.takeRequest(); assertFeedbackListResponse(request, response); }