"First commit!"
[smartthings-infrastructure.git] / Methods / sendNotificationToContacts.groovy
1 /////////////////////////////////////////////////////////////////////
2 ////sendNotificationToContacts(text, recipients)
3 def sendNotificationToContacts(String S, List recipients) {
4         for (int i = 0;i < recipients.size();i++) {
5                 for (int j = 0;j < location.CONTACTS.size();j++) {
6                         if (recipients[i] == location.CONTACTS[j]) {
7                                 println("Sending \""+S+"\" to "+location.PhoneNums[j].toString())
8                         }
9                 }
10         }
11 }