Commit #4
[smartthings-infrastructure.git] / Location / LocationVar.groovy
diff --git a/Location/LocationVar.groovy b/Location/LocationVar.groovy
new file mode 100644 (file)
index 0000000..cfaa308
--- /dev/null
@@ -0,0 +1,21 @@
+//Create a class for location variable
+package Location
+
+class LocationVar {
+       private int contactBookEnabled
+       private String modes
+       private String mode
+       private List contacts
+       private List phoneNumbers
+    
+       private Phrase helloHome
+
+       LocationVar() {
+               this.modes = "'home', 'away', 'night'"
+               this.mode = "home"
+               this.helloHome = new Phrase()
+               this.contactBookEnabled = 1
+               this.contacts = ['AJ']
+               this.phoneNumbers = [9495379373]
+       }
+}