mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 09:45:47 +08:00
adding XML sniplet generation (start of)
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user