aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Communications/OGS1
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Communications/OGS1')
-rw-r--r--OpenSim/Region/Communications/OGS1/OGS1UserServices.cs42
1 files changed, 42 insertions, 0 deletions
diff --git a/OpenSim/Region/Communications/OGS1/OGS1UserServices.cs b/OpenSim/Region/Communications/OGS1/OGS1UserServices.cs
index 8ad4468..7dcbb46 100644
--- a/OpenSim/Region/Communications/OGS1/OGS1UserServices.cs
+++ b/OpenSim/Region/Communications/OGS1/OGS1UserServices.cs
@@ -270,6 +270,48 @@ namespace OpenSim.Region.Communications.OGS1
270 throw new Exception("The method or operation is not implemented."); 270 throw new Exception("The method or operation is not implemented.");
271 } 271 }
272 272
273 public bool UpdateUserProfileProperties(UserProfileData UserProfile)
274 {
275 m_log.Debug("[OGS1UserService]: Asking UserServer to update profile.");
276 Hashtable param = new Hashtable();
277 param["avatar_uuid"] = UserProfile.UUID.ToString();
278 //param["AllowPublish"] = UserProfile.ToString();
279 param["FLImageID"] = UserProfile.profileFirstImage.ToString();
280 param["ImageID"] = UserProfile.profileImage.ToString();
281 //param["MaturePublish"] = MaturePublish.ToString();
282 param["AboutText"] = UserProfile.profileAboutText;
283 param["FLAboutText"] = UserProfile.profileFirstText;
284 //param["ProfileURL"] = UserProfile.ProfileURL.ToString();
285 IList parameters = new ArrayList();
286 parameters.Add(param);
287
288 XmlRpcRequest req = new XmlRpcRequest("update_user_profile", parameters);
289 XmlRpcResponse resp = req.Send(m_parent.NetworkServersInfo.UserURL, 3000);
290 Hashtable respData = (Hashtable)resp.Value;
291 if (respData != null)
292 {
293 if (respData.Contains("returnString"))
294 {
295 if (((string)respData["returnString"]).ToUpper() != "TRUE")
296 {
297 m_log.Warn("[GRID]: Unable to update user profile, User Server Reported an issue");
298 return false;
299 }
300 }
301 else
302 {
303 m_log.Warn("[GRID]: Unable to update user profile, UserServer didn't understand me!");
304 return false;
305 }
306 }
307 else
308 {
309 m_log.Warn("[GRID]: Unable to update user profile, UserServer didn't understand me!");
310 return false;
311 }
312 return true;
313 }
314
273 #region IUserServices Friend Methods 315 #region IUserServices Friend Methods
274 /// <summary> 316 /// <summary>
275 /// Adds a new friend to the database for XUser 317 /// Adds a new friend to the database for XUser