* Renamed methods on IUserData

This commit is contained in:
lbsa71
2007-09-24 01:31:00 +00:00
parent ce071417d4
commit 47256cebda
7 changed files with 92 additions and 84 deletions

View File

@@ -76,7 +76,7 @@ namespace OpenSim.Framework.Data.SQLite
/// </summary>
/// <param name="uuid">The users UUID</param>
/// <returns>A user profile</returns>
public UserProfileData getUserByUUID(LLUUID uuid)
public UserProfileData GetUserByUUID(LLUUID uuid)
{
lock (ds) {
DataRow row = ds.Tables["users"].Rows.Find(uuid);
@@ -98,9 +98,9 @@ namespace OpenSim.Framework.Data.SQLite
/// </summary>
/// <param name="name">The users account name</param>
/// <returns>A matching users profile</returns>
public UserProfileData getUserByName(string name)
public UserProfileData GetUserByName(string name)
{
return getUserByName(name.Split(' ')[0], name.Split(' ')[1]);
return GetUserByName(name.Split(' ')[0], name.Split(' ')[1]);
}
/// <summary>
@@ -109,7 +109,7 @@ namespace OpenSim.Framework.Data.SQLite
/// <param name="fname">The first part of the users account name</param>
/// <param name="lname">The second part of the users account name</param>
/// <returns>A matching users profile</returns>
public UserProfileData getUserByName(string fname, string lname)
public UserProfileData GetUserByName(string fname, string lname)
{
string select = "surname = '" + lname + "' and username = '" + fname + "'";
lock (ds) {
@@ -132,11 +132,11 @@ namespace OpenSim.Framework.Data.SQLite
/// </summary>
/// <param name="uuid">The users account ID</param>
/// <returns>A matching users profile</returns>
public UserAgentData getAgentByUUID(LLUUID uuid)
public UserAgentData GetAgentByUUID(LLUUID uuid)
{
try
{
return getUserByUUID(uuid).currentAgent;
return GetUserByUUID(uuid).currentAgent;
}
catch (Exception)
{
@@ -149,9 +149,9 @@ namespace OpenSim.Framework.Data.SQLite
/// </summary>
/// <param name="name">The account name</param>
/// <returns>The users session agent</returns>
public UserAgentData getAgentByName(string name)
public UserAgentData GetAgentByName(string name)
{
return getAgentByName(name.Split(' ')[0], name.Split(' ')[1]);
return GetAgentByName(name.Split(' ')[0], name.Split(' ')[1]);
}
/// <summary>
@@ -160,11 +160,11 @@ namespace OpenSim.Framework.Data.SQLite
/// <param name="fname">The first part of the users account name</param>
/// <param name="lname">The second part of the users account name</param>
/// <returns>A user agent</returns>
public UserAgentData getAgentByName(string fname, string lname)
public UserAgentData GetAgentByName(string fname, string lname)
{
try
{
return getUserByName(fname,lname).currentAgent;
return GetUserByName(fname,lname).currentAgent;
}
catch (Exception)
{
@@ -176,7 +176,7 @@ namespace OpenSim.Framework.Data.SQLite
/// Creates a new user profile
/// </summary>
/// <param name="user">The profile to add to the database</param>
public void addNewUserProfile(UserProfileData user)
public void AddNewUserProfile(UserProfileData user)
{
DataTable users = ds.Tables["users"];
lock (ds) {
@@ -217,10 +217,10 @@ namespace OpenSim.Framework.Data.SQLite
/// </summary>
/// <param name="user">The profile to add to the database</param>
/// <returns>True on success, false on error</returns>
public bool updateUserProfile(UserProfileData user)
public bool UpdateUserProfile(UserProfileData user)
{
try {
addNewUserProfile(user);
AddNewUserProfile(user);
return true;
} catch (Exception) {
return false;
@@ -231,7 +231,7 @@ namespace OpenSim.Framework.Data.SQLite
/// Creates a new user agent
/// </summary>
/// <param name="agent">The agent to add to the database</param>
public void addNewUserAgent(UserAgentData agent)
public void AddNewUserAgent(UserAgentData agent)
{
// Do nothing. yet.
}
@@ -243,7 +243,7 @@ namespace OpenSim.Framework.Data.SQLite
/// <param name="to">End account</param>
/// <param name="amount">The amount to move</param>
/// <returns>Success?</returns>
public bool moneyTransferRequest(LLUUID from, LLUUID to, uint amount)
public bool MoneyTransferRequest(LLUUID from, LLUUID to, uint amount)
{
return true;
}
@@ -256,7 +256,7 @@ namespace OpenSim.Framework.Data.SQLite
/// <param name="to">Recievers account</param>
/// <param name="item">Inventory item</param>
/// <returns>Success?</returns>
public bool inventoryTransferRequest(LLUUID from, LLUUID to, LLUUID item)
public bool InventoryTransferRequest(LLUUID from, LLUUID to, LLUUID item)
{
return true;
}
@@ -274,7 +274,7 @@ namespace OpenSim.Framework.Data.SQLite
/// Returns the version of the storage provider
/// </summary>
/// <returns>Storage provider version</returns>
public string getVersion()
public string GetVersion()
{
return "0.1";
}