From 67e12b95ea7b68f4904a7484d77ecfd787d16d0c Mon Sep 17 00:00:00 2001 From: lbsa71 Date: Tue, 30 Oct 2007 09:05:31 +0000 Subject: * Optimized usings * Shortened type references * Removed redundant 'this' qualifier --- OpenSim/Grid/UserServer/UserManager.cs | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'OpenSim/Grid/UserServer/UserManager.cs') diff --git a/OpenSim/Grid/UserServer/UserManager.cs b/OpenSim/Grid/UserServer/UserManager.cs index 2b2bf72..96cdfb3 100644 --- a/OpenSim/Grid/UserServer/UserManager.cs +++ b/OpenSim/Grid/UserServer/UserManager.cs @@ -27,12 +27,10 @@ */ using System; using System.Collections; -using System.Net; +using libsecondlife; using Nwc.XmlRpc; using OpenSim.Framework; using OpenSim.Framework.UserManagement; -using OpenSim.Framework; -using libsecondlife; namespace OpenSim.Grid.UserServer { @@ -118,11 +116,11 @@ namespace OpenSim.Grid.UserServer public XmlRpcResponse XmlRPCGetUserMethodName(XmlRpcRequest request) { XmlRpcResponse response = new XmlRpcResponse(); - Hashtable requestData = (Hashtable)request.Params[0]; + Hashtable requestData = (Hashtable) request.Params[0]; UserProfileData userProfile; if (requestData.Contains("avatar_name")) { - userProfile = GetUserProfile((string)requestData["avatar_name"]); + userProfile = GetUserProfile((string) requestData["avatar_name"]); if (userProfile == null) { return CreateUnknownUserErrorResponse(); @@ -139,12 +137,12 @@ namespace OpenSim.Grid.UserServer public XmlRpcResponse XmlRPCGetUserMethodUUID(XmlRpcRequest request) { XmlRpcResponse response = new XmlRpcResponse(); - Hashtable requestData = (Hashtable)request.Params[0]; + Hashtable requestData = (Hashtable) request.Params[0]; UserProfileData userProfile; - System.Console.WriteLine("METHOD BY UUID CALLED"); + Console.WriteLine("METHOD BY UUID CALLED"); if (requestData.Contains("avatar_uuid")) { - userProfile = GetUserProfile((LLUUID)(string)requestData["avatar_uuid"]); + userProfile = GetUserProfile((LLUUID) (string) requestData["avatar_uuid"]); if (userProfile == null) { return CreateUnknownUserErrorResponse(); @@ -158,6 +156,7 @@ namespace OpenSim.Grid.UserServer return ProfileToXmlRPCResponse(userProfile); } + #endregion public override UserProfileData SetupMasterUser(string firstName, string lastName) @@ -170,4 +169,4 @@ namespace OpenSim.Grid.UserServer throw new Exception("The method or operation is not implemented."); } } -} +} \ No newline at end of file -- cgit v1.1