aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/UserAgentData.cs
diff options
context:
space:
mode:
authorSean Dague2008-04-10 14:37:17 +0000
committerSean Dague2008-04-10 14:37:17 +0000
commitef7dfae41c728d10cfe835cb256958c354449f1b (patch)
tree98affd8fd75500ece10eb471ba405709e2d389f4 /OpenSim/Framework/UserAgentData.cs
parentfurther renaming of properties for clarity (diff)
downloadopensim-SC_OLD-ef7dfae41c728d10cfe835cb256958c354449f1b.zip
opensim-SC_OLD-ef7dfae41c728d10cfe835cb256958c354449f1b.tar.gz
opensim-SC_OLD-ef7dfae41c728d10cfe835cb256958c354449f1b.tar.bz2
opensim-SC_OLD-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/Framework/UserAgentData.cs')
-rw-r--r--OpenSim/Framework/UserAgentData.cs133
1 files changed, 121 insertions, 12 deletions
diff --git a/OpenSim/Framework/UserAgentData.cs b/OpenSim/Framework/UserAgentData.cs
index 8c6baf0..18e8580 100644
--- a/OpenSim/Framework/UserAgentData.cs
+++ b/OpenSim/Framework/UserAgentData.cs
@@ -38,62 +38,171 @@ namespace OpenSim.Framework
38 /// <summary> 38 /// <summary>
39 /// The UUID of the users avatar (not the agent!) 39 /// The UUID of the users avatar (not the agent!)
40 /// </summary> 40 /// </summary>
41 public LLUUID UUID; 41 private LLUUID UUID;
42 42
43 /// <summary> 43 /// <summary>
44 /// The IP address of the user 44 /// The IP address of the user
45 /// </summary> 45 /// </summary>
46 public string agentIP = String.Empty; 46 private string agentIP = String.Empty;
47 47
48 /// <summary> 48 /// <summary>
49 /// The port of the user 49 /// The port of the user
50
50 /// </summary> 51 /// </summary>
51 public uint agentPort; 52 private uint agentPort;
52 53
53 /// <summary> 54 /// <summary>
54 /// Is the user online? 55 /// Is the user online?
55 /// </summary> 56 /// </summary>
56 public bool agentOnline; 57 private bool agentOnline;
57 58
58 /// <summary> 59 /// <summary>
59 /// The session ID for the user (also the agent ID) 60 /// The session ID for the user (also the agent ID)
60 /// </summary> 61 /// </summary>
61 public LLUUID sessionID; 62 private LLUUID sessionID;
62 63
63 /// <summary> 64 /// <summary>
64 /// The "secure" session ID for the user 65 /// The "secure" session ID for the user
65 /// </summary> 66 /// </summary>
66 /// <remarks>Not very secure. Dont rely on it for anything more than Linden Lab does.</remarks> 67 /// <remarks>Not very secure. Dont rely on it for anything more than Linden Lab does.</remarks>
67 public LLUUID secureSessionID; 68 private LLUUID secureSessionID;
68 69
69 /// <summary> 70 /// <summary>
70 /// The region the user logged into initially 71 /// The region the user logged into initially
71 /// </summary> 72 /// </summary>
72 public LLUUID regionID; 73 private LLUUID regionID;
73 74
74 /// <summary> 75 /// <summary>
75 /// A unix timestamp from when the user logged in 76 /// A unix timestamp from when the user logged in
76 /// </summary> 77 /// </summary>
77 public int loginTime; 78 private int loginTime;
78 79
79 /// <summary> 80 /// <summary>
80 /// When this agent expired and logged out, 0 if still online 81 /// When this agent expired and logged out, 0 if still online
81 /// </summary> 82 /// </summary>
82 public int logoutTime; 83 private int logoutTime;
83 84
84 /// <summary> 85 /// <summary>
85 /// Current region the user is logged into 86 /// Current region the user is logged into
86 /// </summary> 87 /// </summary>
87 public LLUUID currentRegion; 88 private LLUUID currentRegion;
88 89
89 /// <summary> 90 /// <summary>
90 /// Region handle of the current region the user is in 91 /// Region handle of the current region the user is in
91 /// </summary> 92 /// </summary>
92 public ulong currentHandle; 93 private ulong currentHandle;
93 94
94 /// <summary> 95 /// <summary>
95 /// The position of the user within the region 96 /// The position of the user within the region
96 /// </summary> 97 /// </summary>
97 public LLVector3 currentPos; 98 private LLVector3 currentPos;
99
100 public LLUUID ProfileID {
101 get {
102 return UUID;
103 }
104 set {
105 UUID = value;
106 }
107 }
108
109 public string AgentIP {
110 get {
111 return agentIP;
112 }
113 set {
114 agentIP = value;
115 }
116 }
117
118 public uint AgentPort {
119 get {
120 return agentPort;
121 }
122 set {
123 agentPort = value;
124 }
125 }
126
127 public bool AgentOnline {
128 get {
129 return agentOnline;
130 }
131 set {
132 agentOnline = value;
133 }
134 }
135
136 public LLUUID SessionID {
137 get {
138 return sessionID;
139 }
140 set {
141 sessionID = value;
142 }
143 }
144
145 public LLUUID SecureSessionID {
146 get {
147 return secureSessionID;
148 }
149 set {
150 secureSessionID = value;
151 }
152 }
153
154 public LLUUID RegionID {
155 get {
156 return regionID;
157 }
158 set {
159 regionID = value;
160 }
161 }
162
163 public int LoginTime {
164 get {
165 return loginTime;
166 }
167 set {
168 loginTime = value;
169 }
170 }
171
172 public int LogoutTime {
173 get {
174 return logoutTime;
175 }
176 set {
177 logoutTime = value;
178 }
179 }
180
181 public LLUUID CurrentRegion {
182 get {
183 return currentRegion;
184 }
185 set {
186 currentRegion = value;
187 }
188 }
189
190 public ulong CurrentHandle {
191 get {
192 return currentHandle;
193 }
194 set {
195 currentHandle = value;
196 }
197 }
198
199 public LLVector3 CurrentPos {
200 get {
201 return currentPos;
202 }
203 set {
204 currentPos = value;
205 }
206 }
98 } 207 }
99} 208}