adding XML sniplet generation (start of)
parent
464ecc15a0
commit
d10d8af295
|
@ -358,6 +358,22 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Concierge
|
||||||
attendees = _sceneAttendees[scene];
|
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
|
// post via REST to broker
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue