diff options
author | Sean Dague | 2008-04-09 20:38:25 +0000 |
---|---|---|
committer | Sean Dague | 2008-04-09 20:38:25 +0000 |
commit | 69d5eb3cb24261b9eb400859d59adbcb79bc8cb2 (patch) | |
tree | fa89252bc617d8d5c5cf33d25300bf0c770077e1 /OpenSim | |
parent | NHibernate Inventory support. Lightly tested, but seems to work (diff) | |
download | opensim-SC_OLD-69d5eb3cb24261b9eb400859d59adbcb79bc8cb2.zip opensim-SC_OLD-69d5eb3cb24261b9eb400859d59adbcb79bc8cb2.tar.gz opensim-SC_OLD-69d5eb3cb24261b9eb400859d59adbcb79bc8cb2.tar.bz2 opensim-SC_OLD-69d5eb3cb24261b9eb400859d59adbcb79bc8cb2.tar.xz |
split out UserProfile
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Framework/UserAgentData.cs | 99 | ||||
-rw-r--r-- | OpenSim/Framework/UserProfileData.cs | 67 |
2 files changed, 99 insertions, 67 deletions
diff --git a/OpenSim/Framework/UserAgentData.cs b/OpenSim/Framework/UserAgentData.cs new file mode 100644 index 0000000..8c6baf0 --- /dev/null +++ b/OpenSim/Framework/UserAgentData.cs | |||
@@ -0,0 +1,99 @@ | |||
1 | /* | ||
2 | * Copyright (c) Contributors, http://opensimulator.org/ | ||
3 | * See CONTRIBUTORS.TXT for a full list of copyright holders. | ||
4 | * | ||
5 | * Redistribution and use in source and binary forms, with or without | ||
6 | * modification, are permitted provided that the following conditions are met: | ||
7 | * * Redistributions of source code must retain the above copyright | ||
8 | * notice, this list of conditions and the following disclaimer. | ||
9 | * * Redistributions in binary form must reproduce the above copyright | ||
10 | * notice, this list of conditions and the following disclaimer in the | ||
11 | * documentation and/or other materials provided with the distribution. | ||
12 | * * Neither the name of the OpenSim Project nor the | ||
13 | * names of its contributors may be used to endorse or promote products | ||
14 | * derived from this software without specific prior written permission. | ||
15 | * | ||
16 | * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY | ||
17 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | ||
18 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | ||
19 | * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY | ||
20 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | ||
21 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
22 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | ||
23 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
24 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | ||
25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
26 | */ | ||
27 | |||
28 | using System; | ||
29 | using libsecondlife; | ||
30 | |||
31 | namespace OpenSim.Framework | ||
32 | { | ||
33 | /// <summary> | ||
34 | /// Information about a users session | ||
35 | /// </summary> | ||
36 | public class UserAgentData | ||
37 | { | ||
38 | /// <summary> | ||
39 | /// The UUID of the users avatar (not the agent!) | ||
40 | /// </summary> | ||
41 | public LLUUID UUID; | ||
42 | |||
43 | /// <summary> | ||
44 | /// The IP address of the user | ||
45 | /// </summary> | ||
46 | public string agentIP = String.Empty; | ||
47 | |||
48 | /// <summary> | ||
49 | /// The port of the user | ||
50 | /// </summary> | ||
51 | public uint agentPort; | ||
52 | |||
53 | /// <summary> | ||
54 | /// Is the user online? | ||
55 | /// </summary> | ||
56 | public bool agentOnline; | ||
57 | |||
58 | /// <summary> | ||
59 | /// The session ID for the user (also the agent ID) | ||
60 | /// </summary> | ||
61 | public LLUUID sessionID; | ||
62 | |||
63 | /// <summary> | ||
64 | /// The "secure" session ID for the user | ||
65 | /// </summary> | ||
66 | /// <remarks>Not very secure. Dont rely on it for anything more than Linden Lab does.</remarks> | ||
67 | public LLUUID secureSessionID; | ||
68 | |||
69 | /// <summary> | ||
70 | /// The region the user logged into initially | ||
71 | /// </summary> | ||
72 | public LLUUID regionID; | ||
73 | |||
74 | /// <summary> | ||
75 | /// A unix timestamp from when the user logged in | ||
76 | /// </summary> | ||
77 | public int loginTime; | ||
78 | |||
79 | /// <summary> | ||
80 | /// When this agent expired and logged out, 0 if still online | ||
81 | /// </summary> | ||
82 | public int logoutTime; | ||
83 | |||
84 | /// <summary> | ||
85 | /// Current region the user is logged into | ||
86 | /// </summary> | ||
87 | public LLUUID currentRegion; | ||
88 | |||
89 | /// <summary> | ||
90 | /// Region handle of the current region the user is in | ||
91 | /// </summary> | ||
92 | public ulong currentHandle; | ||
93 | |||
94 | /// <summary> | ||
95 | /// The position of the user within the region | ||
96 | /// </summary> | ||
97 | public LLVector3 currentPos; | ||
98 | } | ||
99 | } | ||
diff --git a/OpenSim/Framework/UserProfileData.cs b/OpenSim/Framework/UserProfileData.cs index c5d27a2..6a49f0d 100644 --- a/OpenSim/Framework/UserProfileData.cs +++ b/OpenSim/Framework/UserProfileData.cs | |||
@@ -148,71 +148,4 @@ namespace OpenSim.Framework | |||
148 | /// </summary> | 148 | /// </summary> |
149 | public UserAgentData currentAgent; | 149 | public UserAgentData currentAgent; |
150 | } | 150 | } |
151 | |||
152 | /// <summary> | ||
153 | /// Information about a users session | ||
154 | /// </summary> | ||
155 | public class UserAgentData | ||
156 | { | ||
157 | /// <summary> | ||
158 | /// The UUID of the users avatar (not the agent!) | ||
159 | /// </summary> | ||
160 | public LLUUID UUID; | ||
161 | |||
162 | /// <summary> | ||
163 | /// The IP address of the user | ||
164 | /// </summary> | ||
165 | public string agentIP = String.Empty; | ||
166 | |||
167 | /// <summary> | ||
168 | /// The port of the user | ||
169 | /// </summary> | ||
170 | public uint agentPort; | ||
171 | |||
172 | /// <summary> | ||
173 | /// Is the user online? | ||
174 | /// </summary> | ||
175 | public bool agentOnline; | ||
176 | |||
177 | /// <summary> | ||
178 | /// The session ID for the user (also the agent ID) | ||
179 | /// </summary> | ||
180 | public LLUUID sessionID; | ||
181 | |||
182 | /// <summary> | ||
183 | /// The "secure" session ID for the user | ||
184 | /// </summary> | ||
185 | /// <remarks>Not very secure. Dont rely on it for anything more than Linden Lab does.</remarks> | ||
186 | public LLUUID secureSessionID; | ||
187 | |||
188 | /// <summary> | ||
189 | /// The region the user logged into initially | ||
190 | /// </summary> | ||
191 | public LLUUID regionID; | ||
192 | |||
193 | /// <summary> | ||
194 | /// A unix timestamp from when the user logged in | ||
195 | /// </summary> | ||
196 | public int loginTime; | ||
197 | |||
198 | /// <summary> | ||
199 | /// When this agent expired and logged out, 0 if still online | ||
200 | /// </summary> | ||
201 | public int logoutTime; | ||
202 | |||
203 | /// <summary> | ||
204 | /// Current region the user is logged into | ||
205 | /// </summary> | ||
206 | public LLUUID currentRegion; | ||
207 | |||
208 | /// <summary> | ||
209 | /// Region handle of the current region the user is in | ||
210 | /// </summary> | ||
211 | public ulong currentHandle; | ||
212 | |||
213 | /// <summary> | ||
214 | /// The position of the user within the region | ||
215 | /// </summary> | ||
216 | public LLVector3 currentPos; | ||
217 | } | ||
218 | } | 151 | } |