Changed GetAgents to take string[] instead of UUID[]
parent
0f5219a004
commit
b8dfccb227
|
@ -81,7 +81,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Presence
|
|||
|
||||
if (serviceDll == String.Empty)
|
||||
{
|
||||
m_log.Error("[LOCAL PRESENCE CONNECTOR]: No LocalServiceModule named in section InventoryService");
|
||||
m_log.Error("[LOCAL PRESENCE CONNECTOR]: No LocalServiceModule named in section PresenceService");
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -176,7 +176,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Presence
|
|||
return m_PresenceService.GetAgent(sessionID);
|
||||
}
|
||||
|
||||
public PresenceInfo[] GetAgents(UUID[] principalIDs)
|
||||
public PresenceInfo[] GetAgents(string[] principalIDs)
|
||||
{
|
||||
return m_PresenceService.GetAgents(principalIDs);
|
||||
}
|
||||
|
|
|
@ -52,6 +52,6 @@ namespace OpenSim.Services.Interfaces
|
|||
bool ReportAgent(UUID sessionID, UUID regionID, Vector3 position, Vector3 lookAt);
|
||||
|
||||
PresenceInfo GetAgent(UUID sessionID);
|
||||
PresenceInfo[] GetAgents(UUID[] PrincipalIDs);
|
||||
PresenceInfo[] GetAgents(string[] principalIDs);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -116,11 +116,14 @@ namespace OpenSim.Services.PresenceService
|
|||
return ret;
|
||||
}
|
||||
|
||||
public PresenceInfo[] GetAgents(UUID[] PrincipalIDs)
|
||||
public PresenceInfo[] GetAgents(string[] principalIDs)
|
||||
{
|
||||
List<PresenceInfo> info = new List<PresenceInfo>();
|
||||
|
||||
foreach (UUID principalID in PrincipalIDs)
|
||||
foreach (string principalIDStr in principalIDs)
|
||||
{
|
||||
UUID principalID = UUID.Zero;
|
||||
if (UUID.TryParse(principalIDStr, out principalID))
|
||||
{
|
||||
PresenceData[] data = m_Database.Get("PrincipalID",
|
||||
principalID.ToString());
|
||||
|
@ -142,6 +145,7 @@ namespace OpenSim.Services.PresenceService
|
|||
info.Add(ret);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return info.ToArray();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue