diff options
author | lbsa71 | 2007-10-05 10:14:42 +0000 |
---|---|---|
committer | lbsa71 | 2007-10-05 10:14:42 +0000 |
commit | 5a6552120395611e66a88821ce848a06c9ea4720 (patch) | |
tree | d23780998986524b160ba97292022809efcff0bc /OpenSim/Framework/Data/UserProfileData.cs | |
parent | * ignored ScriptServer/bin (diff) | |
download | opensim-SC_OLD-5a6552120395611e66a88821ce848a06c9ea4720.zip opensim-SC_OLD-5a6552120395611e66a88821ce848a06c9ea4720.tar.gz opensim-SC_OLD-5a6552120395611e66a88821ce848a06c9ea4720.tar.bz2 opensim-SC_OLD-5a6552120395611e66a88821ce848a06c9ea4720.tar.xz |
== The "right name and place" commit ==
* Moved InventoryData to Framework.Types/InventoryItemBase.cs
* Moved UserData to Framework.Interfaces/IUserData.cs
* Moved UserProfileData to Framework/Types/UserProfileData.cs
* Deleted ass-backwards Framework dependency on Framework.Data (now it's the other way round)
* Changed some namespaces to reflect file structure
Diffstat (limited to 'OpenSim/Framework/Data/UserProfileData.cs')
-rw-r--r-- | OpenSim/Framework/Data/UserProfileData.cs | 192 |
1 files changed, 0 insertions, 192 deletions
diff --git a/OpenSim/Framework/Data/UserProfileData.cs b/OpenSim/Framework/Data/UserProfileData.cs deleted file mode 100644 index 4fafe3f..0000000 --- a/OpenSim/Framework/Data/UserProfileData.cs +++ /dev/null | |||
@@ -1,192 +0,0 @@ | |||
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.Data | ||
32 | { | ||
33 | /// <summary> | ||
34 | /// Information about a particular user known to the userserver | ||
35 | /// </summary> | ||
36 | public class UserProfileData | ||
37 | { | ||
38 | /// <summary> | ||
39 | /// The ID value for this user | ||
40 | /// </summary> | ||
41 | public LLUUID UUID; | ||
42 | |||
43 | /// <summary> | ||
44 | /// The first component of a users account name | ||
45 | /// </summary> | ||
46 | public string username; | ||
47 | /// <summary> | ||
48 | /// The second component of a users account name | ||
49 | /// </summary> | ||
50 | public string surname; | ||
51 | |||
52 | /// <summary> | ||
53 | /// A salted hash containing the users password, in the format md5(md5(password) + ":" + salt) | ||
54 | /// </summary> | ||
55 | /// <remarks>This is double MD5'd because the client sends an unsalted MD5 to the loginserver</remarks> | ||
56 | public string passwordHash; | ||
57 | /// <summary> | ||
58 | /// The salt used for the users hash, should be 32 bytes or longer | ||
59 | /// </summary> | ||
60 | public string passwordSalt; | ||
61 | |||
62 | /// <summary> | ||
63 | /// The regionhandle of the users preffered home region. If multiple sims occupy the same spot, the grid may decide which region the user logs into | ||
64 | /// </summary> | ||
65 | public ulong homeRegion | ||
66 | { | ||
67 | get { return Helpers.UIntsToLong((homeRegionX * 256), (homeRegionY * 256)); } | ||
68 | set { | ||
69 | homeRegionX = (uint)(value >> 40); | ||
70 | homeRegionY = (((uint)(value)) >> 8); | ||
71 | Console.WriteLine("HomeRegion => Incoming: " + value + ", Computed: " + homeRegion); | ||
72 | } | ||
73 | } | ||
74 | public uint homeRegionX; | ||
75 | public uint homeRegionY; | ||
76 | /// <summary> | ||
77 | /// The coordinates inside the region of the home location | ||
78 | /// </summary> | ||
79 | public LLVector3 homeLocation; | ||
80 | /// <summary> | ||
81 | /// Where the user will be looking when they rez. | ||
82 | /// </summary> | ||
83 | public LLVector3 homeLookAt; | ||
84 | |||
85 | /// <summary> | ||
86 | /// A UNIX Timestamp (seconds since epoch) for the users creation | ||
87 | /// </summary> | ||
88 | public int created; | ||
89 | /// <summary> | ||
90 | /// A UNIX Timestamp for the users last login date / time | ||
91 | /// </summary> | ||
92 | public int lastLogin; | ||
93 | |||
94 | public LLUUID rootInventoryFolderID; | ||
95 | |||
96 | /// <summary> | ||
97 | /// A URI to the users inventory server, used for foreigners and large grids | ||
98 | /// </summary> | ||
99 | public string userInventoryURI = String.Empty; | ||
100 | /// <summary> | ||
101 | /// A URI to the users asset server, used for foreigners and large grids. | ||
102 | /// </summary> | ||
103 | public string userAssetURI = String.Empty; | ||
104 | |||
105 | /// <summary> | ||
106 | /// A uint mask containing the "I can do" fields of the users profile | ||
107 | /// </summary> | ||
108 | public uint profileCanDoMask; | ||
109 | /// <summary> | ||
110 | /// A uint mask containing the "I want to do" part of the users profile | ||
111 | /// </summary> | ||
112 | public uint profileWantDoMask; // Profile window "I want to" mask | ||
113 | |||
114 | /// <summary> | ||
115 | /// The about text listed in a users profile. | ||
116 | /// </summary> | ||
117 | public string profileAboutText = String.Empty; | ||
118 | /// <summary> | ||
119 | /// The first life about text listed in a users profile | ||
120 | /// </summary> | ||
121 | public string profileFirstText = String.Empty; | ||
122 | |||
123 | /// <summary> | ||
124 | /// The profile image for an avatar stored on the asset server | ||
125 | /// </summary> | ||
126 | public LLUUID profileImage; | ||
127 | /// <summary> | ||
128 | /// The profile image for the users first life tab | ||
129 | /// </summary> | ||
130 | public LLUUID profileFirstImage; | ||
131 | /// <summary> | ||
132 | /// The users last registered agent (filled in on the user server) | ||
133 | /// </summary> | ||
134 | public UserAgentData currentAgent; | ||
135 | } | ||
136 | |||
137 | /// <summary> | ||
138 | /// Information about a users session | ||
139 | /// </summary> | ||
140 | public class UserAgentData | ||
141 | { | ||
142 | /// <summary> | ||
143 | /// The UUID of the users avatar (not the agent!) | ||
144 | /// </summary> | ||
145 | public LLUUID UUID; | ||
146 | /// <summary> | ||
147 | /// The IP address of the user | ||
148 | /// </summary> | ||
149 | public string agentIP = String.Empty; | ||
150 | /// <summary> | ||
151 | /// The port of the user | ||
152 | /// </summary> | ||
153 | public uint agentPort; | ||
154 | /// <summary> | ||
155 | /// Is the user online? | ||
156 | /// </summary> | ||
157 | public bool agentOnline; | ||
158 | /// <summary> | ||
159 | /// The session ID for the user (also the agent ID) | ||
160 | /// </summary> | ||
161 | public LLUUID sessionID; | ||
162 | /// <summary> | ||
163 | /// The "secure" session ID for the user | ||
164 | /// </summary> | ||
165 | /// <remarks>Not very secure. Dont rely on it for anything more than Linden Lab does.</remarks> | ||
166 | public LLUUID secureSessionID; | ||
167 | /// <summary> | ||
168 | /// The region the user logged into initially | ||
169 | /// </summary> | ||
170 | public LLUUID regionID; | ||
171 | /// <summary> | ||
172 | /// A unix timestamp from when the user logged in | ||
173 | /// </summary> | ||
174 | public int loginTime; | ||
175 | /// <summary> | ||
176 | /// When this agent expired and logged out, 0 if still online | ||
177 | /// </summary> | ||
178 | public int logoutTime; | ||
179 | /// <summary> | ||
180 | /// Current region the user is logged into | ||
181 | /// </summary> | ||
182 | public LLUUID currentRegion; | ||
183 | /// <summary> | ||
184 | /// Region handle of the current region the user is in | ||
185 | /// </summary> | ||
186 | public ulong currentHandle; | ||
187 | /// <summary> | ||
188 | /// The position of the user within the region | ||
189 | /// </summary> | ||
190 | public LLVector3 currentPos; | ||
191 | } | ||
192 | } | ||