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")
}
}