diff options
author | Ivan Martinez <ivanfmartinez@users.noreply.github.com> | 2018-06-01 10:43:16 -0300 |
---|---|---|
committer | Ivan Martinez <ivanfmartinez@users.noreply.github.com> | 2018-06-01 10:43:16 -0300 |
commit | 294c399e5b260313a2d49a0fed1516116a23fbd5 (patch) | |
tree | 24207d763ec5ef5bee09975a3c7e4745854a0779 /src/org/traccar/notification/NotificatorManager.java | |
parent | 4fc750b585dd6b2953b16408dd57a8ef93fdeee9 (diff) | |
download | trackermap-server-294c399e5b260313a2d49a0fed1516116a23fbd5.tar.gz trackermap-server-294c399e5b260313a2d49a0fed1516116a23fbd5.tar.bz2 trackermap-server-294c399e5b260313a2d49a0fed1516116a23fbd5.zip |
update api to support notificators
Diffstat (limited to 'src/org/traccar/notification/NotificatorManager.java')
-rw-r--r-- | src/org/traccar/notification/NotificatorManager.java | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/org/traccar/notification/NotificatorManager.java b/src/org/traccar/notification/NotificatorManager.java index c58149847..20c7749d2 100644 --- a/src/org/traccar/notification/NotificatorManager.java +++ b/src/org/traccar/notification/NotificatorManager.java @@ -20,6 +20,7 @@ import java.lang.reflect.Constructor; import java.lang.reflect.InvocationTargetException; import java.util.HashMap; import java.util.Map; +import java.util.Set; import org.traccar.Context; import org.traccar.helper.Log; @@ -60,12 +61,9 @@ public final class NotificatorManager { return n; } - public Notificator getSms() { - return getNotificator("sms"); - } - public Notificator getMail() { - return getNotificator("mail"); + public Set<String> getNotificatorTypes() { + return notificators.keySet(); } |