aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenGridServices
diff options
context:
space:
mode:
Diffstat (limited to 'OpenGridServices')
-rw-r--r--OpenGridServices/OpenGrid.Framework.Data/InventoryData.cs57
1 files changed, 57 insertions, 0 deletions
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 @@
1using System; 1using System;
2using System.Collections.Generic; 2using System.Collections.Generic;
3using System.Text; 3using System.Text;
4using libsecondlife;
4 5
5namespace OpenGrid.Framework.Data 6namespace OpenGrid.Framework.Data
6{ 7{
8 public class InventoryItemBase
9 {
10 LLUUID inventoryID;
11 LLUUID assetID;
12 int type;
13 LLUUID parentFolderID;
14 LLUUID avatarID;
15 string inventoryName;
16 string inventoryDescription;
17 uint inventoryNextPermissions;
18 uint inventoryCurrentPermissions;
19 }
20
21 public class InventoryFolderBase
22 {
23 string name;
24 LLUUID agentID;
25 LLUUID parentID;
26 LLUUID folderID;
27 }
28
7 public interface IInventoryData 29 public interface IInventoryData
8 { 30 {
9 /// <summary> 31 /// <summary>
@@ -27,5 +49,40 @@ namespace OpenGrid.Framework.Data
27 /// </summary> 49 /// </summary>
28 /// <returns>A string containing the plugin version</returns> 50 /// <returns>A string containing the plugin version</returns>
29 string getVersion(); 51 string getVersion();
52
53 /// <summary>
54 /// Returns a list of inventory items contained within the specified folder
55 /// </summary>
56 /// <param name="folderID">The UUID of the target folder</param>
57 /// <returns>A List of InventoryItemBase items</returns>
58 List<InventoryItemBase> getInventoryInFolder(LLUUID folderID);
59
60 /// <summary>
61 /// Returns a list of folders in the users inventory root.
62 /// </summary>
63 /// <param name="user">The UUID of the user who is having inventory being returned</param>
64 /// <returns>A list of folders</returns>
65 List<InventoryFolderBase> getUserRootFolders(LLUUID user);
66
67 /// <summary>
68 /// Returns a list of inventory folders contained in the folder 'parentID'
69 /// </summary>
70 /// <param name="parentID">The folder to get subfolders for</param>
71 /// <returns>A list of inventory folders</returns>
72 List<InventoryFolderBase> getInventoryFolders(LLUUID parentID);
73
74 /// <summary>
75 /// Returns an inventory item by its UUID
76 /// </summary>
77 /// <param name="item">The UUID of the item to be returned</param>
78 /// <returns>A class containing item information</returns>
79 InventoryItemBase getInventoryItem(LLUUID item);
80
81 /// <summary>
82 /// Returns a specified inventory folder by its UUID
83 /// </summary>
84 /// <param name="folder">The UUID of the folder to be returned</param>
85 /// <returns>A class containing folder information</returns>
86 InventoryFolderBase getInventoryFolder(LLUUID folder);
30 } 87 }
31} 88}