getMyClanFireteams static method
Future<SearchResultOfFireteamResponseResponse>
getMyClanFireteams(
- HttpClient client,
- bool groupFilter,
- String groupId,
- bool includeClosed,
- String langFilter,
- int page,
- 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);
}