diff options
author | Khaksar Weqar <wkhaksar1@gmail.com> | 2021-11-04 09:56:42 +0100 |
---|---|---|
committer | Khaksar Weqar <wkhaksar1@gmail.com> | 2021-11-04 09:56:42 +0100 |
commit | 2c4b4cdd2e8c8c09bcbdc18dd9cbaeba5bd64ce7 (patch) | |
tree | 958d3151cc5cd3d0c4bf2b72016c90c92dc3659b /src/main/java/org/traccar/notification/NotificationFormatter.java | |
parent | 64d38de4a3c8063ca8aabdc5583843e6db3c9446 (diff) | |
download | trackermap-server-2c4b4cdd2e8c8c09bcbdc18dd9cbaeba5bd64ce7.tar.gz trackermap-server-2c4b4cdd2e8c8c09bcbdc18dd9cbaeba5bd64ce7.tar.bz2 trackermap-server-2c4b4cdd2e8c8c09bcbdc18dd9cbaeba5bd64ce7.zip |
formatting-reverted
Diffstat (limited to 'src/main/java/org/traccar/notification/NotificationFormatter.java')
-rw-r--r-- | src/main/java/org/traccar/notification/NotificationFormatter.java | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/main/java/org/traccar/notification/NotificationFormatter.java b/src/main/java/org/traccar/notification/NotificationFormatter.java index f33961c8b..9a6723a71 100644 --- a/src/main/java/org/traccar/notification/NotificationFormatter.java +++ b/src/main/java/org/traccar/notification/NotificationFormatter.java @@ -58,14 +58,9 @@ public final class NotificationFormatter { return velocityContext; } - public static FullMessage formatFullMessage(long userId, Event event, Position position) { + public static NotificationMessage formatMessage(long userId, Event event, Position position, String templatePath) { VelocityContext velocityContext = prepareContext(userId, event, position); - return TextTemplateFormatter.formatFullMessage(velocityContext, event.getType()); - } - - public static ShortMessage formatShortMessage(long userId, Event event, Position position) { - VelocityContext velocityContext = prepareContext(userId, event, position); - return TextTemplateFormatter.formatShortMessage(velocityContext, event.getType()); + return TextTemplateFormatter.formatMessage(velocityContext, event.getType(), templatePath); } } |