mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 09:45:47 +08:00
More cleaning on presence. Friends online/offline works again.
This commit is contained in:
@@ -36,14 +36,6 @@ namespace OpenSim.Services.Interfaces
|
||||
{
|
||||
public string UserID;
|
||||
public UUID RegionID;
|
||||
public bool Online;
|
||||
public DateTime Login;
|
||||
public DateTime Logout;
|
||||
public Vector3 Position;
|
||||
public Vector3 LookAt;
|
||||
public UUID HomeRegionID;
|
||||
public Vector3 HomePosition;
|
||||
public Vector3 HomeLookAt;
|
||||
|
||||
public PresenceInfo()
|
||||
{
|
||||
@@ -65,26 +57,6 @@ namespace OpenSim.Services.Interfaces
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
public static PresenceInfo[] GetOnlinePresences(PresenceInfo[] pinfos)
|
||||
{
|
||||
if (pinfos == null)
|
||||
return null;
|
||||
|
||||
List<PresenceInfo> lst = new List<PresenceInfo>(pinfos);
|
||||
lst = lst.FindAll(delegate(PresenceInfo each) { return each.Online; });
|
||||
|
||||
return lst.ToArray();
|
||||
}
|
||||
|
||||
public static PresenceInfo GetOnlinePresence(PresenceInfo[] pinfos)
|
||||
{
|
||||
pinfos = GetOnlinePresences(pinfos);
|
||||
if (pinfos != null && pinfos.Length >= 1)
|
||||
return pinfos[0];
|
||||
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
public interface IPresenceService
|
||||
|
||||
Reference in New Issue
Block a user