diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-05-09 14:47:28 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2016-05-09 14:47:28 +1200 |
commit | 4e44bf1fa20bf6ce41cc7e0eed9b79d079454f82 (patch) | |
tree | e145e20169c61e12bb57f9145bc0c626add5596d /src/org/traccar/BaseProtocol.java | |
parent | 7ed27b733d442cb442a8049263fab282b39e5872 (diff) | |
parent | 301f2d314f446410da78615ac76ce0c07571d445 (diff) | |
download | trackermap-server-4e44bf1fa20bf6ce41cc7e0eed9b79d079454f82.tar.gz trackermap-server-4e44bf1fa20bf6ce41cc7e0eed9b79d079454f82.tar.bz2 trackermap-server-4e44bf1fa20bf6ce41cc7e0eed9b79d079454f82.zip |
Merge pull request #1920 from gaborgsomogyi/command_framework
Get supported commands from server
Diffstat (limited to 'src/org/traccar/BaseProtocol.java')
-rw-r--r-- | src/org/traccar/BaseProtocol.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/org/traccar/BaseProtocol.java b/src/org/traccar/BaseProtocol.java index 826a290d0..446f57d65 100644 --- a/src/org/traccar/BaseProtocol.java +++ b/src/org/traccar/BaseProtocol.java @@ -22,6 +22,7 @@ import org.traccar.model.Command; import javax.xml.bind.DatatypeConverter; import java.util.Arrays; +import java.util.Collection; import java.util.HashSet; import java.util.Set; @@ -44,6 +45,11 @@ public abstract class BaseProtocol implements Protocol { } @Override + public Collection<String> getSupportedCommands() { + return supportedCommands; + } + + @Override public void sendCommand(ActiveDevice activeDevice, Command command) { if (command.getType().equals(Command.TYPE_CUSTOM)) { String data = (String) command.getAttributes().get(Command.KEY_DATA); |