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);
_session = session;
final res = await _api.nakamaListLeaderboardRecords(
leaderboardId: leaderboardId,
ownerIds: ownerIds,
limit: limit,
cursor: cursor,
expiry: expiry,
);
return LeaderboardRecordList()..mergeFromProto3Json(res.body!.toJson());
}