for (int i = 0;i < app2.eventList.size();i++) {
if (app2.eventList[i] == name) {
def event = new Event(value, name, deviceId, descriptionText, displayed, linkText, linkText, isStateChange, unit, data)
-<<<<<<< HEAD
-=======
- //evt.add(event)
->>>>>>> e378d6a65b25030f8914dc97f04b81ddff351d9c
- app2.functionList[i](event)
+ if (app2.functionList[i] instanceof String) {
+ String toCall = app2.functionList[i]
+ app2."$toCall"(event)
+ }
+ else
+ app2.functionList[i](event)
}
}
for (int i = 0;i < app1.eventList.size();i++) {
if (app1.eventList[i] == name) {
def event = new Event(value, name, deviceId, descriptionText, displayed, linkText, linkText, isStateChange, unit, data)
-<<<<<<< HEAD
-=======
- //evt.add(event)
->>>>>>> e378d6a65b25030f8914dc97f04b81ddff351d9c
- app1.functionList[i](event)
+ if (app1.functionList[i] instanceof String) {
+ String toCall = app1.functionList[i]
+ app1."$toCall"(event)
+ }
+ else
+ app1.functionList[i](event)
}
}
}