postVoteWithHttpInfo method
Future<Response>
postVoteWithHttpInfo(
- String tenantId,
- String commentId, [
- PostVoteOptions? options
Performs an HTTP 'POST /auth/my-account/moderate-comments/mod_api/vote/{commentId}' operation and returns the Response.
Parameters:
Implementation
Future<Response> postVoteWithHttpInfo(String tenantId, String commentId, [ PostVoteOptions? options ]) async {
final direction = options?.direction;
final broadcastId = options?.broadcastId;
final sso = options?.sso;
// ignore: prefer_const_declarations
final path = r'/auth/my-account/moderate-comments/mod_api/vote/{commentId}'
.replaceAll('{commentId}', commentId);
// ignore: prefer_final_locals
Object? postBody;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
queryParams.addAll(_queryParams('', 'tenantId', tenantId));
if (direction != null) {
queryParams.addAll(_queryParams('', 'direction', direction));
}
if (broadcastId != null) {
queryParams.addAll(_queryParams('', 'broadcastId', broadcastId));
}
if (sso != null) {
queryParams.addAll(_queryParams('', 'sso', sso));
}
const contentTypes = <String>[];
return apiClient.invokeAPI(
path,
'POST',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}