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
This commit is contained in:
Jim Radford
2009-03-26 23:44:50 +00:00
parent 2180899da3
commit b64699b32c
2 changed files with 66 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
using System;
using System.Collections.Generic;
using OpenMetaverse;
using OpenMetaverse.Packets;
namespace OpenMetaverse.TestClient
{
public class EmptyLostAndCommand : Command
{
/// <summary>
/// TestClient command to download and display a notecard asset
/// </summary>
/// <param name="testClient"></param>
public EmptyLostAndCommand(TestClient testClient)
{
Name = "emptylostandfound";
Description = "Empty inventory Lost And Found folder";
Category = CommandCategory.Inventory;
}
/// <summary>
/// Exectute the command
/// </summary>
/// <param name="args"></param>
/// <param name="fromAgentID"></param>
/// <returns></returns>
public override string Execute(string[] args, UUID fromAgentID)
{
Client.Inventory.EmptyLostAndFound();
return "Lost And Found Emptied";
}
}
}

View File

@@ -0,0 +1,33 @@
using System;
using System.Collections.Generic;
using OpenMetaverse;
using OpenMetaverse.Packets;
namespace OpenMetaverse.TestClient
{
public class EmptyTrashCommand : Command
{
/// <summary>
/// TestClient command to download and display a notecard asset
/// </summary>
/// <param name="testClient"></param>
public EmptyTrashCommand(TestClient testClient)
{
Name = "emptytrash";
Description = "Empty inventory Trash folder";
Category = CommandCategory.Inventory;
}
/// <summary>
/// Exectute the command
/// </summary>
/// <param name="args"></param>
/// <param name="fromAgentID"></param>
/// <returns></returns>
public override string Execute(string[] args, UUID fromAgentID)
{
Client.Inventory.EmptyTrash();
return "Trash Emptied";
}
}
}