adding XML sniplet generation (start of)

0.6.3-post-fixes
Dr Scofield 2009-01-26 21:31:21 +00:00
parent 464ecc15a0
commit d10d8af295
1 changed files with 16 additions and 0 deletions

View File

@ -358,6 +358,22 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Concierge
attendees = _sceneAttendees[scene];
}
// create XML sniplet
StringBuilder list = new StringBuilder();
if (0 == attendees.Count)
{
list.Append("<avatars count=\"0\" region_name=\"{0}\" region_uuid=\"{1}\" timestamp=\"{2}\" />",
scene.RegionInfo.RegionName, scene.RegionInfo.RegionID,
System.DateTime.UtcNow);
}
else
{
list.Append("<avatars count=\"{0}\" region_name=\"{1}\" region_uuid=\"{2}\" timestamp=\"{3}\" />",
attendees.Count, scene.RegionInfo.RegionName, scene.RegionInfo.RegionID,
System.DateTime.UtcNow);
}
// post via REST to broker
}