ListLeaderboardRecordsRequest constructor

ListLeaderboardRecordsRequest({
  1. String? leaderboardId,
  2. Iterable<String>? ownerIds,
  3. Int32Value? limit,
  4. String? cursor,
  5. Int64Value? expiry,
})

Implementation

factory ListLeaderboardRecordsRequest({
  $core.String? leaderboardId,
  $core.Iterable<$core.String>? ownerIds,
  $1.Int32Value? limit,
  $core.String? cursor,
  $1.Int64Value? expiry,
}) {
  final _result = create();
  if (leaderboardId != null) {
    _result.leaderboardId = leaderboardId;
  }
  if (ownerIds != null) {
    _result.ownerIds.addAll(ownerIds);
  }
  if (limit != null) {
    _result.limit = limit;
  }
  if (cursor != null) {
    _result.cursor = cursor;
  }
  if (expiry != null) {
    _result.expiry = expiry;
  }
  return _result;
}