From 2b986dd0095cb1ef7294ecf27c1fc6ad1f2ae451 Mon Sep 17 00:00:00 2001
From: Adam Frisby
Date: Sat, 9 Jun 2007 01:40:11 +0000
Subject: * Added more support for wider profile information from get user REST
calls. * Added comments and stuff
---
.../OpenGridServices.UserServer/UserManager.cs | 24 ++++++++++++++++++++--
1 file changed, 22 insertions(+), 2 deletions(-)
(limited to 'OpenGridServices/OpenGridServices.UserServer/UserManager.cs')
diff --git a/OpenGridServices/OpenGridServices.UserServer/UserManager.cs b/OpenGridServices/OpenGridServices.UserServer/UserManager.cs
index b8c9f97..f378c32 100644
--- a/OpenGridServices/OpenGridServices.UserServer/UserManager.cs
+++ b/OpenGridServices/OpenGridServices.UserServer/UserManager.cs
@@ -655,6 +655,10 @@ namespace OpenGridServices.UserServer
return "OK";
}
+ ///
+ /// Returns an error message that the user could not be found in the database
+ ///
+ /// XML string consisting of a error element containing individual error(s)
public string CreateUnknownUserErrorResponse()
{
System.IO.StringWriter sw = new System.IO.StringWriter();
@@ -697,11 +701,27 @@ namespace OpenGridServices.UserServer
// User
xw.WriteStartElement("user");
+ // Account information
xw.WriteAttributeString("firstname", profile.username);
xw.WriteAttributeString("lastname", profile.surname);
xw.WriteAttributeString("uuid", profile.UUID.ToStringHyphenated());
- xw.WriteAttributeString("inventory", profile.userInventoryURI);
- xw.WriteAttributeString("asset", profile.userAssetURI);
+ // Server Information
+ xw.WriteAttributeString("server_inventory", profile.userInventoryURI);
+ xw.WriteAttributeString("server_asset", profile.userAssetURI);
+ // Profile Information
+ xw.WriteAttributeString("profile_about", profile.profileAboutText);
+ xw.WriteAttributeString("profile_firstlife_about", profile.profileFirstText);
+ xw.WriteAttributeString("profile_firstlife_image", profile.profileFirstImage.ToStringHyphenated());
+ xw.WriteAttributeString("profile_can_do", profile.profileCanDoMask.ToString());
+ xw.WriteAttributeString("profile_want_do", profile.profileWantDoMask());
+ xw.WriteAttributeString("profile_image", profile.profileImage.ToStringHyphenated());
+ xw.WriteAttributeString("profile_created",profile.created.ToString();
+ xw.WriteAttributeString("profile_lastlogin",profile.lastLogin.ToString());
+ // Home region information
+ xw.WriteAttributeString("home_coordinates", profile.homeLocation.ToString());
+ xw.WriteAttributeString("home_region", profile.homeRegion.ToString());
+ xw.WriteAttributeString("home_look", profile.homeLookAt());
+
xw.WriteEndElement();
// Footer
--
cgit v1.1