listStorageObjects method

  1. @override
Future<StorageObjectList> listStorageObjects({
  1. required Session session,
  2. String? collection,
  3. String? cursor,
  4. String? userId,
  5. int? limit,
})
override

Listing storage objects

Instead of doing multiple read requests with separate keys you can list all the storage objects the player has access to in a collection.

Implementation

@override
Future<model.StorageObjectList> listStorageObjects({
  required model.Session session,
  String? collection,
  String? cursor,
  String? userId,
  int? limit,
}) async {
  final res = await _client.listStorageObjects(
    api.ListStorageObjectsRequest(
      collection: collection,
      cursor: cursor,
      limit: api.Int32Value(value: limit),
      userId: userId,
    ),
    options: _getSessionCallOptions(session),
  );

  return model.StorageObjectList.fromDto(res);
}