getAvailableAvatars static method

Future<DictionaryOfint32AndstringResponse> getAvailableAvatars(
  1. HttpClient client
)

Returns a list of all available group avatars for the signed-in user.

Implementation

static Future<DictionaryOfint32AndstringResponse> getAvailableAvatars (
    HttpClient client,
) async {
    final Map<String, dynamic> params = Map<String, dynamic>();
    final HttpClientConfig config = HttpClientConfig('GET', '/GroupV2/GetAvailableAvatars/', params);
    config.bodyContentType = null;
    final HttpResponse response = await client.request(config);
    if(response.statusCode == 200) {
        return DictionaryOfint32AndstringResponse.asyncFromJson(response.mappedBody);
    }
    throw Exception(response.mappedBody);
}