From 56158443b39193f968d1c3f18e8c71b26adb8e38 Mon Sep 17 00:00:00 2001 From: Mike Mazur Date: Thu, 5 Mar 2009 08:30:08 +0000 Subject: Implemented all Inventory frontend handlers. This doesn't mean they all work as expected, though. More changes to come as testing unveils bugs. --- .../Grid/AssetInventoryServer/InventoryObjects.cs | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'OpenSim/Grid/AssetInventoryServer/InventoryObjects.cs') diff --git a/OpenSim/Grid/AssetInventoryServer/InventoryObjects.cs b/OpenSim/Grid/AssetInventoryServer/InventoryObjects.cs index 5fa4274..4f42a20 100644 --- a/OpenSim/Grid/AssetInventoryServer/InventoryObjects.cs +++ b/OpenSim/Grid/AssetInventoryServer/InventoryObjects.cs @@ -99,6 +99,33 @@ namespace OpenSim.Grid.AssetInventoryServer public class InventoryFolderWithChildren : InventoryFolderBase { + public InventoryFolderWithChildren() + { + } + + public InventoryFolderWithChildren(InventoryFolderBase folder) + { + // from InventoryNodeBase + Name = folder.Name; + ID = folder.ID; + Owner = folder.Owner; + + // from InventoryFolderBase + ParentID = folder.ParentID; + Type = folder.Type; + Version = folder.Version; + } + + public InventoryFolderWithChildren(string name, UUID ownerID, UUID parentID, short assetType) + { + ID = UUID.Random(); + Name = name; + Owner = ownerID; + ParentID = parentID; + Type = assetType; + Version = 1; + } + [NonSerialized] public Dictionary Children = new Dictionary(); } -- cgit v1.1