aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/api/resource
diff options
context:
space:
mode:
authorGabor Somogyi <Gabor_Somogyi@epam.com>2016-05-05 15:36:56 +0200
committerGabor Somogyi <Gabor_Somogyi@epam.com>2016-05-05 15:36:56 +0200
commitbe0040a7c18f5c165f1aaa27a194a189f50b1510 (patch)
tree7f566c14e753e58ab784328ef40a33bdc9793c91 /src/org/traccar/api/resource
parentbe2e936c935fa8674f09ee3617b1ecfae4b90ff9 (diff)
downloadtrackermap-server-be0040a7c18f5c165f1aaa27a194a189f50b1510.tar.gz
trackermap-server-be0040a7c18f5c165f1aaa27a194a189f50b1510.tar.bz2
trackermap-server-be0040a7c18f5c165f1aaa27a194a189f50b1510.zip
Backend side model put back
Diffstat (limited to 'src/org/traccar/api/resource')
-rw-r--r--src/org/traccar/api/resource/SupportedCommandResource.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/org/traccar/api/resource/SupportedCommandResource.java b/src/org/traccar/api/resource/SupportedCommandResource.java
index 393588d9b..1d5ce8595 100644
--- a/src/org/traccar/api/resource/SupportedCommandResource.java
+++ b/src/org/traccar/api/resource/SupportedCommandResource.java
@@ -18,6 +18,7 @@ package org.traccar.api.resource;
import org.traccar.Context;
import org.traccar.api.BaseResource;
import org.traccar.model.Position;
+import org.traccar.model.SupportedCommand;
import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
@@ -35,7 +36,7 @@ import java.util.Collections;
public class SupportedCommandResource extends BaseResource {
@GET
- public Collection<String> get(@QueryParam("deviceId") long deviceId) throws SQLException {
+ public Collection<SupportedCommand> get(@QueryParam("deviceId") long deviceId) throws SQLException {
Context.getPermissionsManager().checkDevice(getUserId(), deviceId);
Position lastPosition = Context.getConnectionManager().getLastPosition(deviceId);
if (lastPosition != null) {