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 {
final res = await _client.listTournamentRecords(
api.ListTournamentRecordsRequest(
cursor: cursor,
expiry: expiry == null ? null : api.Int64Value(value: Int64(expiry)),
limit: api.Int32Value(value: limit),
ownerIds: ownerIds,
tournamentId: tournamentId,
),
options: _getSessionCallOptions(session),
);
return model.TournamentRecordList.fromDto(res);
}