getActivePrivateClanFireteamCount static method

Future<Int32Response> getActivePrivateClanFireteamCount(
  1. HttpClient client,
  2. String groupId
)

Gets a count of all active non-public fireteams for the specified clan. Maximum value returned is 25.

Implementation

static Future<Int32Response> getActivePrivateClanFireteamCount (
    HttpClient client,
    String groupId,
) async {
    final Map<String, dynamic> params = Map<String, dynamic>();
    final String _groupId = '$groupId';
    final HttpClientConfig config = HttpClientConfig('GET', '/Fireteam/Clan/$_groupId/ActiveCount/', params);
    config.bodyContentType = null;
    final HttpResponse response = await client.request(config);
    if(response.statusCode == 200) {
        return Int32Response.asyncFromJson(response.mappedBody);
    }
    throw Exception(response.mappedBody);
}