mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 06:06:06 +08:00
patch a test
This commit is contained in:
@@ -121,7 +121,22 @@ namespace OpenSim.Tests.Common
|
||||
return true;
|
||||
}
|
||||
|
||||
public bool MoveItem(string id, string newParent) { throw new NotImplementedException(); }
|
||||
public bool MoveItem(string id, string newParent)
|
||||
{
|
||||
UUID uid = new UUID(id);
|
||||
UUID upid = new UUID(newParent);
|
||||
m_allItems[uid].parentFolderID = upid;
|
||||
return true;
|
||||
}
|
||||
|
||||
public bool MoveItems(string[] ids, string[] newParents)
|
||||
{
|
||||
if(ids.Length != newParents.Length)
|
||||
return false;
|
||||
for(int i =0; i< ids.Length;++i)
|
||||
MoveItem(ids[i], newParents[i]);
|
||||
return true;
|
||||
}
|
||||
|
||||
public bool MoveFolder(string id, string newParent)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user