getFriendRequestList static method

Returns your friend request queue.

Implementation

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