denyAllPending static method
Future<ListOfEntityActionResultResponse>
denyAllPending(
- HttpClient client,
- String groupId,
- GroupApplicationRequest body
Deny all of the pending users for the given group.
Implementation
static Future<ListOfEntityActionResultResponse> denyAllPending (
HttpClient client,
String groupId,
GroupApplicationRequest body
) async {
final Map<String, dynamic> params = Map<String, dynamic>();
final String _groupId = '$groupId';
final HttpClientConfig config = HttpClientConfig('POST', '/GroupV2/$_groupId/Members/DenyAll/', params);
config.body = await body.asyncToJson();
config.bodyContentType = 'application/json';
final HttpResponse response = await client.request(config);
if(response.statusCode == 200) {
return ListOfEntityActionResultResponse.asyncFromJson(response.mappedBody);
}
throw Exception(response.mappedBody);
}