getRecordCard function

Future getRecordCard(
  1. int hoyolabUid, {
  2. bool chinese = false,
})

Implementation

Future getRecordCard(int hoyolabUid, {bool chinese = false}) async {
  var cards = (await fetchGameRecordEndpoint('card/wapi/getGameRecordCard',
      chinese: chinese,
      kwargs: {
        'params': {
          'uid': hoyolabUid,
          'gids': 2,
        },
      }))['list'];

  return cards != null ? cards[0] : null;
}