X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=NfcTouch%2FNfcTouch.groovy;fp=NfcTouch%2FNfcTouch.groovy;h=fe467e9cea117f31be22efd20bc7a995daf7270e;hb=2d26e7af07daad1394408bdcf76150b5aacf3a8a;hp=80ce59d66650bec55d312470c3cb7da5b4d4adbc;hpb=83071d3bcfc33f015ece13868342644498a9dda3;p=smartthings-infrastructure.git diff --git a/NfcTouch/NfcTouch.groovy b/NfcTouch/NfcTouch.groovy index 80ce59d..fe467e9 100644 --- a/NfcTouch/NfcTouch.groovy +++ b/NfcTouch/NfcTouch.groovy @@ -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" } }