getDestinyAggregateActivityStats static method
Future<DestinyAggregateActivityResultsResponse>
getDestinyAggregateActivityStats(
- HttpClient client,
- String characterId,
- String destinyMembershipId,
- BungieMembershipType membershipType,
Gets all activities the character has participated in together with aggregate statistics for those activities.
Implementation
static Future<DestinyAggregateActivityResultsResponse> getDestinyAggregateActivityStats (
HttpClient client,
String characterId,
String destinyMembershipId,
BungieMembershipType membershipType,
) async {
final Map<String, dynamic> params = Map<String, dynamic>();
final String _characterId = '$characterId';
final String _destinyMembershipId = '$destinyMembershipId';
final String _membershipType = '${membershipType.value}';
final HttpClientConfig config = HttpClientConfig('GET', '/Destiny2/$_membershipType/Account/$_destinyMembershipId/Character/$_characterId/Stats/AggregateActivityStats/', params);
config.bodyContentType = null;
final HttpResponse response = await client.request(config);
if(response.statusCode == 200) {
return DestinyAggregateActivityResultsResponse.asyncFromJson(response.mappedBody);
}
throw Exception(response.mappedBody);
}