2021-12-09 14:23:33 -06:00
|
|
|
|
namespace OpenMetaverse.TestClient
|
2009-03-26 23:44:50 +00:00
|
|
|
|
{
|
|
|
|
|
|
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";
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|