listStorageObjects method
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);
}