diff options
author | Abyss777 <abyss@fox5.ru> | 2017-09-19 10:42:07 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2017-09-19 14:46:54 +0500 |
commit | 9519b653a8cef055366b0903fdd371c8f86d1206 (patch) | |
tree | 330fe6bb9ee1fe45330979f16f16e204e1437447 /src/org/traccar/model | |
parent | c82fd979ad17ecfb7dd8f3e366c067b66f4cdabc (diff) | |
download | traccar-server-9519b653a8cef055366b0903fdd371c8f86d1206.tar.gz traccar-server-9519b653a8cef055366b0903fdd371c8f86d1206.tar.bz2 traccar-server-9519b653a8cef055366b0903fdd371c8f86d1206.zip |
Implement per device Notifications
Diffstat (limited to 'src/org/traccar/model')
-rw-r--r-- | src/org/traccar/model/Notification.java | 10 | ||||
-rw-r--r-- | src/org/traccar/model/Typed.java (renamed from src/org/traccar/model/CommandType.java) | 4 |
2 files changed, 7 insertions, 7 deletions
diff --git a/src/org/traccar/model/Notification.java b/src/org/traccar/model/Notification.java index e7bb69903..9d6034fff 100644 --- a/src/org/traccar/model/Notification.java +++ b/src/org/traccar/model/Notification.java @@ -17,14 +17,14 @@ package org.traccar.model; public class Notification extends ExtendedModel { - private long userId; + private boolean always; - public long getUserId() { - return userId; + public boolean getAlways() { + return always; } - public void setUserId(long userId) { - this.userId = userId; + public void setAlways(boolean always) { + this.always = always; } private String type; diff --git a/src/org/traccar/model/CommandType.java b/src/org/traccar/model/Typed.java index 210316f71..313ec7bcd 100644 --- a/src/org/traccar/model/CommandType.java +++ b/src/org/traccar/model/Typed.java @@ -15,11 +15,11 @@ */ package org.traccar.model; -public class CommandType { +public class Typed { private String type; - public CommandType(String type) { + public Typed(String type) { this.type = type; } |