public Packet RemoveInventoryFolder(
            LLUUID folderID
            )
        {
            RemoveInventoryFolderPacket p = new RemoveInventoryFolderPacket();

            p.AgentData.AgentID   = AgentID;
            p.AgentData.SessionID = SessionID;

            p.FolderData    = new RemoveInventoryFolderPacket.FolderDataBlock[1];
            p.FolderData[0] = new RemoveInventoryFolderPacket.FolderDataBlock();

            p.FolderData[0].FolderID = folderID;

            return(p);
        }
		public Packet RemoveInventoryFolder(
			LLUUID folderID
			)
		{
            RemoveInventoryFolderPacket p = new RemoveInventoryFolderPacket();
            p.AgentData.AgentID = AgentID;
            p.AgentData.SessionID = SessionID;

            p.FolderData = new RemoveInventoryFolderPacket.FolderDataBlock[1];
            p.FolderData[0] = new RemoveInventoryFolderPacket.FolderDataBlock();

            p.FolderData[0].FolderID = folderID;

            return p;

		}
Beispiel #3
0
        public bool RemoveInventoryFolder(RemoveInventoryFolderPacket invPacket)
        {
            if (invPacket.AgentData.AgentID.Equals(libOwner))
                // Tell grid surfer to forward request to region, because the Library is served from there (!)
                return false;

            if (connected)
            {
                string uri = InventoryServerURL + "/" + AuthToken + "/RemoveFolder/";
                foreach (RemoveInventoryFolderPacket.FolderDataBlock block in invPacket.FolderData)
                {
                    InventoryFolderBase folder = new InventoryFolderBase();
                    folder.ID = block.FolderID;
                    folder.Owner = invPacket.AgentData.AgentID;
                    OpenSimComms.InventoryFolderOperation(uri, folder, NullCallBack);
                }
            }
            // Tell grid surfer not to forward
            return true;
        }