aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/broadcast/BroadcastMessage.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-06-25 13:33:35 -0700
committerAnton Tananaev <anton@traccar.org>2022-06-25 13:33:35 -0700
commitc53d98c668af9c79767e22964f05c7bf7dc866f2 (patch)
tree42d664009487232e3a21514bb5ab52c7571262a6 /src/main/java/org/traccar/broadcast/BroadcastMessage.java
parent5a732a26c85785a9b801583f2fff0ce47314aa03 (diff)
downloadtrackermap-server-c53d98c668af9c79767e22964f05c7bf7dc866f2.tar.gz
trackermap-server-c53d98c668af9c79767e22964f05c7bf7dc866f2.tar.bz2
trackermap-server-c53d98c668af9c79767e22964f05c7bf7dc866f2.zip
Integrate broadcast service
Diffstat (limited to 'src/main/java/org/traccar/broadcast/BroadcastMessage.java')
-rw-r--r--src/main/java/org/traccar/broadcast/BroadcastMessage.java43
1 files changed, 38 insertions, 5 deletions
diff --git a/src/main/java/org/traccar/broadcast/BroadcastMessage.java b/src/main/java/org/traccar/broadcast/BroadcastMessage.java
index 6b103f373..3e22be7e0 100644
--- a/src/main/java/org/traccar/broadcast/BroadcastMessage.java
+++ b/src/main/java/org/traccar/broadcast/BroadcastMessage.java
@@ -15,18 +15,22 @@
*/
package org.traccar.broadcast;
+import org.traccar.model.Device;
+import org.traccar.model.Event;
import org.traccar.model.Position;
+import java.util.Map;
+
public class BroadcastMessage {
- private DeviceStatus deviceStatus;
+ private Device device;
- public DeviceStatus getDeviceStatus() {
- return deviceStatus;
+ public Device getDevice() {
+ return device;
}
- public void setDeviceStatus(DeviceStatus deviceStatus) {
- this.deviceStatus = deviceStatus;
+ public void setDevice(Device device) {
+ this.device = device;
}
private Position position;
@@ -39,4 +43,33 @@ public class BroadcastMessage {
this.position = position;
}
+ private Long userId;
+
+ public Long getUserId() {
+ return userId;
+ }
+
+ public void setUserId(Long userId) {
+ this.userId = userId;
+ }
+
+ private Event event;
+
+ public Event getEvent() {
+ return event;
+ }
+
+ public void setEvent(Event event) {
+ this.event = event;
+ }
+
+ private Map<String, Long> changes;
+
+ public Map<String, Long> getChanges() {
+ return changes;
+ }
+
+ public void setChanges(Map<String, Long> changes) {
+ this.changes = changes;
+ }
}