diff options
author | Sean Dague | 2008-04-10 13:53:06 +0000 |
---|---|---|
committer | Sean Dague | 2008-04-10 13:53:06 +0000 |
commit | c176caeb05c2264654b764e4d010561da60c24fc (patch) | |
tree | 87e0cab128ecaac57c5995df4cf5048185fe383f /OpenSim/Data/MySQL/MySQLUserData.cs | |
parent | * Brings back map tile generation based on the terrain. The algorithm produc... (diff) | |
download | opensim-SC-c176caeb05c2264654b764e4d010561da60c24fc.zip opensim-SC-c176caeb05c2264654b764e4d010561da60c24fc.tar.gz opensim-SC-c176caeb05c2264654b764e4d010561da60c24fc.tar.bz2 opensim-SC-c176caeb05c2264654b764e4d010561da60c24fc.tar.xz |
moved fields to properties for UserDataProfile, which was
actually a little more work than I expected given the copious
use of out params.
Diffstat (limited to 'OpenSim/Data/MySQL/MySQLUserData.cs')
-rw-r--r-- | OpenSim/Data/MySQL/MySQLUserData.cs | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/OpenSim/Data/MySQL/MySQLUserData.cs b/OpenSim/Data/MySQL/MySQLUserData.cs index bd094f6..5654207 100644 --- a/OpenSim/Data/MySQL/MySQLUserData.cs +++ b/OpenSim/Data/MySQL/MySQLUserData.cs | |||
@@ -475,7 +475,7 @@ namespace OpenSim.Data.MySQL | |||
475 | override public UserAgentData GetAgentByName(string user, string last) | 475 | override public UserAgentData GetAgentByName(string user, string last) |
476 | { | 476 | { |
477 | UserProfileData profile = GetUserByName(user, last); | 477 | UserProfileData profile = GetUserByName(user, last); |
478 | return GetAgentByUUID(profile.UUID); | 478 | return GetAgentByUUID(profile.Id); |
479 | } | 479 | } |
480 | 480 | ||
481 | override public void StoreWebLoginKey(LLUUID AgentID, LLUUID WebLoginKey) | 481 | override public void StoreWebLoginKey(LLUUID AgentID, LLUUID WebLoginKey) |
@@ -547,14 +547,14 @@ namespace OpenSim.Data.MySQL | |||
547 | { | 547 | { |
548 | lock (database) | 548 | lock (database) |
549 | { | 549 | { |
550 | database.insertUserRow(user.UUID, user.username, user.surname, user.passwordHash, user.passwordSalt, | 550 | database.insertUserRow(user.Id, user.FirstName, user.SurName, user.PasswordHash, user.PasswordSalt, |
551 | user.homeRegion, user.homeLocation.X, user.homeLocation.Y, | 551 | user.HomeRegion, user.HomeLocation.X, user.HomeLocation.Y, |
552 | user.homeLocation.Z, | 552 | user.HomeLocation.Z, |
553 | user.homeLookAt.X, user.homeLookAt.Y, user.homeLookAt.Z, user.created, | 553 | user.HomeLookAt.X, user.HomeLookAt.Y, user.HomeLookAt.Z, user.Created, |
554 | user.lastLogin, user.userInventoryURI, user.userAssetURI, | 554 | user.LastLogin, user.UserInventoryURI, user.UserAssetURI, |
555 | user.profileCanDoMask, user.profileWantDoMask, | 555 | user.ProfileCanDoMask, user.ProfileWantDoMask, |
556 | user.profileAboutText, user.profileFirstText, user.profileImage, | 556 | user.ProfileAboutText, user.ProfileFirstText, user.ProfileImage, |
557 | user.profileFirstImage, user.webLoginKey); | 557 | user.ProfileFirstImage, user.WebLoginKey); |
558 | } | 558 | } |
559 | } | 559 | } |
560 | catch (Exception e) | 560 | catch (Exception e) |
@@ -590,11 +590,11 @@ namespace OpenSim.Data.MySQL | |||
590 | /// <param name="user">The profile data to use to update the DB</param> | 590 | /// <param name="user">The profile data to use to update the DB</param> |
591 | override public bool UpdateUserProfile(UserProfileData user) | 591 | override public bool UpdateUserProfile(UserProfileData user) |
592 | { | 592 | { |
593 | database.updateUserRow(user.UUID, user.username, user.surname, user.passwordHash, user.passwordSalt, | 593 | database.updateUserRow(user.Id, user.FirstName, user.SurName, user.PasswordHash, user.PasswordSalt, |
594 | user.homeRegion, user.homeLocation.X, user.homeLocation.Y, user.homeLocation.Z, user.homeLookAt.X, | 594 | user.HomeRegion, user.HomeLocation.X, user.HomeLocation.Y, user.HomeLocation.Z, user.HomeLookAt.X, |
595 | user.homeLookAt.Y, user.homeLookAt.Z, user.created, user.lastLogin, user.userInventoryURI, | 595 | user.HomeLookAt.Y, user.HomeLookAt.Z, user.Created, user.LastLogin, user.UserInventoryURI, |
596 | user.userAssetURI, user.profileCanDoMask, user.profileWantDoMask, user.profileAboutText, | 596 | user.UserAssetURI, user.ProfileCanDoMask, user.ProfileWantDoMask, user.ProfileAboutText, |
597 | user.profileFirstText, user.profileImage, user.profileFirstImage, user.webLoginKey); | 597 | user.ProfileFirstText, user.ProfileImage, user.ProfileFirstImage, user.WebLoginKey); |
598 | return true; | 598 | return true; |
599 | } | 599 | } |
600 | 600 | ||