recoverGroupForFounder static method
Future<GroupMembershipSearchResponseResponse>
recoverGroupForFounder(
- HttpClient client,
- GroupType groupType,
- String membershipId,
- BungieMembershipType membershipType,
Allows a founder to manually recover a group they can see in game but not on bungie.net
Implementation
static Future<GroupMembershipSearchResponseResponse> recoverGroupForFounder (
HttpClient client,
GroupType groupType,
String membershipId,
BungieMembershipType membershipType,
) async {
final Map<String, dynamic> params = Map<String, dynamic>();
final String _groupType = '${groupType.value}';
final String _membershipId = '$membershipId';
final String _membershipType = '${membershipType.value}';
final HttpClientConfig config = HttpClientConfig('GET', '/GroupV2/Recover/$_membershipType/$_membershipId/$_groupType/', params);
config.bodyContentType = null;
final HttpResponse response = await client.request(config);
if(response.statusCode == 200) {
return GroupMembershipSearchResponseResponse.asyncFromJson(response.mappedBody);
}
throw Exception(response.mappedBody);
}