aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/ServerManager.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/ServerManager.java')
-rw-r--r--src/org/traccar/ServerManager.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/org/traccar/ServerManager.java b/src/org/traccar/ServerManager.java
index 5e59851f7..cf49b3e2c 100644
--- a/src/org/traccar/ServerManager.java
+++ b/src/org/traccar/ServerManager.java
@@ -15,7 +15,7 @@
*/
package org.traccar;
-import org.traccar.model.SupportedCommand;
+import org.traccar.model.CommandType;
import java.io.File;
import java.net.URI;
@@ -98,16 +98,16 @@ public class ServerManager {
}
}
- public Collection<SupportedCommand> getProtocolSuppportedCommands(String protocol) {
- List<SupportedCommand> result = new ArrayList<>();
+ public Collection<CommandType> getProtocolCommandTypes(String protocol) {
+ List<CommandType> result = new ArrayList<>();
if (protocol != null) {
BaseProtocol baseProtocol = protocols.get(protocol);
if (baseProtocol != null) {
for (String commandKey : baseProtocol.getSupportedCommands()) {
- SupportedCommand supportedCommand = new SupportedCommand();
- supportedCommand.setKey(commandKey);
- result.add(supportedCommand);
+ CommandType commandType = new CommandType();
+ commandType.setKey(commandKey);
+ result.add(commandType);
}
}
}