getMyClanFireteams static method

Future<SearchResultOfFireteamResponseResponse> getMyClanFireteams(
  1. HttpClient client,
  2. bool groupFilter,
  3. String groupId,
  4. bool includeClosed,
  5. String langFilter,
  6. int page,
  7. FireteamPlatform platform,
)

Gets a listing of all fireteams that caller is an applicant, a member, or an alternate of.

Implementation

static Future<SearchResultOfFireteamResponseResponse> getMyClanFireteams (
    HttpClient client,
    bool groupFilter,
    String groupId,
    bool includeClosed,
    String langFilter,
    int page,
    FireteamPlatform platform,
) async {
    final Map<String, dynamic> params = Map<String, dynamic>();
    final String _groupId = '$groupId';
    final String _includeClosed = '$includeClosed';
    final String _page = '$page';
    final String _platform = '${platform.value}';
    params['groupFilter'] = groupFilter;
    params['langFilter'] = langFilter;
    final HttpClientConfig config = HttpClientConfig('GET', '/Fireteam/Clan/$_groupId/My/$_platform/$_includeClosed/$_page/', params);
    config.bodyContentType = null;
    final HttpResponse response = await client.request(config);
    if(response.statusCode == 200) {
        return SearchResultOfFireteamResponseResponse.asyncFromJson(response.mappedBody);
    }
    throw Exception(response.mappedBody);
}