reportOffensivePostGameCarnageReportPlayer static method

Future<Int32Response> reportOffensivePostGameCarnageReportPlayer(
  1. HttpClient client,
  2. String activityId,
  3. DestinyReportOffensePgcrRequest body
)

Report a player that you met in an activity that was engaging in ToS-violating activities. Both you and the offending player must have played in the activityId passed in. Please use this judiciously and only when you have strong suspicions of violation, pretty please.

Implementation

static Future<Int32Response> reportOffensivePostGameCarnageReportPlayer (
    HttpClient client,
    String activityId,
    DestinyReportOffensePgcrRequest body
) async {
    final Map<String, dynamic> params = Map<String, dynamic>();
    final String _activityId = '$activityId';
    final HttpClientConfig config = HttpClientConfig('POST', '/Destiny2/Stats/PostGameCarnageReport/$_activityId/Report/', params);
    config.body = await body.asyncToJson();
    config.bodyContentType = 'application/json';
    final HttpResponse response = await client.request(config);
    if(response.statusCode == 200) {
        return Int32Response.asyncFromJson(response.mappedBody);
    }
    throw Exception(response.mappedBody);
}