2008-04-07 18:28:48 +00:00
|
|
|
/*
|
|
|
|
* Copyright (c) Contributors, http://opensimulator.org/
|
|
|
|
* See CONTRIBUTORS.TXT for a full list of copyright holders.
|
|
|
|
*
|
|
|
|
* Redistribution and use in source and binary forms, with or without
|
|
|
|
* modification, are permitted provided that the following conditions are met:
|
|
|
|
* * Redistributions of source code must retain the above copyright
|
|
|
|
* notice, this list of conditions and the following disclaimer.
|
|
|
|
* * Redistributions in binary form must reproduce the above copyright
|
|
|
|
* notice, this list of conditions and the following disclaimer in the
|
|
|
|
* documentation and/or other materials provided with the distribution.
|
2009-06-01 06:37:14 +00:00
|
|
|
* * Neither the name of the OpenSimulator Project nor the
|
2008-04-07 18:28:48 +00:00
|
|
|
* names of its contributors may be used to endorse or promote products
|
|
|
|
* derived from this software without specific prior written permission.
|
|
|
|
*
|
|
|
|
* THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY
|
|
|
|
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
|
|
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
|
|
* DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
|
|
|
|
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
|
|
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
|
|
|
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
|
|
|
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
|
|
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
|
|
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
*/
|
|
|
|
|
2008-09-06 07:52:41 +00:00
|
|
|
using OpenMetaverse;
|
2008-04-07 18:28:48 +00:00
|
|
|
|
|
|
|
namespace OpenSim.Framework
|
|
|
|
{
|
|
|
|
/// <summary>
|
2009-08-28 11:52:40 +00:00
|
|
|
/// User inventory folder
|
2008-04-07 18:28:48 +00:00
|
|
|
/// </summary>
|
2009-02-11 19:29:59 +00:00
|
|
|
public class InventoryFolderBase : InventoryNodeBase
|
2008-04-07 18:28:48 +00:00
|
|
|
{
|
|
|
|
/// <summary>
|
2008-05-16 01:22:11 +00:00
|
|
|
/// The folder this folder is contained in
|
2008-04-07 18:28:48 +00:00
|
|
|
/// </summary>
|
2008-09-06 07:52:41 +00:00
|
|
|
private UUID _parentID;
|
2008-04-07 18:28:48 +00:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Type of items normally stored in this folder
|
|
|
|
/// </summary>
|
2008-04-07 23:27:05 +00:00
|
|
|
private short _type;
|
2008-04-07 18:28:48 +00:00
|
|
|
|
|
|
|
/// <summary>
|
2008-04-08 23:37:02 +00:00
|
|
|
/// This is used to denote the version of the client, needed
|
|
|
|
/// because of the changes clients have with inventory from
|
|
|
|
/// time to time (1.19.1 caused us some fits there).
|
2008-04-07 18:28:48 +00:00
|
|
|
/// </summary>
|
2008-04-07 23:27:05 +00:00
|
|
|
private ushort _version;
|
2008-04-29 14:04:55 +00:00
|
|
|
|
2008-09-06 07:52:41 +00:00
|
|
|
public virtual UUID ParentID
|
2008-04-29 14:04:55 +00:00
|
|
|
{
|
|
|
|
get { return _parentID; }
|
|
|
|
set { _parentID = value; }
|
2008-04-07 23:27:05 +00:00
|
|
|
}
|
|
|
|
|
2008-06-25 19:18:51 +00:00
|
|
|
public virtual short Type
|
2008-04-29 14:04:55 +00:00
|
|
|
{
|
|
|
|
get { return _type; }
|
|
|
|
set { _type = value; }
|
2008-04-07 23:27:05 +00:00
|
|
|
}
|
|
|
|
|
2008-06-25 19:18:51 +00:00
|
|
|
public virtual ushort Version
|
2008-04-29 14:04:55 +00:00
|
|
|
{
|
|
|
|
get { return _version; }
|
|
|
|
set { _version = value; }
|
2008-04-07 23:27:05 +00:00
|
|
|
}
|
2009-08-12 20:11:15 +00:00
|
|
|
|
|
|
|
public InventoryFolderBase()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
public InventoryFolderBase(UUID id)
|
|
|
|
{
|
|
|
|
ID = id;
|
|
|
|
}
|
|
|
|
|
2009-08-19 05:17:47 +00:00
|
|
|
public InventoryFolderBase(UUID id, UUID owner)
|
|
|
|
{
|
|
|
|
ID = id;
|
|
|
|
Owner = owner;
|
|
|
|
}
|
|
|
|
|
2009-08-12 20:11:15 +00:00
|
|
|
public InventoryFolderBase(UUID id, string name, UUID owner, short type, UUID parent, ushort version)
|
|
|
|
{
|
|
|
|
ID = id;
|
|
|
|
Name = name;
|
|
|
|
Owner = owner;
|
|
|
|
Type = type;
|
|
|
|
ParentID = parent;
|
|
|
|
Version = version;
|
|
|
|
}
|
2008-04-07 18:28:48 +00:00
|
|
|
}
|
2008-09-06 07:52:41 +00:00
|
|
|
}
|