From a7fe1b63f31fdfe438ed52512ccd277f9e33ff2e Mon Sep 17 00:00:00 2001 From: Adam Frisby Date: Fri, 1 Jun 2007 23:34:37 +0000 Subject: * ZOMG Wtf Comments? * OpenGrid.Framework.Data is now well documented --- .../OpenGrid.Framework.Data/InventoryData.cs | 74 ++++++++++++++++++++++ 1 file changed, 74 insertions(+) (limited to 'OpenGridServices/OpenGrid.Framework.Data/InventoryData.cs') diff --git a/OpenGridServices/OpenGrid.Framework.Data/InventoryData.cs b/OpenGridServices/OpenGrid.Framework.Data/InventoryData.cs index b43557d..88e58d6 100644 --- a/OpenGridServices/OpenGrid.Framework.Data/InventoryData.cs +++ b/OpenGridServices/OpenGrid.Framework.Data/InventoryData.cs @@ -1,3 +1,29 @@ +/* +* Copyright (c) OpenSim project, http://sim.opensecondlife.org/ +* +* Redistribution and use in source and binary forms, with or without +* modification, are permitted provided that the following conditions are met: +* * Redistributions of source code must retain the above copyright +* notice, this list of conditions and the following disclaimer. +* * Redistributions in binary form must reproduce the above copyright +* notice, this list of conditions and the following disclaimer in the +* documentation and/or other materials provided with the distribution. +* * Neither the name of the nor the +* names of its contributors may be used to endorse or promote products +* derived from this software without specific prior written permission. +* +* THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY +* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +* DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY +* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +* +*/ using System; using System.Collections.Generic; using System.Text; @@ -5,27 +31,75 @@ using libsecondlife; namespace OpenGrid.Framework.Data { + /// + /// Inventory Item - contains all the properties associated with an individual inventory piece. + /// public class InventoryItemBase { + /// + /// A UUID containing the ID for the inventory item itself + /// public LLUUID inventoryID; + /// + /// The UUID of the associated asset on the asset server + /// public LLUUID assetID; + /// + /// This is an enumerated value determining the type of asset (eg Notecard, Sound, Object, etc) + /// public int type; + /// + /// The folder this item is contained in (NULL_KEY = Inventory Root) + /// public LLUUID parentFolderID; + /// + /// The owner of this inventory item + /// public LLUUID avatarID; + /// + /// The name of the inventory item (must be less than 64 characters) + /// public string inventoryName; + /// + /// The description of the inventory item (must be less than 64 characters) + /// public string inventoryDescription; + /// + /// A mask containing the permissions for the next owner (cannot be enforced) + /// public uint inventoryNextPermissions; + /// + /// A mask containing permissions for the current owner (cannot be enforced) + /// public uint inventoryCurrentPermissions; } + /// + /// A Class for folders which contain users inventory + /// public class InventoryFolderBase { + /// + /// The name of the folder (64 characters or less) + /// public string name; + /// + /// The agent who's inventory this is contained by + /// public LLUUID agentID; + /// + /// The folder this folder is contained in (NULL_KEY for root) + /// public LLUUID parentID; + /// + /// The UUID for this folder + /// public LLUUID folderID; } + /// + /// An interface for accessing inventory data from a storage server + /// public interface IInventoryData { /// -- cgit v1.1