/////////////////////////////////////////////////////////////////////
////sendNotificationToContacts(text, recipients)
-def sendNotificationToContacts(String S, List recipients) {
+def sendNotificationToContacts(String text, String recipients) {
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 \""+S+"\" to "+location.PhoneNums[j].toString())
+ for (int j = 0;j < location.contacts.size();j++) {
+ if (recipients[i] == location.contacts[j]) {
+ println("Sending \""+text+"\" to "+location.phoneNumbers[j].toString())
+ }
+ }
+ }
+}
+
+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())
}
}
}