Commit #8: New version of extractor with running the preferences method make things...
[smartthings-infrastructure.git] / GlobalVariables / GlobalVariablesBothApps.groovy
1 //Create a global variable for send event
2 @Field def sendEvent = {eventDataMap -> 
3                         eventHandler(eventDataMap)
4                         }
5 //Object for location
6 @Field def locationObject = new LocationVar()
7 //Object for touch to call function
8 @Field def appObject = new Touched(sendEvent, 0)
9 //Create a global list for events
10 @Field def evt = []
11 //Global Object for class Touch Sensor!
12 @Field def touchSensorObject = new NfcTouch(sendEvent, 1)
13 //Global Object for class switch!
14 @Field def switchObject = new Switches(sendEvent, 1)
15 //Global Object for class lock!
16 @Field def lockObject = new Locks(sendEvent, 1)
17 //Global Object for class door control!
18 @Field def doorControlObject = new DoorControls(sendEvent, 1)
19 //Global Object for class contact sensor!
20 @Field def contactObject = new ContactSensors(sendEvent, 1)
21 //Global Object for class presence sensor!
22 @Field def presenceSensorObject = new PresenceSensors(sendEvent, 1)
23 //Global Object for class thermostat!
24 @Field def thermostatObject = new Thermostats(sendEvent, 1)