deleteCommentVoteWithHttpInfo method
Performs an HTTP 'DELETE /comments/{tenantId}/{commentId}/vote/{voteId}' operation and returns the Response.
Parameters:
Implementation
Future<Response> deleteCommentVoteWithHttpInfo(String tenantId, String commentId, String voteId, String urlId, String broadcastId, [ DeleteCommentVoteOptions? options ]) async {
final editKey = options?.editKey;
final sso = options?.sso;
// ignore: prefer_const_declarations
final path = r'/comments/{tenantId}/{commentId}/vote/{voteId}'
.replaceAll('{tenantId}', tenantId)
.replaceAll('{commentId}', commentId)
.replaceAll('{voteId}', voteId);
// ignore: prefer_final_locals
Object? postBody;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
queryParams.addAll(_queryParams('', 'urlId', urlId));
queryParams.addAll(_queryParams('', 'broadcastId', broadcastId));
if (editKey != null) {
queryParams.addAll(_queryParams('', 'editKey', editKey));
}
if (sso != null) {
queryParams.addAll(_queryParams('', 'sso', sso));
}
const contentTypes = <String>[];
return apiClient.invokeAPI(
path,
'DELETE',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}