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 {
_session = session;
final res = await _api.v2StorageCollectionGet(
collection: collection,
cursor: cursor,
userId: userId,
limit: limit,
);
return model.StorageObjectList.fromJson(res.body!.toJson());
}