bbb45b3e0151bed4e5bd5aa6ecd68bc2d986c609
[smartthings-infrastructure.git] / AeonKeyFob / AeonKeyFobs.groovy
1 //Create a class for aeon key fob
2 package AeonKeyFob
3 import SmartThing.SmartThings
4
5 public class AeonKeyFobs extends SmartThings {
6         List aeonKeyFobs = new ArrayList()
7                 
8         AeonKeyFobs(Closure sendEvent) {
9                 aeonKeyFobs = smartThings
10                 
11                 // Initialization
12                 StringBuilder id = new StringBuilder("aeonKeyFobID0")
13                 StringBuilder label = new StringBuilder("button")
14                 StringBuilder displayName = new StringBuilder("aeonKeyFob0")
15
16                 aeonKeyFobs.add(new AeonKeyFob(sendEvent, id, label, displayName))
17         }
18 }