aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Communications
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Communications')
-rw-r--r--OpenSim/Region/Communications/OGS1/OGS1UserServices.cs51
1 files changed, 23 insertions, 28 deletions
diff --git a/OpenSim/Region/Communications/OGS1/OGS1UserServices.cs b/OpenSim/Region/Communications/OGS1/OGS1UserServices.cs
index 0ca85d2..28177d0 100644
--- a/OpenSim/Region/Communications/OGS1/OGS1UserServices.cs
+++ b/OpenSim/Region/Communications/OGS1/OGS1UserServices.cs
@@ -475,38 +475,32 @@ namespace OpenSim.Region.Communications.OGS1
475 throw new Exception("The method or operation is not implemented."); 475 throw new Exception("The method or operation is not implemented.");
476 } 476 }
477 477
478 // TODO 478 public bool UpdateUserProfile(UserProfileData userProfile)
479 public bool UpdateUserProfile(UserProfileData data)
480 {
481 return false;
482 }
483
484 public bool UpdateUserProfileProperties(UserProfileData UserProfile)
485 { 479 {
486 m_log.Debug("[OGS1 USER SERVICES]: Asking UserServer to update profile."); 480 m_log.Debug("[OGS1 USER SERVICES]: Asking UserServer to update profile.");
487 Hashtable param = new Hashtable(); 481 Hashtable param = new Hashtable();
488 param["avatar_uuid"] = UserProfile.ID.ToString(); 482 param["avatar_uuid"] = userProfile.ID.ToString();
489 //param["AllowPublish"] = UserProfile.ToString(); 483 //param["AllowPublish"] = userProfile.ToString();
490 param["FLImageID"] = UserProfile.FirstLifeImage.ToString(); 484 param["FLImageID"] = userProfile.FirstLifeImage.ToString();
491 param["ImageID"] = UserProfile.Image.ToString(); 485 param["ImageID"] = userProfile.Image.ToString();
492 //param["MaturePublish"] = MaturePublish.ToString(); 486 //param["MaturePublish"] = MaturePublish.ToString();
493 param["AboutText"] = UserProfile.AboutText; 487 param["AboutText"] = userProfile.AboutText;
494 param["FLAboutText"] = UserProfile.FirstLifeAboutText; 488 param["FLAboutText"] = userProfile.FirstLifeAboutText;
495 //param["ProfileURL"] = UserProfile.ProfileURL.ToString(); 489 //param["ProfileURL"] = userProfile.ProfileURL.ToString();
496 490
497 param["home_region"] = UserProfile.HomeRegion.ToString(); 491 param["home_region"] = userProfile.HomeRegion.ToString();
498 param["home_region_id"] = UserProfile.HomeRegionID.ToString(); 492 param["home_region_id"] = userProfile.HomeRegionID.ToString();
499 493
500 param["home_pos_x"] = UserProfile.HomeLocationX.ToString(); 494 param["home_pos_x"] = userProfile.HomeLocationX.ToString();
501 param["home_pos_y"] = UserProfile.HomeLocationY.ToString(); 495 param["home_pos_y"] = userProfile.HomeLocationY.ToString();
502 param["home_pos_z"] = UserProfile.HomeLocationZ.ToString(); 496 param["home_pos_z"] = userProfile.HomeLocationZ.ToString();
503 param["home_look_x"] = UserProfile.HomeLookAtX.ToString(); 497 param["home_look_x"] = userProfile.HomeLookAtX.ToString();
504 param["home_look_y"] = UserProfile.HomeLookAtY.ToString(); 498 param["home_look_y"] = userProfile.HomeLookAtY.ToString();
505 param["home_look_z"] = UserProfile.HomeLookAtZ.ToString(); 499 param["home_look_z"] = userProfile.HomeLookAtZ.ToString();
506 param["user_flags"] = UserProfile.UserFlags.ToString(); 500 param["user_flags"] = userProfile.UserFlags.ToString();
507 param["god_level"] = UserProfile.GodLevel.ToString(); 501 param["god_level"] = userProfile.GodLevel.ToString();
508 param["custom_type"] = UserProfile.CustomType.ToString(); 502 param["custom_type"] = userProfile.CustomType.ToString();
509 param["partner"] = UserProfile.Partner.ToString(); 503 param["partner"] = userProfile.Partner.ToString();
510 504
511 IList parameters = new ArrayList(); 505 IList parameters = new ArrayList();
512 parameters.Add(param); 506 parameters.Add(param);
@@ -535,6 +529,7 @@ namespace OpenSim.Region.Communications.OGS1
535 m_log.Warn("[GRID]: Unable to update user profile, UserServer didn't understand me!"); 529 m_log.Warn("[GRID]: Unable to update user profile, UserServer didn't understand me!");
536 return false; 530 return false;
537 } 531 }
532
538 return true; 533 return true;
539 } 534 }
540 535