From 044446821b7d1d4550e43b0351c2611026874755 Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Mon, 22 Jun 2009 12:18:04 +0000 Subject: Committing the meat of the user server interface and the bones of the service implementation --- OpenSim/Services/Interfaces/IUserService.cs | 45 +++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) (limited to 'OpenSim/Services/Interfaces/IUserService.cs') diff --git a/OpenSim/Services/Interfaces/IUserService.cs b/OpenSim/Services/Interfaces/IUserService.cs index 051ee9a..823a86d 100644 --- a/OpenSim/Services/Interfaces/IUserService.cs +++ b/OpenSim/Services/Interfaces/IUserService.cs @@ -25,9 +25,54 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +using System.Collections.Generic; +using OpenMetaverse; + namespace OpenSim.Services.Interfaces { + public class UserData + { + public string FirstName; + public string LastName; + public UUID UserID; + public UUID scopeID; + + // For informational purposes only! + // + public string HomeRegionName; + + public UUID HomeRegionID; + public float HomePositionX; + public float HomePositionY; + public float HomePositionZ; + public float HomeLookAtX; + public float HomeLookAtY; + public float HomeLookAtZ; + + // There are here because they + // concern the account rather than + // the profile. They just happen to + // be used in the Linden profile as well + // + public int GodLevel; + public int UserFlags; + public string AccountType; + }; + public interface IUserService { + UserData GetUserData(UUID scopeID, UUID userID); + UserData GetUserData(UUID scopeID, string FirstName, string LastName); + + // This will set only the home region portion of the data! + // Can't be used to set god level, flags, type or change the name! + // + bool SetUserData(UserData data); + + // Returns the list of avatars that matches both the search + // criterion and the scope ID passed + // ONLY THE NAME, SCOPE ID and UUID will be filled in! + // + List GetAvatarPickerData(UUID scopeID, string query); } } -- cgit v1.1