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 {
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);
}