abdicateFoundership static method
Future<BooleanResponse>
abdicateFoundership(
- HttpClient client,
- String founderIdNew,
- String groupId,
- BungieMembershipType membershipType,
An administrative method to allow the founder of a group or clan to give up their position to another admin permanently.
Implementation
static Future<BooleanResponse> abdicateFoundership (
HttpClient client,
String founderIdNew,
String groupId,
BungieMembershipType membershipType,
) async {
final Map<String, dynamic> params = Map<String, dynamic>();
final String _founderIdNew = '$founderIdNew';
final String _groupId = '$groupId';
final String _membershipType = '${membershipType.value}';
final HttpClientConfig config = HttpClientConfig('POST', '/GroupV2/$_groupId/Admin/AbdicateFoundership/$_membershipType/$_founderIdNew/', params);
config.bodyContentType = null;
final HttpResponse response = await client.request(config);
if(response.statusCode == 200) {
return BooleanResponse.asyncFromJson(response.mappedBody);
}
throw Exception(response.mappedBody);
}