listTournamentRecords method
Future<TournamentRecordList>
listTournamentRecords({
- required Session session,
- required String tournamentId,
- Iterable<
String> ? ownerIds, - int? expiry,
- int limit = defaultLimit,
- String? cursor,
override
Listing records
Players can list tournament records.
Implementation
@override
Future<model.TournamentRecordList> listTournamentRecords({
required model.Session session,
required String tournamentId,
Iterable<String>? ownerIds,
int? expiry,
int limit = defaultLimit,
String? cursor,
}) async {
_session = session;
final res = await _api.v2TournamentTournamentIdGet(
tournamentId: tournamentId,
cursor: cursor,
expiry: expiry?.toString(),
limit: limit,
);
return model.TournamentRecordList.fromJson(res.body!.toJson());
}