From b6097ae9a8a4566330d882213179feba6d05da62 Mon Sep 17 00:00:00 2001 From: Melanie Date: Wed, 30 Dec 2009 22:23:17 +0000 Subject: Some modifications to user service. Query by name is implemented now --- OpenSim/Services/Interfaces/IUserService.cs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'OpenSim/Services/Interfaces/IUserService.cs') diff --git a/OpenSim/Services/Interfaces/IUserService.cs b/OpenSim/Services/Interfaces/IUserService.cs index e4e4bec..1bdaaab 100644 --- a/OpenSim/Services/Interfaces/IUserService.cs +++ b/OpenSim/Services/Interfaces/IUserService.cs @@ -37,20 +37,20 @@ namespace OpenSim.Services.Interfaces { } - public UserAccount(UUID userID) + public UserAccount(UUID principalID) { - UserID = userID; + PrincipalID = principalID; } public string FirstName; public string LastName; public string Email; - public UUID UserID; + public UUID PrincipalID; public UUID ScopeID; public Dictionary ServiceURLs; - public DateTime Created; + public int Created; public UserAccount(Dictionary kvp) { @@ -60,12 +60,12 @@ namespace OpenSim.Services.Interfaces LastName = kvp["LastName"].ToString(); if (kvp.ContainsKey("Email")) Email = kvp["Email"].ToString(); - if (kvp.ContainsKey("UserID")) - UUID.TryParse(kvp["UserID"].ToString(), out UserID); + if (kvp.ContainsKey("PrincipalID")) + UUID.TryParse(kvp["PrincipalID"].ToString(), out PrincipalID); if (kvp.ContainsKey("ScopeID")) UUID.TryParse(kvp["ScopeID"].ToString(), out ScopeID); if (kvp.ContainsKey("Created")) - DateTime.TryParse(kvp["Created"].ToString(), out Created); + Convert.ToInt32(kvp["Created"].ToString()); if (kvp.ContainsKey("ServiceURLs") && kvp["ServiceURLs"] != null && (kvp["ServiceURLs"] is Dictionary)) ServiceURLs = (Dictionary)kvp["ServiceURLs"]; } @@ -76,7 +76,7 @@ namespace OpenSim.Services.Interfaces result["FirstName"] = FirstName; result["LastName"] = LastName; result["Email"] = Email; - result["UserID"] = UserID.ToString(); + result["PrincipalID"] = PrincipalID.ToString(); result["ScopeID"] = ScopeID.ToString(); result["Created"] = Created.ToString(); result["ServiceURLs"] = ServiceURLs; -- cgit v1.1