claimDailyReward method

Future<ClaimDailyRewardResponse> claimDailyReward()

claim daily rewards

Implementation

Future<ClaimDailyRewardResponse> claimDailyReward() async {
  var res = await client.post(
    MCP(profileId, accountId: client.accountId).ClaimLoginReward,
  );
  return ClaimDailyRewardResponse.fromDay(
    (res["notifications"] as List?)?.first?["daysLoggedIn"] ?? 0,
    ((res["notifications"] as List?)?.first?["items"] as List?)?.isEmpty ??
        true,
  );
}