Commit #9: extension to the infrastructure with more devices + minor changes in extra...
[smartthings-infrastructure.git] / Location / Phrase.groovy
index c70b934d878a09304916bbbecc4b120d8f68be03..e64609640a0007fa26986f4988c25fad4d04a157 100644 (file)
@@ -2,14 +2,17 @@
 package Location
 
 class Phrase {
-       private LinkedHashMap phrases
+       private phrases
        
        Phrase() {
-               this.phrases = [id:0, label:"Good Morning!"]
+               this.phrases = [[id:0, label:"Good Night!"],[id:1, label:"Good Morning!"],
+                               [id:2, label:"Goodbye!"],[id:3, label:"I'm Back!"]]
        } 
        def getPhrases() {
                return this.phrases
        }
+       def execute(String phrase) {
+               println(phrase)
+       }
 }
 
-