aboutsummaryrefslogtreecommitdiff
path: root/src/org
diff options
context:
space:
mode:
authorChristoph Krey <c@ckrey.de>2018-11-12 11:22:51 +0100
committerChristoph Krey <c@ckrey.de>2018-11-12 11:22:51 +0100
commite8f0c569e2aec2ad44a532a8bc366556e1f374c5 (patch)
tree3a4dc95a8569ba6d749949cfab9896922a71291a /src/org
parent2dc53f13f965b17152b4174e51c60d143b12fbc7 (diff)
downloadtrackermap-server-e8f0c569e2aec2ad44a532a8bc366556e1f374c5.tar.gz
trackermap-server-e8f0c569e2aec2ad44a532a8bc366556e1f374c5.tar.bz2
trackermap-server-e8f0c569e2aec2ad44a532a8bc366556e1f374c5.zip
[FIX] use meaningfull variable names
Diffstat (limited to 'src/org')
-rw-r--r--src/org/traccar/protocol/OwnTracksProtocolDecoder.java20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/org/traccar/protocol/OwnTracksProtocolDecoder.java b/src/org/traccar/protocol/OwnTracksProtocolDecoder.java
index c81ebe522..b0a40e4fc 100644
--- a/src/org/traccar/protocol/OwnTracksProtocolDecoder.java
+++ b/src/org/traccar/protocol/OwnTracksProtocolDecoder.java
@@ -170,30 +170,30 @@ public class OwnTracksProtocolDecoder extends BaseHttpProtocolDecoder {
return position;
}
- private void setEventOrAlarm(Position position, String t, Integer rty) {
- if (t.equals("9")) {
+ private void setEventOrAlarm(Position position, String trigger, Integer rty) {
+ if (trigger.equals("9")) {
position.set(Position.KEY_EVENT, Event.TYPE_ALARM);
position.set(Position.KEY_ALARM, Position.ALARM_LOW_BATTERY);
- } else if (t.equals("1")) {
+ } else if (trigger.equals("1")) {
position.set(Position.KEY_EVENT, Event.TYPE_ALARM);
position.set(Position.KEY_ALARM, Position.ALARM_POWER_ON);
- } else if (t.equals("i")) {
+ } else if (trigger.equals("i")) {
position.set(Position.KEY_IGNITION, true);
- } else if (t.equals("I")) {
+ } else if (trigger.equals("I")) {
position.set(Position.KEY_IGNITION, false);
- } else if (t.equals("E")) {
+ } else if (trigger.equals("E")) {
position.set(Position.KEY_EVENT, Event.TYPE_ALARM);
position.set(Position.KEY_ALARM, Position.ALARM_POWER_RESTORED);
- } else if (t.equals("e")) {
+ } else if (trigger.equals("e")) {
position.set(Position.KEY_EVENT, Event.TYPE_ALARM);
position.set(Position.KEY_ALARM, Position.ALARM_POWER_CUT);
- } else if (t.equals("!")) {
+ } else if (trigger.equals("!")) {
position.set(Position.KEY_EVENT, Event.TYPE_ALARM);
position.set(Position.KEY_ALARM, Position.ALARM_TOW);
- } else if (t.equals("s")) {
+ } else if (trigger.equals("s")) {
position.set(Position.KEY_EVENT, Event.TYPE_ALARM);
position.set(Position.KEY_ALARM, Position.ALARM_OVERSPEED);
- } else if (t.equals("h")) {
+ } else if (trigger.equals("h")) {
position.set(Position.KEY_EVENT, Event.TYPE_ALARM);
switch (rty) {
case 0: