diff options
author | Ivan Martinez <ivanfmartinez@users.noreply.github.com> | 2018-06-01 09:48:07 -0300 |
---|---|---|
committer | Ivan Martinez <ivanfmartinez@users.noreply.github.com> | 2018-06-01 09:48:07 -0300 |
commit | 4fc750b585dd6b2953b16408dd57a8ef93fdeee9 (patch) | |
tree | 8697ae3559ad7b5e4e9b667a6d2faef568769b1a /src/org/traccar/api/resource | |
parent | 8ca7b2d0d9b5e18dd7e96a2cf5b1b8d8d751051a (diff) | |
download | trackermap-server-4fc750b585dd6b2953b16408dd57a8ef93fdeee9.tar.gz trackermap-server-4fc750b585dd6b2953b16408dd57a8ef93fdeee9.tar.bz2 trackermap-server-4fc750b585dd6b2953b16408dd57a8ef93fdeee9.zip |
move NotificatorManager instance to Context
Diffstat (limited to 'src/org/traccar/api/resource')
-rw-r--r-- | src/org/traccar/api/resource/NotificationResource.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/org/traccar/api/resource/NotificationResource.java b/src/org/traccar/api/resource/NotificationResource.java index 2a398f40d..830e34fc0 100644 --- a/src/org/traccar/api/resource/NotificationResource.java +++ b/src/org/traccar/api/resource/NotificationResource.java @@ -31,7 +31,6 @@ import org.traccar.model.Event; import org.traccar.model.Notification; import org.traccar.model.Typed; import org.traccar.notification.NotificationException; -import org.traccar.notification.NotificatorManager; @Path("notifications") @@ -52,8 +51,8 @@ public class NotificationResource extends ExtendedObjectResource<Notification> { @POST @Path("test") public Response testMessage() throws NotificationException, InterruptedException { - NotificatorManager.getMail().sendSync(getUserId(), new Event("test", 0), null); - NotificatorManager.getSms().sendSync(getUserId(), new Event("test", 0), null); + Context.getNotificatorManager().getMail().sendSync(getUserId(), new Event("test", 0), null); + Context.getNotificatorManager().getSms().sendSync(getUserId(), new Event("test", 0), null); return Response.noContent().build(); } |