Modifying variable names in the Makefile to avoid confusion.
[smartthings-infrastructure.git] / Methods / subscribe.groovy
1 /////////////////////////////////////////////////////////////////////
2 ////subscribe(app, func)
3 def subscribe(Object Obj, Closure Input) {
4         EventList.add("Touched")
5         FunctionList.add(Input)
6 }
7 ////subscribe(obj, string, func)
8 def subscribe(Object Obj, String S, Closure Input) {
9         ObjectList.add(Obj)
10         EventList.add(S)
11         FunctionList.add(Input)
12 }
13 ////subscribe(obj, string, func, hashmap)
14 def subscribe(Object Obj, String S, Closure Input, LinkedHashMap LHM) {
15         ObjectList.add(Obj)     
16         EventList.add(S)
17         FunctionList.add(Input)
18 }