aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/model/Command.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-09-28 07:13:11 -0700
committerAnton Tananaev <anton@traccar.org>2022-09-28 07:13:11 -0700
commit257ee673e08d2d4080d156079ce7b62752f1476d (patch)
treeb6fe141790479dee6156fa50161c7e83bbcc6e30 /src/main/java/org/traccar/model/Command.java
parentf358feda0b0294e403dafd118714ab24b7a8afde (diff)
downloadtrackermap-server-257ee673e08d2d4080d156079ce7b62752f1476d.tar.gz
trackermap-server-257ee673e08d2d4080d156079ce7b62752f1476d.tar.bz2
trackermap-server-257ee673e08d2d4080d156079ce7b62752f1476d.zip
Queued command model
Diffstat (limited to 'src/main/java/org/traccar/model/Command.java')
-rw-r--r--src/main/java/org/traccar/model/Command.java29
1 files changed, 2 insertions, 27 deletions
diff --git a/src/main/java/org/traccar/model/Command.java b/src/main/java/org/traccar/model/Command.java
index 49486bdbc..4ea619e95 100644
--- a/src/main/java/org/traccar/model/Command.java
+++ b/src/main/java/org/traccar/model/Command.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2015 - 2020 Anton Tananaev (anton@traccar.org)
+ * Copyright 2015 - 2022 Anton Tananaev (anton@traccar.org)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -22,7 +22,7 @@ import org.traccar.storage.StorageName;
@StorageName("tc_commands")
@JsonIgnoreProperties(ignoreUnknown = true)
-public class Command extends Message implements Cloneable {
+public class Command extends BaseCommand {
public static final String TYPE_CUSTOM = "custom";
public static final String TYPE_IDENTIFICATION = "deviceIdentification";
@@ -84,21 +84,6 @@ public class Command extends Message implements Cloneable {
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() {
- return textChannel;
- }
-
- public void setTextChannel(boolean textChannel) {
- this.textChannel = textChannel;
- }
-
@QueryIgnore
@Override
public long getDeviceId() {
@@ -111,14 +96,4 @@ public class Command extends Message implements Cloneable {
super.setDeviceId(deviceId);
}
- private String description;
-
- public String getDescription() {
- return description;
- }
-
- public void setDescription(String description) {
- this.description = description;
- }
-
}