denyPendingForList static method
Future<ListOfEntityActionResultResponse>
denyPendingForList(
- HttpClient client,
- String groupId,
- GroupApplicationListRequest body
Deny all of the pending users for the given group that match the passed-in .
Implementation
static Future<ListOfEntityActionResultResponse> denyPendingForList (
HttpClient client,
String groupId,
GroupApplicationListRequest body
) async {
final Map<String, dynamic> params = Map<String, dynamic>();
final String _groupId = '$groupId';
final HttpClientConfig config = HttpClientConfig('POST', '/GroupV2/$_groupId/Members/DenyList/', 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);
}