diff options
Diffstat (limited to 'OpenSim/Framework/InventoryItemBase.cs')
-rw-r--r-- | OpenSim/Framework/InventoryItemBase.cs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/OpenSim/Framework/InventoryItemBase.cs b/OpenSim/Framework/InventoryItemBase.cs index 80f631e..0ee30bb 100644 --- a/OpenSim/Framework/InventoryItemBase.cs +++ b/OpenSim/Framework/InventoryItemBase.cs | |||
@@ -245,6 +245,25 @@ namespace OpenSim.Framework | |||
245 | void deleteInventoryFolder(LLUUID folder); | 245 | void deleteInventoryFolder(LLUUID folder); |
246 | } | 246 | } |
247 | 247 | ||
248 | public class InventoryCollection | ||
249 | { | ||
250 | public List<InventoryFolderBase> Folders; | ||
251 | public List<InventoryItemBase> AllItems; | ||
252 | public LLUUID UserID; | ||
253 | |||
254 | public InventoryCollection() | ||
255 | { | ||
256 | Folders = new List<InventoryFolderBase>(); | ||
257 | AllItems = new List<InventoryItemBase>(); | ||
258 | } | ||
259 | |||
260 | public InventoryCollection(List<InventoryFolderBase> folders, List<InventoryItemBase> allItems) | ||
261 | { | ||
262 | Folders = folders; | ||
263 | AllItems = allItems; | ||
264 | } | ||
265 | } | ||
266 | |||
248 | /* | 267 | /* |
249 | * .Net has some issues, serializing a dictionary, so we cannot reuse the InventoryFolder | 268 | * .Net has some issues, serializing a dictionary, so we cannot reuse the InventoryFolder |
250 | * class defined in Communications.Framework.Communications.Caches. So we serialize/deserialize | 269 | * class defined in Communications.Framework.Communications.Caches. So we serialize/deserialize |