getClanWeeklyRewardState static method

Future<DestinyMilestoneResponse> getClanWeeklyRewardState(
  1. HttpClient client,
  2. String groupId
)

Returns information on the weekly clan rewards and if the clan has earned them or not. Note that this will always report rewards as not redeemed.

Implementation

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