setCommentTextWithHttpInfo method

Future<Response> setCommentTextWithHttpInfo(
  1. String tenantId,
  2. String commentId,
  3. String broadcastId,
  4. CommentTextUpdateRequest commentTextUpdateRequest, {
  5. String? editKey,
  6. String? sso,
})

Performs an HTTP 'POST /comments/{tenantId}/{commentId}/update-text' operation and returns the Response. Parameters:

Implementation

Future<Response> setCommentTextWithHttpInfo(String tenantId, String commentId, String broadcastId, CommentTextUpdateRequest commentTextUpdateRequest, { String? editKey, String? sso, }) async {
  // ignore: prefer_const_declarations
  final path = r'/comments/{tenantId}/{commentId}/update-text'
    .replaceAll('{tenantId}', tenantId)
    .replaceAll('{commentId}', commentId);

  // ignore: prefer_final_locals
  Object? postBody = commentTextUpdateRequest;

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

    queryParams.addAll(_queryParams('', 'broadcastId', broadcastId));
  if (editKey != null) {
    queryParams.addAll(_queryParams('', 'editKey', editKey));
  }
  if (sso != null) {
    queryParams.addAll(_queryParams('', 'sso', sso));
  }

  const contentTypes = <String>['application/json'];


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