diff options
author | Abyss777 <abyss@fox5.ru> | 2018-06-26 12:29:08 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2018-06-26 12:29:08 +0500 |
commit | 253f11afa0e31d97d332ca3269111eff36ee347b (patch) | |
tree | 98866ec1ffed872995b4a71c0c1deb99a4f9c656 /src/org/traccar/database/NotificationManager.java | |
parent | 825ee0d178a24620f075cb4ffb8d49c75b046484 (diff) | |
download | trackermap-server-253f11afa0e31d97d332ca3269111eff36ee347b.tar.gz trackermap-server-253f11afa0e31d97d332ca3269111eff36ee347b.tar.bz2 trackermap-server-253f11afa0e31d97d332ca3269111eff36ee347b.zip |
Rename transports to notificators
Diffstat (limited to 'src/org/traccar/database/NotificationManager.java')
-rw-r--r-- | src/org/traccar/database/NotificationManager.java | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/org/traccar/database/NotificationManager.java b/src/org/traccar/database/NotificationManager.java index b2a30e4f1..5dcb1d317 100644 --- a/src/org/traccar/database/NotificationManager.java +++ b/src/org/traccar/database/NotificationManager.java @@ -83,16 +83,15 @@ public class NotificationManager extends ExtendedObjectManager<Notification> { if (usersToForward != null) { usersToForward.add(userId); } - final Set<String> notificationMethods = new HashSet<>(); + final Set<String> notificators = new HashSet<>(); for (long notificationId : getEffectiveNotifications(userId, deviceId, event.getServerTime())) { Notification notification = getById(notificationId); if (getById(notificationId).getType().equals(event.getType())) { - notificationMethods.addAll(notification.getTransportMethods()); + notificators.addAll(notification.getNotificatorsTypes()); } } - for (String notificationMethod : notificationMethods) { - Context.getNotificatorManager() - .getNotificator(notificationMethod).sendAsync(userId, event, position); + for (String notificator : notificators) { + Context.getNotificatorManager().getNotificator(notificator).sendAsync(userId, event, position); } } } |