Commit #6
[smartthings-infrastructure.git] / appTouch / Touched.groovy
index e2172cc44f7a70e371a7818d3e54df1d923e43bb..530d64b2e906ff1e1ea81184ff1aaf615b7daa81 100644 (file)
@@ -2,11 +2,11 @@
 package appTouch
 
 public class Touched{
-       def fun
+       def sendEvent
        private int isTouched
 
        Touched(Closure sendEvent, int isTouched) {
-               fun = sendEvent
+               this.sendEvent = sendEvent
                this.isTouched = isTouched
        }
 
@@ -14,6 +14,6 @@ public class Touched{
        def setValue(LinkedHashMap eventDataMap) {
                println("The application is Touched!")
                this.isTouched = 1 //Do we need this?
-               fun(eventDataMap)
+               sendEvent(eventDataMap)
        }
 }