diff options
author | Sean Dague | 2008-04-10 14:37:17 +0000 |
---|---|---|
committer | Sean Dague | 2008-04-10 14:37:17 +0000 |
commit | ef7dfae41c728d10cfe835cb256958c354449f1b (patch) | |
tree | 98affd8fd75500ece10eb471ba405709e2d389f4 /OpenSim/Data/SQLite | |
parent | further renaming of properties for clarity (diff) | |
download | opensim-SC-ef7dfae41c728d10cfe835cb256958c354449f1b.zip opensim-SC-ef7dfae41c728d10cfe835cb256958c354449f1b.tar.gz opensim-SC-ef7dfae41c728d10cfe835cb256958c354449f1b.tar.bz2 opensim-SC-ef7dfae41c728d10cfe835cb256958c354449f1b.tar.xz |
changing UserAgentData to use properties. This caused more
grief than expected, as monodevelop doesn't like to refactor
properties of properties.
Diffstat (limited to 'OpenSim/Data/SQLite')
-rw-r--r-- | OpenSim/Data/SQLite/SQLiteUserData.cs | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/OpenSim/Data/SQLite/SQLiteUserData.cs b/OpenSim/Data/SQLite/SQLiteUserData.cs index 815c1bb..3ee0c03 100644 --- a/OpenSim/Data/SQLite/SQLiteUserData.cs +++ b/OpenSim/Data/SQLite/SQLiteUserData.cs | |||
@@ -674,18 +674,18 @@ namespace OpenSim.Data.SQLite | |||
674 | { | 674 | { |
675 | UserAgentData ua = new UserAgentData(); | 675 | UserAgentData ua = new UserAgentData(); |
676 | 676 | ||
677 | ua.UUID = new LLUUID((String) row["UUID"]); | 677 | ua.ProfileID = new LLUUID((String) row["UUID"]); |
678 | ua.agentIP = (String) row["agentIP"]; | 678 | ua.AgentIP = (String) row["agentIP"]; |
679 | ua.agentPort = Convert.ToUInt32(row["agentPort"]); | 679 | ua.AgentPort = Convert.ToUInt32(row["agentPort"]); |
680 | ua.agentOnline = Convert.ToBoolean(row["agentOnline"]); | 680 | ua.AgentOnline = Convert.ToBoolean(row["agentOnline"]); |
681 | ua.sessionID = new LLUUID((String) row["sessionID"]); | 681 | ua.SessionID = new LLUUID((String) row["sessionID"]); |
682 | ua.secureSessionID = new LLUUID((String) row["secureSessionID"]); | 682 | ua.SecureSessionID = new LLUUID((String) row["secureSessionID"]); |
683 | ua.regionID = new LLUUID((String) row["regionID"]); | 683 | ua.RegionID = new LLUUID((String) row["regionID"]); |
684 | ua.loginTime = Convert.ToInt32(row["loginTime"]); | 684 | ua.LoginTime = Convert.ToInt32(row["loginTime"]); |
685 | ua.logoutTime = Convert.ToInt32(row["logoutTime"]); | 685 | ua.LogoutTime = Convert.ToInt32(row["logoutTime"]); |
686 | ua.currentRegion = new LLUUID((String) row["currentRegion"]); | 686 | ua.CurrentRegion = new LLUUID((String) row["currentRegion"]); |
687 | ua.currentHandle = Convert.ToUInt64(row["currentHandle"]); | 687 | ua.CurrentHandle = Convert.ToUInt64(row["currentHandle"]); |
688 | ua.currentPos = new LLVector3( | 688 | ua.CurrentPos = new LLVector3( |
689 | Convert.ToSingle(row["currentPosX"]), | 689 | Convert.ToSingle(row["currentPosX"]), |
690 | Convert.ToSingle(row["currentPosY"]), | 690 | Convert.ToSingle(row["currentPosY"]), |
691 | Convert.ToSingle(row["currentPosZ"]) | 691 | Convert.ToSingle(row["currentPosZ"]) |
@@ -695,21 +695,21 @@ namespace OpenSim.Data.SQLite | |||
695 | 695 | ||
696 | private static void fillUserAgentRow(DataRow row, UserAgentData ua) | 696 | private static void fillUserAgentRow(DataRow row, UserAgentData ua) |
697 | { | 697 | { |
698 | row["UUID"] = ua.UUID; | 698 | row["UUID"] = ua.ProfileID; |
699 | row["agentIP"] = ua.agentIP; | 699 | row["agentIP"] = ua.AgentIP; |
700 | row["agentPort"] = ua.agentPort; | 700 | row["agentPort"] = ua.AgentPort; |
701 | row["agentOnline"] = ua.agentOnline; | 701 | row["agentOnline"] = ua.AgentOnline; |
702 | row["sessionID"] = ua.sessionID; | 702 | row["sessionID"] = ua.SessionID; |
703 | row["secureSessionID"] = ua.secureSessionID; | 703 | row["secureSessionID"] = ua.SecureSessionID; |
704 | row["regionID"] = ua.regionID; | 704 | row["regionID"] = ua.RegionID; |
705 | row["loginTime"] = ua.loginTime; | 705 | row["loginTime"] = ua.LoginTime; |
706 | row["logoutTime"] = ua.logoutTime; | 706 | row["logoutTime"] = ua.LogoutTime; |
707 | row["currentRegion"] = ua.currentRegion; | 707 | row["currentRegion"] = ua.CurrentRegion; |
708 | row["currentHandle"] = ua.currentHandle.ToString(); | 708 | row["currentHandle"] = ua.CurrentHandle.ToString(); |
709 | // vectors | 709 | // vectors |
710 | row["currentPosX"] = ua.currentPos.X; | 710 | row["currentPosX"] = ua.CurrentPos.X; |
711 | row["currentPosY"] = ua.currentPos.Y; | 711 | row["currentPosY"] = ua.CurrentPos.Y; |
712 | row["currentPosZ"] = ua.currentPos.Z; | 712 | row["currentPosZ"] = ua.CurrentPos.Z; |
713 | } | 713 | } |
714 | 714 | ||
715 | /*********************************************************************** | 715 | /*********************************************************************** |