Removing getXXX methods + properties. Adding getProperty feature to SmartThing(s)
[smartthings-infrastructure.git] / appTouch / Touched.groovy
index 980a05a10608784634a7e77c244721d9a7df57a4..0cc6851e5cb2a57e082b6fff4808191d8bfd9c23 100644 (file)
@@ -4,19 +4,18 @@ import SmartThing.SmartThing
 
 public class Touched 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
 
        Touched(Closure sendEvent) {
+               id = "appTouchID0"
+               label = "appTouch"
+               displayName = "appTouchSensor"
+               
                idSmartThing = id
                labelSmartThing = label
                displayNameSmartThing = displayName
                sendEventSmartThings = sendEvent
-
-               // Initialization
-               id.append("appTouchID0")
-               label.append("appTouch")
-               displayName.append("appTouch0")
        }
 }