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:
@@ -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";
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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";
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user