From 4a8f43244160ca9324cc43a54ba64a51e10268bf Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Fri, 2 May 2008 12:35:24 +0000 Subject: minor refactoring. Change getName and GetVersion methods (yes the had different casings) to Name and Version properties for the User stores. --- OpenSim/Data/MSSQL/MSSQLUserData.cs | 8 ++++---- OpenSim/Data/MySQL/MySQLUserData.cs | 8 ++++---- OpenSim/Data/NHibernate/NHibernateUserData.cs | 15 ++------------- OpenSim/Data/SQLite/SQLiteUserData.cs | 8 ++++---- OpenSim/Data/UserDataBase.cs | 4 ++-- 5 files changed, 16 insertions(+), 27 deletions(-) (limited to 'OpenSim/Data') diff --git a/OpenSim/Data/MSSQL/MSSQLUserData.cs b/OpenSim/Data/MSSQL/MSSQLUserData.cs index 91c1b34..a4c5068 100644 --- a/OpenSim/Data/MSSQL/MSSQLUserData.cs +++ b/OpenSim/Data/MSSQL/MSSQLUserData.cs @@ -775,18 +775,18 @@ namespace OpenSim.Data.MSSQL /// Database provider name /// /// Provider name - override public string getName() + override public string Name { - return "MSSQL Userdata Interface"; + get {return "MSSQL Userdata Interface";} } /// /// Database provider version /// /// provider version - override public string GetVersion() + override public string Version { - return database.getVersion(); + get {return database.getVersion();} } /// diff --git a/OpenSim/Data/MySQL/MySQLUserData.cs b/OpenSim/Data/MySQL/MySQLUserData.cs index a01bf60..c374bf2 100644 --- a/OpenSim/Data/MySQL/MySQLUserData.cs +++ b/OpenSim/Data/MySQL/MySQLUserData.cs @@ -659,18 +659,18 @@ namespace OpenSim.Data.MySQL /// Database provider name /// /// Provider name - override public string getName() + override public string Name { - return "MySQL Userdata Interface"; + get {return "MySQL Userdata Interface";} } /// /// Database provider version /// /// provider version - override public string GetVersion() + override public string Version { - return "0.1"; + get {return "0.1";} } } } diff --git a/OpenSim/Data/NHibernate/NHibernateUserData.cs b/OpenSim/Data/NHibernate/NHibernateUserData.cs index f142ce9..2e55e03 100644 --- a/OpenSim/Data/NHibernate/NHibernateUserData.cs +++ b/OpenSim/Data/NHibernate/NHibernateUserData.cs @@ -265,22 +265,11 @@ namespace OpenSim.Data.NHibernate return new List(); } - - public override string getName() - { - return Name; - } - - public string Name { + public override string Name { get { return "NHibernate"; } } - public override string GetVersion() - { - return Version; - } - - public string Version { + public override string Version { get { return "0.1"; } } diff --git a/OpenSim/Data/SQLite/SQLiteUserData.cs b/OpenSim/Data/SQLite/SQLiteUserData.cs index 90dec3e..bca5401 100644 --- a/OpenSim/Data/SQLite/SQLiteUserData.cs +++ b/OpenSim/Data/SQLite/SQLiteUserData.cs @@ -505,18 +505,18 @@ namespace OpenSim.Data.SQLite /// Returns the name of the storage provider /// /// Storage provider name - override public string getName() + override public string Name { - return "Sqlite Userdata"; + get {return "Sqlite Userdata";} } /// /// Returns the version of the storage provider /// /// Storage provider version - override public string GetVersion() + override public string Version { - return "0.1"; + get {return "0.1";} } /*********************************************************************** diff --git a/OpenSim/Data/UserDataBase.cs b/OpenSim/Data/UserDataBase.cs index 84ff9b3..fc33376 100644 --- a/OpenSim/Data/UserDataBase.cs +++ b/OpenSim/Data/UserDataBase.cs @@ -49,8 +49,8 @@ namespace OpenSim.Data public abstract List GetUserFriendList(LLUUID friendlistowner); public abstract bool MoneyTransferRequest(LLUUID from, LLUUID to, uint amount); public abstract bool InventoryTransferRequest(LLUUID from, LLUUID to, LLUUID inventory); - public abstract string GetVersion(); - public abstract string getName(); + public abstract string Version {get;} + public abstract string Name {get;} public abstract void Initialise(); public abstract List GeneratePickerResults(LLUUID queryID, string query); public abstract UserAppearance GetUserAppearance(LLUUID user); -- cgit v1.1