aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar')
-rw-r--r--src/org/traccar/notificators/NotificatorFirebase.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/org/traccar/notificators/NotificatorFirebase.java b/src/org/traccar/notificators/NotificatorFirebase.java
index a01726889..75d325de2 100644
--- a/src/org/traccar/notificators/NotificatorFirebase.java
+++ b/src/org/traccar/notificators/NotificatorFirebase.java
@@ -37,13 +37,15 @@ public class NotificatorFirebase extends Notificator {
private String key;
public static class Notification {
- public String body;
+ @JsonProperty("body")
+ private String body;
}
public static class Message {
@JsonProperty("registration_ids")
- public String[] tokens;
- public Notification notification;
+ private String[] tokens;
+ @JsonProperty("notification")
+ private Notification notification;
}
public NotificatorFirebase() {