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 {
  final res = await _client.listTournamentRecordsAroundOwner(
    api.ListTournamentRecordsAroundOwnerRequest(
      expiry: expiry == null ? null : api.Int64Value(value: Int64(expiry)),
      limit: api.UInt32Value(value: limit),
      ownerId: ownerId,
      tournamentId: tournamentId,
    ),
    options: _getSessionCallOptions(session),
  );

  return model.TournamentRecordList.fromDto(res);
}