listTournamentRecordsAroundOwner method
Future<TournamentRecordList>
listTournamentRecordsAroundOwner({
- required Session session,
- required String tournamentId,
- required String ownerId,
- int? expiry,
- 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());
}