few changes

application-manager-new
Rasika Perera 10 years ago
parent edc4b1766f
commit d29d63a915

@ -48,6 +48,26 @@ if (uriMatcher.match("/{context}/api/event/list")) {
} catch (error) { } catch (error) {
log.error(error); log.error(error);
} }
var eventsData = [];
if (fetchedData == null) return [];
for (var i = 0; i < fetchedData.size(); i++) {
//eventsData.push({
// time: fetchedData.get(i).getTime(),
// deviceName: fetchedData.get(i).getDeviceName(),
// activity: fetchedData.get(i).getDeviceActivity()
//});
eventsData.push({
time: 234234,
deviceName: "my device",
activity: "test"
});
}
return eventsData;
} }
// returning the result. // returning the result.

Loading…
Cancel
Save