From b64699b32c3b318c59dcbeef4503d125cafb7be2 Mon Sep 17 00:00:00 2001 From: Jim Radford Date: Thu, 26 Mar 2009 23:44:50 +0000 Subject: [PATCH] LIBOMV-427 Adds TestClient commands to empty Trash and Lost and Found folders git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2546 52acb1d6-8a22-11de-b505-999d5b087335 --- .../Commands/Inventory/EmptyLostAndFound.cs | 33 +++++++++++++++++++ .../Commands/Inventory/EmptyTrashCommand.cs | 33 +++++++++++++++++++ 2 files changed, 66 insertions(+) create mode 100644 Programs/examples/TestClient/Commands/Inventory/EmptyLostAndFound.cs create mode 100644 Programs/examples/TestClient/Commands/Inventory/EmptyTrashCommand.cs 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"; + } + } +}