From a668a5b0d39f04497e5ea170e5af0e659a43febb Mon Sep 17 00:00:00 2001
From: Justin Clark-Casey (justincc)
Date: Fri, 14 Aug 2009 19:59:42 +0100
Subject: Add standard doc and standard doc formatting to IAssetService
---
OpenSim/Services/Interfaces/IAssetService.cs | 46 ++++++++++++++++++++++------
1 file changed, 37 insertions(+), 9 deletions(-)
(limited to 'OpenSim/Services')
diff --git a/OpenSim/Services/Interfaces/IAssetService.cs b/OpenSim/Services/Interfaces/IAssetService.cs
index ec8a71b..6dfe78d 100644
--- a/OpenSim/Services/Interfaces/IAssetService.cs
+++ b/OpenSim/Services/Interfaces/IAssetService.cs
@@ -34,25 +34,53 @@ namespace OpenSim.Services.Interfaces
public interface IAssetService
{
- // Three different ways to retrieve an asset
- //
+ ///
+ /// Get an asset synchronously.
+ ///
+ ///
+ ///
AssetBase Get(string id);
+
+ ///
+ /// Get an asset's metadata
+ ///
+ ///
+ ///
AssetMetadata GetMetadata(string id);
+
byte[] GetData(string id);
+ ///
+ /// Get an asset asynchronously
+ ///
+ /// The asset id
+ /// Represents the requester. Passed back via the handler
+ /// The handler to call back once the asset has been retrieved
+ /// True if the id was parseable, false otherwise
bool Get(string id, Object sender, AssetRetrieved handler);
- // Creates a new asset
- // Returns a random ID if none is passed into it
- //
+ ///
+ /// Creates a new asset
+ ///
+ /// Returns a random ID if none is passed into it
+ ///
+ ///
string Store(AssetBase asset);
- // Attachments and bare scripts need this!!
- //
+ ///
+ /// Update an asset's content
+ ///
+ /// Attachments and bare scripts need this!!
+ ///
+ ///
+ ///
bool UpdateContent(string id, byte[] data);
- // Kill an asset
- //
+ ///
+ /// Delete an asset
+ ///
+ ///
+ ///
bool Delete(string id);
}
}
--
cgit v1.1