listTournamentRecordsAroundOwner method

  1. @override
Future<TournamentRecordList> listTournamentRecordsAroundOwner({
  1. required Session session,
  2. required String tournamentId,
  3. required String ownerId,
  4. int? expiry,
  5. int limit = defaultLimit,
})
override

Listing records around a user**

Similarly to leaderboards, Sagi-shi players can get other player scores around them.

Implementation

@override
Future<model.TournamentRecordList> listTournamentRecordsAroundOwner({
  required model.Session session,
  required String tournamentId,
  required String ownerId,
  int? expiry,
  int limit = defaultLimit,
}) async {
  _session = session;

  final res = await _api.v2TournamentTournamentIdOwnerOwnerIdGet(
    ownerId: ownerId,
    tournamentId: tournamentId,
    expiry: expiry?.toString(),
    limit: limit,
  );

  return model.TournamentRecordList.fromJson(res.body!.toJson());
}