getCurrentPlayerRankingScore static method

Future<RankingScore> getCurrentPlayerRankingScore(
  1. String rankingId,
  2. int timeDimension
)

Obtains the score of a player on a specified leaderboard in a specified time frame.

Implementation

static Future<RankingScore> getCurrentPlayerRankingScore(
  String rankingId,
  int timeDimension,
) async {
  final dynamic response = await _channel.invokeMethod(
    'RankingsClient.getCurrentPlayerRankingScore',
    <String, dynamic>{
      'rankingId': rankingId,
      'timeDimension': timeDimension,
    },
  );
  return RankingScore.fromMap(Map<dynamic, dynamic>.from(response));
}