mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 09:16:28 +08:00
*Added some missing files from last commit
*LoginService is now only used in LocalCommunications and not as a interface in RegionCommunications
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
using OpenGrid.Framework.Communications;
|
||||
using OpenSim.Framework.User;
|
||||
|
||||
using libsecondlife;
|
||||
|
||||
namespace OpenSim.LocalCommunications.LocalUserManagement
|
||||
{
|
||||
public class LocalUserServices : IUserServices
|
||||
{
|
||||
public UserProfileManager userProfileManager = new UserProfileManager();
|
||||
public LocalLoginService localLoginService;
|
||||
public LocalUserServices()
|
||||
{
|
||||
localLoginService = new LocalLoginService(this);
|
||||
}
|
||||
|
||||
public UserProfile GetUserProfile(string first_name, string last_name)
|
||||
{
|
||||
return GetUserProfile(first_name + " " + last_name);
|
||||
}
|
||||
|
||||
public UserProfile GetUserProfile(string name)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
public UserProfile GetUserProfile(LLUUID avatar_id)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
using libsecondlife;
|
||||
using OpenSim.Framework.User;
|
||||
|
||||
namespace OpenSim.LocalCommunications.LocalUserManagement
|
||||
{
|
||||
public class UserProfileManager
|
||||
{
|
||||
Dictionary<LLUUID, UserProfile> userProfiles = new Dictionary<LLUUID, UserProfile>();
|
||||
|
||||
public UserProfileManager()
|
||||
{
|
||||
}
|
||||
|
||||
private LLUUID getUserUUID(string first_name, string last_name)
|
||||
{
|
||||
return getUserUUID(first_name + " " + last_name);
|
||||
}
|
||||
private LLUUID getUserUUID(string name)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
public UserProfile getUserProfile(string first_name, string last_name)
|
||||
{
|
||||
return getUserProfile(first_name + " " + last_name);
|
||||
}
|
||||
public UserProfile getUserProfile(string name)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
public UserProfile getUserProfile(LLUUID user_id)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user