Removing getXXX methods + properties. Adding getProperty feature to SmartThing(s)
[smartthings-infrastructure.git] / AeonKeyFob / AeonKeyFob.groovy
1 //Create a class for aeon key fob
2 package AeonKeyFob
3 import SmartThing.SmartThing
4
5 public class AeonKeyFob extends SmartThing {
6         // id, label, and display name of the device
7         String id
8         String label
9         String displayName
10         // Possible values for eventsSince method
11         List<String> possibleValues = new ArrayList<String>()
12
13         AeonKeyFob(Closure sendEvent, String id, String label, String displayName) {
14                 idSmartThing = id
15                 labelSmartThing = label
16                 displayNameSmartThing = displayName
17                 possibleValuesSmartThings = possibleValues
18                 sendEventSmartThings = sendEvent
19
20                 // Initialization
21                 this.id = id
22                 this.label = label
23                 this.displayName = displayName
24                 possibleValues.add("pushed")
25                 possibleValues.add("held")
26         }
27 }