combineCommentsWithQuestionResultsWithHttpInfo method

Future<Response> combineCommentsWithQuestionResultsWithHttpInfo(
  1. String tenantId, [
  2. CombineCommentsWithQuestionResultsOptions? options
])

Performs an HTTP 'GET /api/v1/question-results-aggregation/combine/comments' operation and returns the Response. Parameters:

Implementation

Future<Response> combineCommentsWithQuestionResultsWithHttpInfo(String tenantId, [ CombineCommentsWithQuestionResultsOptions? options ]) async {
  final questionId = options?.questionId;
  final questionIds = options?.questionIds;
  final urlId = options?.urlId;
  final startDate = options?.startDate;
  final forceRecalculate = options?.forceRecalculate;
  final minValue = options?.minValue;
  final maxValue = options?.maxValue;
  final limit = options?.limit;
  // ignore: prefer_const_declarations
  final path = r'/api/v1/question-results-aggregation/combine/comments';

  // ignore: prefer_final_locals
  Object? postBody;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

    queryParams.addAll(_queryParams('', 'tenantId', tenantId));
  if (questionId != null) {
    queryParams.addAll(_queryParams('', 'questionId', questionId));
  }
  if (questionIds != null) {
    queryParams.addAll(_queryParams('multi', 'questionIds', questionIds));
  }
  if (urlId != null) {
    queryParams.addAll(_queryParams('', 'urlId', urlId));
  }
  if (startDate != null) {
    queryParams.addAll(_queryParams('', 'startDate', startDate));
  }
  if (forceRecalculate != null) {
    queryParams.addAll(_queryParams('', 'forceRecalculate', forceRecalculate));
  }
  if (minValue != null) {
    queryParams.addAll(_queryParams('', 'minValue', minValue));
  }
  if (maxValue != null) {
    queryParams.addAll(_queryParams('', 'maxValue', maxValue));
  }
  if (limit != null) {
    queryParams.addAll(_queryParams('', 'limit', limit));
  }

  const contentTypes = <String>[];


  return apiClient.invokeAPI(
    path,
    'GET',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}