From f43681510725f5b95fcb864a1f3e4b744fcaf992 Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Mon, 7 Apr 2008 23:15:35 +0000 Subject: Refactor InventoryItemBase to do the following: * wrap fields as Properties * rename some fields/properties to more sensible names * set style to PropName to match more standard C# approach --- OpenSim/Framework/InventoryItemBase.cs | 145 ++++++++++++++++++++++++++++++--- 1 file changed, 132 insertions(+), 13 deletions(-) (limited to 'OpenSim/Framework/InventoryItemBase.cs') diff --git a/OpenSim/Framework/InventoryItemBase.cs b/OpenSim/Framework/InventoryItemBase.cs index 7d146e7..03b47ca 100644 --- a/OpenSim/Framework/InventoryItemBase.cs +++ b/OpenSim/Framework/InventoryItemBase.cs @@ -40,66 +40,185 @@ namespace OpenSim.Framework /// /// A UUID containing the ID for the inventory item itself /// - public LLUUID inventoryID; + private LLUUID _id; /// /// The UUID of the associated asset on the asset server /// - public LLUUID assetID; + private LLUUID _assetID; /// /// This is an enumerated value determining the type of asset (eg Notecard, Sound, Object, etc) /// - public int assetType; + private int _assetType; /// /// The type of inventory item. (Can be slightly different to the asset type /// - public int invType; + private int _invType; /// /// The folder this item is contained in /// - public LLUUID parentFolderID; + private LLUUID _folder; /// /// The owner of this inventory item /// - public LLUUID avatarID; + private LLUUID _owner; /// /// The creator of this item /// - public LLUUID creatorsID; + private LLUUID _creator; /// /// The name of the inventory item (must be less than 64 characters) /// - public string inventoryName; + private string _name; /// /// The description of the inventory item (must be less than 64 characters) /// - public string inventoryDescription; + private string _description; /// /// A mask containing the permissions for the next owner (cannot be enforced) /// - public uint inventoryNextPermissions; + private uint _nextPermissions; /// /// A mask containing permissions for the current owner (cannot be enforced) /// - public uint inventoryCurrentPermissions; + private uint _currentPermissions; /// /// /// - public uint inventoryBasePermissions; + private uint _basePermissions; /// /// /// - public uint inventoryEveryOnePermissions; + private uint _everyOnePermissions; + + public LLUUID ID { + get { + return _id; + } + set { + _id = value; + } + } + + + + public int InvType { + get { + return _invType; + } + set { + _invType = value; + } + } + + public LLUUID Folder { + get { + return _folder; + } + set { + _folder = value; + } + } + + public LLUUID Owner { + get { + return _owner; + } + set { + _owner = value; + } + } + + public LLUUID Creator { + get { + return _creator; + } + set { + _creator = value; + } + } + + public string Name { + get { + return _name; + } + set { + _name = value; + } + } + + public string Description { + get { + return _description; + } + set { + _description = value; + } + } + + public uint NextPermissions { + get { + return _nextPermissions; + } + set { + _nextPermissions = value; + } + } + + public uint CurrentPermissions { + get { + return _currentPermissions; + } + set { + _currentPermissions = value; + } + } + + public uint BasePermissions { + get { + return _basePermissions; + } + set { + _basePermissions = value; + } + } + + public uint EveryOnePermissions { + get { + return _everyOnePermissions; + } + set { + _everyOnePermissions = value; + } + } + + public int AssetType { + get { + return _assetType; + } + set { + _assetType = value; + } + } + + public LLUUID AssetID { + get { + return _assetID; + } + set { + _assetID = value; + } + } } } -- cgit v1.1