diff options
author | Abyss777 <abyss@fox5.ru> | 2017-10-23 09:50:35 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2017-10-23 09:50:35 +0500 |
commit | 0283458de495e8f9f5393b1184c7a670e9851dcc (patch) | |
tree | 004593691cb92e1f0bb76f74a90b733f6bee6408 /src/org/traccar/model | |
parent | ed72ff6e7f964bc56a4948c15c97f37c072bf326 (diff) | |
download | trackermap-server-0283458de495e8f9f5393b1184c7a670e9851dcc.tar.gz trackermap-server-0283458de495e8f9f5393b1184c7a670e9851dcc.tar.bz2 trackermap-server-0283458de495e8f9f5393b1184c7a670e9851dcc.zip |
Implement command cloning
Diffstat (limited to 'src/org/traccar/model')
-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..09f0f251b 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() { |