diff --git a/Programs/examples/TestClient/Commands/Inventory/EmptyLostAndFound.cs b/Programs/examples/TestClient/Commands/Inventory/EmptyLostAndFound.cs new file mode 100644 index 00000000..ce251a19 --- /dev/null +++ b/Programs/examples/TestClient/Commands/Inventory/EmptyLostAndFound.cs @@ -0,0 +1,33 @@ +using System; +using System.Collections.Generic; +using OpenMetaverse; +using OpenMetaverse.Packets; + +namespace OpenMetaverse.TestClient +{ + public class EmptyLostAndCommand : Command + { + /// + /// TestClient command to download and display a notecard asset + /// + /// + public EmptyLostAndCommand(TestClient testClient) + { + Name = "emptylostandfound"; + Description = "Empty inventory Lost And Found folder"; + Category = CommandCategory.Inventory; + } + + /// + /// Exectute the command + /// + /// + /// + /// + public override string Execute(string[] args, UUID fromAgentID) + { + Client.Inventory.EmptyLostAndFound(); + return "Lost And Found Emptied"; + } + } +} diff --git a/Programs/examples/TestClient/Commands/Inventory/EmptyTrashCommand.cs b/Programs/examples/TestClient/Commands/Inventory/EmptyTrashCommand.cs new file mode 100644 index 00000000..264bce20 --- /dev/null +++ b/Programs/examples/TestClient/Commands/Inventory/EmptyTrashCommand.cs @@ -0,0 +1,33 @@ +using System; +using System.Collections.Generic; +using OpenMetaverse; +using OpenMetaverse.Packets; + +namespace OpenMetaverse.TestClient +{ + public class EmptyTrashCommand : Command + { + /// + /// TestClient command to download and display a notecard asset + /// + /// + public EmptyTrashCommand(TestClient testClient) + { + Name = "emptytrash"; + Description = "Empty inventory Trash folder"; + Category = CommandCategory.Inventory; + } + + /// + /// Exectute the command + /// + /// + /// + /// + public override string Execute(string[] args, UUID fromAgentID) + { + Client.Inventory.EmptyTrash(); + return "Trash Emptied"; + } + } +}