listLeaderboardRecords method
Future<LeaderboardRecordList>
listLeaderboardRecords({
- required Session session,
- required String leaderboardId,
- List<
String> ? ownerIds, - int limit = 20,
- String? cursor,
- String? expiry,
override
Implementation
@override
Future<LeaderboardRecordList> listLeaderboardRecords({
required model.Session session,
required String leaderboardId,
List<String>? ownerIds,
int limit = 20,
String? cursor,
String? expiry,
}) async {
assert(limit > 0 && limit <= 100);
return await _client.listLeaderboardRecords(
ListLeaderboardRecordsRequest(
leaderboardId: leaderboardId,
ownerIds: ownerIds,
limit: Int32Value(value: limit),
cursor: cursor,
expiry:
expiry == null ? null : Int64Value(value: Int64(int.parse(expiry))),
),
options: _getSessionCallOptions(session),
);
}