Fixing bug in Mobile Presence class
[smartthings-infrastructure.git] / appTouch / Touched.groovy
1 //Create a class for Touch sensor
2 package appTouch
3 import SmartThing.SmartThing
4
5 public class Touched extends SmartThing {
6         // id, label, and display name of the device
7         String id
8         String label
9         String displayName
10
11         Touched(Closure sendEvent) {
12                 id = "appTouchID0"
13                 label = "appTouch"
14                 displayName = "appTouchSensor"
15                 
16                 idSmartThing = id
17                 labelSmartThing = label
18                 displayNameSmartThing = displayName
19                 sendEventSmartThings = sendEvent
20         }
21 }