diff options
author | Abyss777 <abyss@fox5.ru> | 2016-05-30 12:07:43 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2016-05-30 12:07:43 +0500 |
commit | 80119f59a0d4b89396f5d7d57ba2d80257a8da79 (patch) | |
tree | f8a55519dac687f9d9f1518f16c148310a915353 /src/org/traccar/api | |
parent | 6e00239038002aa383cce39be7f53b85f3d03a94 (diff) | |
download | traccar-server-80119f59a0d4b89396f5d7d57ba2d80257a8da79.tar.gz traccar-server-80119f59a0d4b89396f5d7d57ba2d80257a8da79.tar.bz2 traccar-server-80119f59a0d4b89396f5d7d57ba2d80257a8da79.zip |
- Style fixes (use lower camel case in all cases)
- Added TYPE_prefix for event.type strings
- Removed commented code
- Removed "database.selectLastEvents" because it is not cross-database. Do the same via code.
Diffstat (limited to 'src/org/traccar/api')
-rw-r--r-- | src/org/traccar/api/resource/EventResource.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/api/resource/EventResource.java b/src/org/traccar/api/resource/EventResource.java index e0ad34728..4ea3e3b49 100644 --- a/src/org/traccar/api/resource/EventResource.java +++ b/src/org/traccar/api/resource/EventResource.java @@ -32,7 +32,7 @@ public class EventResource extends BaseResource { @GET public Collection<Event> get( @QueryParam("deviceId") long deviceId, @QueryParam("type") String type, - @QueryParam("interval") long interval) throws SQLException { + @QueryParam("interval") int interval) throws SQLException { Context.getPermissionsManager().checkDevice(getUserId(), deviceId); return Context.getDataManager().getLastEvents(deviceId, type, interval); } |