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/Framework/UserAgentData.cs | |
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/Framework/UserAgentData.cs')
-rw-r--r-- | OpenSim/Framework/UserAgentData.cs | 99 |
1 files changed, 99 insertions, 0 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 | } | ||