aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/api
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2017-09-13 13:46:38 +0500
committerAbyss777 <abyss@fox5.ru>2017-09-13 13:46:38 +0500
commit7530522cbca477cb822cb494ffe12480e5237934 (patch)
treef584c95c9d6f2a4a7668ac1498a8f8772052cb6c /src/org/traccar/api
parent0745524cc0a42165e7e1645bdc8d043bf6b8864f (diff)
downloadtraccar-server-7530522cbca477cb822cb494ffe12480e5237934.tar.gz
traccar-server-7530522cbca477cb822cb494ffe12480e5237934.tar.bz2
traccar-server-7530522cbca477cb822cb494ffe12480e5237934.zip
Re implement "getSupportedCommands" function
Diffstat (limited to 'src/org/traccar/api')
-rw-r--r--src/org/traccar/api/resource/CommandResource.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/org/traccar/api/resource/CommandResource.java b/src/org/traccar/api/resource/CommandResource.java
index b7ea022de..6a258497f 100644
--- a/src/org/traccar/api/resource/CommandResource.java
+++ b/src/org/traccar/api/resource/CommandResource.java
@@ -45,12 +45,11 @@ public class CommandResource extends ExtendedObjectResource<Command> {
@GET
@Path("send")
- public Collection<Command> get(@QueryParam("deviceId") long deviceId,
- @QueryParam("textChannel") boolean textChannel) throws SQLException {
+ public Collection<Command> get(@QueryParam("deviceId") long deviceId) throws SQLException {
Context.getPermissionsManager().checkDevice(getUserId(), deviceId);
CommandsManager commandsManager = Context.getCommandsManager();
Set<Long> result = new HashSet<>(commandsManager.getUserItems(getUserId()));
- result.retainAll(commandsManager.getSupportedCommands(deviceId, textChannel));
+ result.retainAll(commandsManager.getSupportedCommands(deviceId));
return commandsManager.getItems(result);
}