Shelling out a Inventory framework a bit more.
parent
2511a10c99
commit
c955e2fe9b
|
@ -1,9 +1,31 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
using libsecondlife;
|
||||||
|
|
||||||
namespace OpenGrid.Framework.Data
|
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
|
public interface IInventoryData
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -27,5 +49,40 @@ namespace OpenGrid.Framework.Data
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns>A string containing the plugin version</returns>
|
/// <returns>A string containing the plugin version</returns>
|
||||||
string getVersion();
|
string getVersion();
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns a list of inventory items contained within the specified folder
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="folderID">The UUID of the target folder</param>
|
||||||
|
/// <returns>A List of InventoryItemBase items</returns>
|
||||||
|
List<InventoryItemBase> getInventoryInFolder(LLUUID folderID);
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns a list of folders in the users inventory root.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="user">The UUID of the user who is having inventory being returned</param>
|
||||||
|
/// <returns>A list of folders</returns>
|
||||||
|
List<InventoryFolderBase> getUserRootFolders(LLUUID user);
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns a list of inventory folders contained in the folder 'parentID'
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="parentID">The folder to get subfolders for</param>
|
||||||
|
/// <returns>A list of inventory folders</returns>
|
||||||
|
List<InventoryFolderBase> getInventoryFolders(LLUUID parentID);
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns an inventory item by its UUID
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="item">The UUID of the item to be returned</param>
|
||||||
|
/// <returns>A class containing item information</returns>
|
||||||
|
InventoryItemBase getInventoryItem(LLUUID item);
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns a specified inventory folder by its UUID
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="folder">The UUID of the folder to be returned</param>
|
||||||
|
/// <returns>A class containing folder information</returns>
|
||||||
|
InventoryFolderBase getInventoryFolder(LLUUID folder);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue