getPendingMemberships static method
Future<SearchResultOfGroupMemberApplicationResponse>
getPendingMemberships(
- HttpClient client,
- int currentpage,
- String groupId
Get the list of users who are awaiting a decision on their application to join a given group. Modified to include application info.
Implementation
static Future<SearchResultOfGroupMemberApplicationResponse> getPendingMemberships (
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/Members/Pending/', params);
config.bodyContentType = null;
final HttpResponse response = await client.request(config);
if(response.statusCode == 200) {
return SearchResultOfGroupMemberApplicationResponse.asyncFromJson(response.mappedBody);
}
throw Exception(response.mappedBody);
}