getBannedMembersOfGroup static method
Future<SearchResultOfGroupBanResponse>
getBannedMembersOfGroup(
- HttpClient client,
- int currentpage,
- String groupId
Get the list of banned members in a given group. Only accessible to group Admins and above. Not applicable to all groups. Check group features.
Implementation
static Future<SearchResultOfGroupBanResponse> getBannedMembersOfGroup (
HttpClient client,
int currentpage,
String groupId,
) async {
final Map<String, dynamic> params = Map<String, dynamic>();
final String _currentpage = '$currentpage';
final String _groupId = '$groupId';
final HttpClientConfig config = HttpClientConfig('GET', '/GroupV2/$_groupId/Banned/', params);
config.bodyContentType = null;
final HttpResponse response = await client.request(config);
if(response.statusCode == 200) {
return SearchResultOfGroupBanResponse.asyncFromJson(response.mappedBody);
}
throw Exception(response.mappedBody);
}