getDailyRewardInfo function

Future<DailyRewardInfo> getDailyRewardInfo({
  1. bool chinese = false,
})

Implementation

Future<DailyRewardInfo> getDailyRewardInfo({bool chinese = false}) async {
  var data = await fetchDailyEndpoint('info', chinese: chinese);

  return DailyRewardInfo(data['is_sign'], data['total_sign_day']);
}