Commit #6
[smartthings-infrastructure.git] / GlobalVariables / GlobalVariablesBothApps.groovy
1 //Create a global variable for send event
2 @Field def sendEvent = {eventDataMap -> 
3                         app1.eventHandler(eventDataMap)
4                         app2.eventHandler(eventDataMap)
5                         }
6 //Object for location
7 @Field def locationObject = new LocationVar()
8 //Object for touch
9 @Field def appObject = new Touched(sendEvent, 0)