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/events/CommandResultEventHandler.java | |
parent | 6e00239038002aa383cce39be7f53b85f3d03a94 (diff) | |
download | trackermap-server-80119f59a0d4b89396f5d7d57ba2d80257a8da79.tar.gz trackermap-server-80119f59a0d4b89396f5d7d57ba2d80257a8da79.tar.bz2 trackermap-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/events/CommandResultEventHandler.java')
-rw-r--r-- | src/org/traccar/events/CommandResultEventHandler.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/org/traccar/events/CommandResultEventHandler.java b/src/org/traccar/events/CommandResultEventHandler.java index 8ef015841..23c62566a 100644 --- a/src/org/traccar/events/CommandResultEventHandler.java +++ b/src/org/traccar/events/CommandResultEventHandler.java @@ -8,9 +8,9 @@ public class CommandResultEventHandler extends BaseEventHandler { @Override protected Event analizePosition(Position position) { - Object cmdResult = position.getAttributes().get(Position.KEY_RESULT); - if (cmdResult != null) { - return new Event(Event.COMMAND_RESULT, position.getDeviceId(), position.getId()); + Object commandResult = position.getAttributes().get(Position.KEY_RESULT); + if (commandResult != null) { + return new Event(Event.TYPE_COMMAND_RESULT, position.getDeviceId(), position.getId()); } return null; } |