diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2017-10-23 19:16:28 +1300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-23 19:16:28 +1300 |
commit | 496f6a612eb02396946db2715225f55cc7003a0d (patch) | |
tree | 8028751cd713e90c1b1a35eab4027dda9280959d /src/org/traccar/model/Command.java | |
parent | f6f514bea19a75544378fdbfccb6808ea1a0424e (diff) | |
parent | 22efd02c8a45963e08e887d402bd4b9161636ddf (diff) | |
download | trackermap-server-496f6a612eb02396946db2715225f55cc7003a0d.tar.gz trackermap-server-496f6a612eb02396946db2715225f55cc7003a0d.tar.bz2 trackermap-server-496f6a612eb02396946db2715225f55cc7003a0d.zip |
Merge pull request #3600 from Abyss777/fix_3592
Set deviceId in Saved Command before sending
Diffstat (limited to 'src/org/traccar/model/Command.java')
-rw-r--r-- | src/org/traccar/model/Command.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/org/traccar/model/Command.java b/src/org/traccar/model/Command.java index 67134dc7d..16205ede1 100644 --- a/src/org/traccar/model/Command.java +++ b/src/org/traccar/model/Command.java @@ -20,7 +20,7 @@ import org.traccar.database.QueryIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; @JsonIgnoreProperties(ignoreUnknown = true) -public class Command extends Message { +public class Command extends Message implements Cloneable { public static final String TYPE_CUSTOM = "custom"; public static final String TYPE_IDENTIFICATION = "deviceIdentification"; @@ -77,6 +77,11 @@ public class Command extends Message { public static final String KEY_SERVER = "server"; public static final String KEY_PORT = "port"; + @Override + public Command clone() throws CloneNotSupportedException { + return (Command) super.clone(); + } + private boolean textChannel; public boolean getTextChannel() { |