OSDMap requestDataMap = new OSDMap(3);
requestDataMap.put("ReportType", OSD.FromUInteger(this.ReportType));
requestDataMap.put("RequestFlags", OSD.FromUInteger(this.RequestFlags));
requestDataMap.put("TotalObjectCount", OSD.FromUInteger(this.TotalObjectCount));
OSDArray requestDatArray = new OSDArray();
requestDatArray.add(requestDataMap);
map.put("RequestData", requestDatArray);
OSDArray reportDataArray = new OSDArray();
OSDArray dataExtendedArray = new OSDArray();
for (int i = 0; i < ReportDataBlocks.length; i++)
{
OSDMap reportMap = new OSDMap(8);
reportMap.put("LocationX", OSD.FromReal(ReportDataBlocks[i].Location.X));
reportMap.put("LocationY", OSD.FromReal(ReportDataBlocks[i].Location.Y));
reportMap.put("LocationZ", OSD.FromReal(ReportDataBlocks[i].Location.Z));
reportMap.put("OwnerName", OSD.FromString(ReportDataBlocks[i].OwnerName));
reportMap.put("Score", OSD.FromReal(ReportDataBlocks[i].Score));
reportMap.put("TaskID", OSD.FromUUID(ReportDataBlocks[i].TaskID));
reportMap.put("TaskLocalID", OSD.FromReal(ReportDataBlocks[i].TaskLocalID));
reportMap.put("TaskName", OSD.FromString(ReportDataBlocks[i].TaskName));
reportDataArray.add(reportMap);
OSDMap extendedMap = new OSDMap(2);
extendedMap.put("MonoScore", OSD.FromReal(ReportDataBlocks[i].MonoScore));
extendedMap.put("TimeStamp", OSD.FromDate(ReportDataBlocks[i].TimeStamp));
dataExtendedArray.add(extendedMap);
}
map.put("ReportData", reportDataArray);
map.put("DataExtended", dataExtendedArray);