29 using System.Collections.Generic;
32 namespace OpenSim.Services.Interfaces
57 if (kvp.ContainsKey(
"UserID"))
58 UserID = kvp[
"UserID"].ToString();
60 if (kvp.ContainsKey(
"HomeRegionID"))
61 UUID.TryParse(kvp[
"HomeRegionID"].ToString(), out HomeRegionID);
62 if (kvp.ContainsKey(
"HomePosition"))
63 Vector3.TryParse(kvp[
"HomePosition"].ToString(), out HomePosition);
64 if (kvp.ContainsKey(
"HomeLookAt"))
65 Vector3.TryParse(kvp[
"HomeLookAt"].ToString(), out HomeLookAt);
67 if (kvp.ContainsKey(
"LastRegionID"))
68 UUID.TryParse(kvp[
"LastRegionID"].ToString(), out LastRegionID);
69 if (kvp.ContainsKey(
"LastPosition"))
70 Vector3.TryParse(kvp[
"LastPosition"].ToString(), out LastPosition);
71 if (kvp.ContainsKey(
"LastLookAt"))
72 Vector3.TryParse(kvp[
"LastLookAt"].ToString(), out LastLookAt);
74 if (kvp.ContainsKey(
"Login"))
75 DateTime.TryParse(kvp[
"Login"].ToString(), out Login);
76 if (kvp.ContainsKey(
"Logout"))
77 DateTime.TryParse(kvp[
"Logout"].ToString(), out Logout);
78 if (kvp.ContainsKey(
"Online"))
79 Boolean.TryParse(kvp[
"Online"].ToString(), out Online);
85 Dictionary<string, object> result =
new Dictionary<string, object>();
86 result[
"UserID"] = UserID;
88 result[
"HomeRegionID"] = HomeRegionID.ToString();
89 result[
"HomePosition"] = HomePosition.ToString();
90 result[
"HomeLookAt"] = HomeLookAt.ToString();
92 result[
"LastRegionID"] = LastRegionID.ToString();
93 result[
"LastPosition"] = LastPosition.ToString();
94 result[
"LastLookAt"] = LastLookAt.ToString();
96 result[
"Online"] = Online.ToString();
97 result[
"Login"] = Login.ToString();
98 result[
"Logout"] = Logout.ToString();
117 bool LoggedOut(
string userID, UUID sessionID, UUID regionID, Vector3 lastPosition, Vector3 lastLookAt);
119 bool SetHome(
string userID, UUID homeID, Vector3 homePosition, Vector3 homeLookAt);
130 bool SetLastPosition(
string userID, UUID sessionID, UUID regionID, Vector3 lastPosition, Vector3 lastLookAt);
virtual Dictionary< string, object > ToKeyValuePairs()
GridUserInfo(Dictionary< string, object > kvp)
Records user information specific to a grid but which is not part of a user's account.