Changes in classes: new concept for latest value + all types of events generated...
[smartthings-infrastructure.git] / Methods / sendNotificationToContacts.groovy
index 165d0a4320a977b8e0382d24b9aba7beeebd6dd4..06563c0878eb63d714a5dd88caffa1ea776a982b 100644 (file)
@@ -9,3 +9,13 @@ def sendNotificationToContacts(String text, String recipients) {
                }
        }
 }
+
+def sendNotificationToContacts(String text, String recipients, LinkedHashMap metaData) {
+       for (int i = 0;i < recipients.size();i++) {
+               for (int j = 0;j < location.contacts.size();j++) {
+                       if (recipients[i] == location.contacts[j]) {
+                               println("Sending \""+text+"\" to "+location.phoneNumbers[j].toString())
+                       }
+               }
+       }
+}