aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/notification/NotificationFormatter.java
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2018-06-26 14:15:24 +0500
committerAbyss777 <abyss@fox5.ru>2018-06-26 14:15:24 +0500
commitb70e46560359a181b0136fa1c6b0400615bfc904 (patch)
tree540dab6edd4f4178113d4e1fc1a614052bb1edfd /src/org/traccar/notification/NotificationFormatter.java
parent253f11afa0e31d97d332ca3269111eff36ee347b (diff)
downloadtrackermap-server-b70e46560359a181b0136fa1c6b0400615bfc904.tar.gz
trackermap-server-b70e46560359a181b0136fa1c6b0400615bfc904.tar.bz2
trackermap-server-b70e46560359a181b0136fa1c6b0400615bfc904.zip
Rename MailMessage to FullMessage
Diffstat (limited to 'src/org/traccar/notification/NotificationFormatter.java')
-rw-r--r--src/org/traccar/notification/NotificationFormatter.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/notification/NotificationFormatter.java b/src/org/traccar/notification/NotificationFormatter.java
index ddc35227e..a1abdd0cc 100644
--- a/src/org/traccar/notification/NotificationFormatter.java
+++ b/src/org/traccar/notification/NotificationFormatter.java
@@ -88,12 +88,12 @@ public final class NotificationFormatter {
return template;
}
- public static MailMessage formatFullMessage(long userId, Event event, Position position) {
+ public static FullMessage formatFullMessage(long userId, Event event, Position position) {
String templatePath = Context.getConfig().getString("message.full.templatesPath", "full");
VelocityContext velocityContext = prepareContext(userId, event, position);
String formattedMessage = formatMessage(velocityContext, userId, event, position, templatePath);
- return new MailMessage((String) velocityContext.get("subject"), formattedMessage);
+ return new FullMessage((String) velocityContext.get("subject"), formattedMessage);
}
public static String formatShortMessage(long userId, Event event, Position position) {