From b6ae8b7ba7407970ee03ae9c0ebed0c08bb8a7c9 Mon Sep 17 00:00:00 2001
From: Justin Clarke Casey
Date: Tue, 5 May 2009 15:23:44 +0000
Subject: * Fix http://opensimulator.org/mantis/view.php?id=3585 * Make public
variables properties instead, as there is a difference
---
OpenSim/Framework/InventoryItemBase.cs | 38 ++++++++++++++++++++--------------
1 file changed, 22 insertions(+), 16 deletions(-)
diff --git a/OpenSim/Framework/InventoryItemBase.cs b/OpenSim/Framework/InventoryItemBase.cs
index 74b504e..61771ab 100644
--- a/OpenSim/Framework/InventoryItemBase.cs
+++ b/OpenSim/Framework/InventoryItemBase.cs
@@ -38,12 +38,12 @@ namespace OpenSim.Framework
///
/// The inventory type of the item. This is slightly different from the asset type in some situations.
///
- public int InvType;
+ public int InvType { get; set; }
///
/// The folder this item is contained in
///
- public UUID Folder;
+ public UUID Folder { get; set; }
///
/// The creator of this item
@@ -84,73 +84,79 @@ namespace OpenSim.Framework
///
/// The description of the inventory item (must be less than 64 characters)
///
- public string Description = String.Empty;
+ public string Description { get; set; }
///
///
///
- public uint NextPermissions;
+ public uint NextPermissions { get; set; }
///
/// A mask containing permissions for the current owner (cannot be enforced)
///
- public uint CurrentPermissions;
+ public uint CurrentPermissions { get; set; }
///
///
///
- public uint BasePermissions;
+ public uint BasePermissions { get; set; }
///
///
///
- public uint EveryOnePermissions;
+ public uint EveryOnePermissions { get; set; }
///
///
///
- public uint GroupPermissions;
+ public uint GroupPermissions { get; set; }
///
/// This is an enumerated value determining the type of asset (eg Notecard, Sound, Object, etc)
///
- public int AssetType;
+ public int AssetType { get; set; }
///
/// The UUID of the associated asset on the asset server
///
- public UUID AssetID;
+ public UUID AssetID { get; set; }
///
///
///
- public UUID GroupID;
+ public UUID GroupID { get; set; }
///
///
///
- public bool GroupOwned;
+ public bool GroupOwned { get; set; }
///
///
///
- public int SalePrice;
+ public int SalePrice { get; set; }
///
///
///
- public byte SaleType;
+ public byte SaleType { get; set; }
///
///
///
- public uint Flags;
+ public uint Flags { get; set; }
///
///
///
- public int CreationDate = (int)(DateTime.UtcNow - new DateTime(1970, 1, 1)).TotalSeconds;
+ public int CreationDate { get; set; }
+ public InventoryItemBase()
+ {
+ Description = String.Empty;
+ CreationDate = (int)(DateTime.UtcNow - new DateTime(1970, 1, 1)).TotalSeconds;
+ }
+
public object Clone()
{
return MemberwiseClone();
--
cgit v1.1