getPostGameCarnageReport static method

Future<DestinyPostGameCarnageReportDataResponse> getPostGameCarnageReport(
  1. HttpClient client,
  2. String activityId
)

Gets the available post game carnage report for the activity ID.

Implementation

static Future<DestinyPostGameCarnageReportDataResponse> getPostGameCarnageReport (
    HttpClient client,
    String activityId,
) async {
    final Map<String, dynamic> params = Map<String, dynamic>();
    final String _activityId = '$activityId';
    final HttpClientConfig config = HttpClientConfig('GET', '/Destiny2/Stats/PostGameCarnageReport/$_activityId/', params);
    config.bodyContentType = null;
    final HttpResponse response = await client.request(config);
    if(response.statusCode == 200) {
        return DestinyPostGameCarnageReportDataResponse.asyncFromJson(response.mappedBody);
    }
    throw Exception(response.mappedBody);
}