From d1c3f8eef58b29eb8760eeb1ac03852a2387f927 Mon Sep 17 00:00:00 2001
From: Oren Hurvitz
Date: Mon, 31 Mar 2014 11:53:12 +0300
Subject: Added assets service method AssetsExist(), which returns whether the
given list of assets exist.
This method is used to optimize sending assets with embedded assets: e.g., when a Hypergrid visitor takes an item into the inventory.
---
OpenSim/Services/Interfaces/IAssetService.cs | 7 +++++++
1 file changed, 7 insertions(+)
(limited to 'OpenSim/Services/Interfaces/IAssetService.cs')
diff --git a/OpenSim/Services/Interfaces/IAssetService.cs b/OpenSim/Services/Interfaces/IAssetService.cs
index 3c469c6..8f1e039 100644
--- a/OpenSim/Services/Interfaces/IAssetService.cs
+++ b/OpenSim/Services/Interfaces/IAssetService.cs
@@ -75,6 +75,13 @@ namespace OpenSim.Services.Interfaces
///
/// True if the id was parseable, false otherwise
bool Get(string id, Object sender, AssetRetrieved handler);
+
+ ///
+ /// Check if assets exist in the database.
+ ///
+ /// The assets' IDs
+ /// For each asset: true if it exists, false otherwise
+ bool[] AssetsExist(string[] ids);
///
/// Creates a new asset
--
cgit v1.1