From c955e2fe9b0b901e24826a6eefe866a418293b9a Mon Sep 17 00:00:00 2001 From: Adam Frisby Date: Thu, 31 May 2007 13:43:18 +0000 Subject: Shelling out a Inventory framework a bit more. --- .../OpenGrid.Framework.Data/InventoryData.cs | 57 ++++++++++++++++++++++ 1 file changed, 57 insertions(+) diff --git a/OpenGridServices/OpenGrid.Framework.Data/InventoryData.cs b/OpenGridServices/OpenGrid.Framework.Data/InventoryData.cs index 628868f..1d70c73 100644 --- a/OpenGridServices/OpenGrid.Framework.Data/InventoryData.cs +++ b/OpenGridServices/OpenGrid.Framework.Data/InventoryData.cs @@ -1,9 +1,31 @@ using System; using System.Collections.Generic; using System.Text; +using libsecondlife; namespace OpenGrid.Framework.Data { + public class InventoryItemBase + { + LLUUID inventoryID; + LLUUID assetID; + int type; + LLUUID parentFolderID; + LLUUID avatarID; + string inventoryName; + string inventoryDescription; + uint inventoryNextPermissions; + uint inventoryCurrentPermissions; + } + + public class InventoryFolderBase + { + string name; + LLUUID agentID; + LLUUID parentID; + LLUUID folderID; + } + public interface IInventoryData { /// @@ -27,5 +49,40 @@ namespace OpenGrid.Framework.Data /// /// A string containing the plugin version string getVersion(); + + /// + /// Returns a list of inventory items contained within the specified folder + /// + /// The UUID of the target folder + /// A List of InventoryItemBase items + List getInventoryInFolder(LLUUID folderID); + + /// + /// Returns a list of folders in the users inventory root. + /// + /// The UUID of the user who is having inventory being returned + /// A list of folders + List getUserRootFolders(LLUUID user); + + /// + /// Returns a list of inventory folders contained in the folder 'parentID' + /// + /// The folder to get subfolders for + /// A list of inventory folders + List getInventoryFolders(LLUUID parentID); + + /// + /// Returns an inventory item by its UUID + /// + /// The UUID of the item to be returned + /// A class containing item information + InventoryItemBase getInventoryItem(LLUUID item); + + /// + /// Returns a specified inventory folder by its UUID + /// + /// The UUID of the folder to be returned + /// A class containing folder information + InventoryFolderBase getInventoryFolder(LLUUID folder); } } -- cgit v1.1