}
if (contains == 0)
- globalObjects.append("@Field def buttonObject = new Buttons(sendEvent, init)\n")
+ globalObjects.append("@Field def buttonObject = new Buttons(sendEvent)\n")
if (buttonObjects == 0) {
buttonObject0 = metaData['name']
- this[buttonObject0] = new Buttons({}, true)
+ this[buttonObject0] = new Buttons({})
} else if (buttonObjects == 1) {
buttonObject1 = metaData['name']
- this[buttonObject1] = new Buttons({}, true)
+ this[buttonObject1] = new Buttons({})
} else if (buttonObjects == 2) {
buttonObject2 = metaData['name']
- this[buttonObject2] = new Buttons({}, true)
+ this[buttonObject2] = new Buttons({})
}
buttonObjects=buttonObjects+1
- settings.put(metaData['name'], new Buttons({}, true))
+ settings.put(metaData['name'], new Buttons({}))
if (App == "App1") {
extractedObjectsApp1.append("//Object for class Button!\n")
}
if (contains == 0)
- globalObjects.append("@Field def momentaryObject = new Momentaries(sendEvent, 1)\n")
+ globalObjects.append("@Field def momentaryObject = new Momentaries(sendEvent)\n")
if (momentaryObjects == 0) {
momentaryObject0 = metaData['name']
- this[momentaryObject0] = new Momentaries({}, 1)
+ this[momentaryObject0] = new Momentaries({})
} else if (momentaryObjects == 1) {
momentaryObject1 = metaData['name']
- this[momentaryObject1] = new Momentaries({}, 1)
+ this[momentaryObject1] = new Momentaries({})
} else if (momentaryObjects == 2) {
momentaryObject2 = metaData['name']
- this[momentaryObject2] = new Momentaries({}, 1)
+ this[momentaryObject2] = new Momentaries({})
}
momentaryObjects=momentaryObjects+1
- settings.put(metaData['name'], new Momentaries({}, 1))
+ settings.put(metaData['name'], new Momentaries({}))
if (App == "App1") {
extractedObjectsApp1.append("//Object for class momentory switch class!\n")
}
if (contains == 0)
- globalObjects.append("@Field def touchSensorObject = new NfcTouch(sendEvent, 1)\n")
+ globalObjects.append("@Field def touchSensorObject = new NfcTouch(sendEvent)\n")
if (touchSensorObjects == 0) {
touchSensorObject0 = metaData['name']
- this[touchSensorObject0] = new NfcTouch({}, 1)
+ this[touchSensorObject0] = new NfcTouch({})
} else if (touchSensorObjects == 1) {
touchSensorObject1 = metaData['name']
- this[touchSensorObject1] = new NfcTouch({}, 1)
+ this[touchSensorObject1] = new NfcTouch({})
} else if (touchSensorObjects == 2) {
touchSensorObject2 = metaData['name']
- this[touchSensorObject2] = new NfcTouch({}, 1)
+ this[touchSensorObject2] = new NfcTouch({})
}
touchSensorObjects=touchSensorObjects+1
- settings.put(metaData['name'], new NfcTouch({}, 1))
+ settings.put(metaData['name'], new NfcTouch({}))
if (App == "App1") {
extractedObjectsApp1.append("//Object for class Touch Sensor!\n")
}
if (contains == 0)
- globalObjects.append("@Field def mobilePresenceObject = new MobilePresences(sendEvent, 1)\n")
+ globalObjects.append("@Field def mobilePresenceObject = new MobilePresences(sendEvent)\n")
if (mobilePresenceObjects == 0) {
mobilePresenceObject0 = metaData['name']
- this[mobilePresenceObject0] = new MobilePresences({}, 1)
+ this[mobilePresenceObject0] = new MobilePresences({})
} else if (mobilePresenceObjects == 1) {
mobilePresenceObject1 = metaData['name']
- this[mobilePresenceObject1] = new MobilePresences({}, 1)
+ this[mobilePresenceObject1] = new MobilePresences({})
} else if (mobilePresenceObjects == 2) {
mobilePresenceObject2 = metaData['name']
- this[mobilePresenceObject2] = new MobilePresences({}, 1)
+ this[mobilePresenceObject2] = new MobilePresences({})
}
mobilePresenceObjects=mobilePresenceObjects+1
- settings.put(metaData['name'], new MobilePresences({}, 1))
+ settings.put(metaData['name'], new MobilePresences({}))
if (App == "App1") {
extractedObjectsApp1.append("//Object for class mobile presence!\n")
}
}
if (contains == 0)
- globalObjects.append("@Field def aeonKeyFobObject = new AeonKeyFobs(sendEvent, 1)\n")
+ globalObjects.append("@Field def aeonKeyFobObject = new AeonKeyFobs(sendEvent)\n")
if (aeonKeyFobObjects == 0) {
aeonKeyFobObject0 = metaData['name']
- this[aeonKeyFobObject0] = new AeonKeyFobs({}, 1)
+ this[aeonKeyFobObject0] = new AeonKeyFobs({})
} else if (aeonKeyFobObjects == 1) {
aeonKeyFobObject1 = metaData['name']
- this[aeonKeyFobObject1] = new AeonKeyFobs({}, 1)
+ this[aeonKeyFobObject1] = new AeonKeyFobs({})
} else if (aeonKeyFobObjects == 2) {
aeonKeyFobObject2 = metaData['name']
- this[aeonKeyFobObject2] = new AeonKeyFobs({}, 1)
+ this[aeonKeyFobObject2] = new AeonKeyFobs({})
}
aeonKeyFobObjects=aeonKeyFobObjects+1
- settings.put(metaData['name'], new AeonKeyFobs({}, 1))
+ settings.put(metaData['name'], new AeonKeyFobs({}))
if (App == "App1") {
extractedObjectsApp1.append("//Object for class aeon key fob!\n")
GlobalVariablesBothApps.append("//Creating Global variables for both apps\n")
GlobalVariablesBothApps.append("@Field def sendEvent = {eventDataMap -> eventHandler(eventDataMap)}\n")
GlobalVariablesBothApps.append("@Field def locationObject = new LocationVar(sendEvent, init)\n")
- GlobalVariablesBothApps.append("@Field def appObject = new Touched(sendEvent, 0)\n")
+ GlobalVariablesBothApps.append("@Field def appObject = new Touched(sendEvent)\n")
globalObjects.withReader { reader ->
while ((line = reader.readLine()) != null) {