Removing getXXX methods + properties. Adding getProperty feature to SmartThing(s)
[smartthings-infrastructure.git] / NfcTouch / NfcTouch.groovy
1 //Create a class for Touch sensor
2 package NfcTouch
3 import SmartThing.SmartThing
4
5 public class NfcTouch extends SmartThing {
6         // id, label, and display name of the device
7         String id
8         String label
9         String displayName
10
11         NfcTouch(Closure sendEvent) {
12                 idSmartThing = id
13                 labelSmartThing = label
14                 displayNameSmartThing = displayName
15                 sendEventSmartThings = sendEvent
16
17                 // Initialization
18                 id = "nfcSensorID0"
19                 label = "nfcSensor"
20                 displayName = "nfcSensor"
21         }
22 }