Removing getXXX methods + properties. Adding getProperty feature to SmartThing(s)
[smartthings-infrastructure.git] / NfcTouch / NfcTouch.groovy
index 80ce59d66650bec55d312470c3cb7da5b4d4adbc..fe467e9cea117f31be22efd20bc7a995daf7270e 100644 (file)
@@ -4,9 +4,9 @@ import SmartThing.SmartThing
 
 public class NfcTouch extends SmartThing {
        // id, label, and display name of the device
-       StringBuilder id = new StringBuilder()
-       StringBuilder label = new StringBuilder()
-       StringBuilder displayName = new StringBuilder()
+       String id
+       String label
+       String displayName
 
        NfcTouch(Closure sendEvent) {
                idSmartThing = id
@@ -15,8 +15,8 @@ public class NfcTouch extends SmartThing {
                sendEventSmartThings = sendEvent
 
                // Initialization
-               id.append("nfcSensorID0")
-               label.append("nfcSensor")
-               displayName.append("nfcSensor0")
+               id = "nfcSensorID0"
+               label = "nfcSensor"
+               displayName = "nfcSensor"
        }
 }