aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/UlbotechProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-08-14 16:41:04 +0300
committerAnton Tananaev <anton.tananaev@gmail.com>2016-08-14 16:41:04 +0300
commit8030d39ca0522bc8be69e017fa9fc06900d1a7bc (patch)
treecb3fcf7125c09c291dba92dab340147dac4b7525 /src/org/traccar/protocol/UlbotechProtocolDecoder.java
parent15b5ac0768ee7236d1af025460a3bdd4f8fa6994 (diff)
downloadtrackermap-server-8030d39ca0522bc8be69e017fa9fc06900d1a7bc.tar.gz
trackermap-server-8030d39ca0522bc8be69e017fa9fc06900d1a7bc.tar.bz2
trackermap-server-8030d39ca0522bc8be69e017fa9fc06900d1a7bc.zip
Use lower camel-case for attributes
Diffstat (limited to 'src/org/traccar/protocol/UlbotechProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/UlbotechProtocolDecoder.java24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/org/traccar/protocol/UlbotechProtocolDecoder.java b/src/org/traccar/protocol/UlbotechProtocolDecoder.java
index 36fb23f9a..d97e8b339 100644
--- a/src/org/traccar/protocol/UlbotechProtocolDecoder.java
+++ b/src/org/traccar/protocol/UlbotechProtocolDecoder.java
@@ -90,28 +90,28 @@ public class UlbotechProtocolDecoder extends BaseProtocolDecoder {
int value = buf.readUnsignedByte();
if (BitUtil.check(value, 0)) {
- position.set("rapid-acceleration", true);
+ position.set("rapidAcceleration", true);
}
if (BitUtil.check(value, 1)) {
- position.set("rough-braking", true);
+ position.set("roughBraking", true);
}
if (BitUtil.check(value, 2)) {
- position.set("harsh-course", true);
+ position.set("harshCourse", true);
}
if (BitUtil.check(value, 3)) {
- position.set("no-warm-up", true);
+ position.set("noWarmUp", true);
}
if (BitUtil.check(value, 4)) {
- position.set("long-idle", true);
+ position.set("longIdle", true);
}
if (BitUtil.check(value, 5)) {
- position.set("fatigue-driving", true);
+ position.set("fatigueDriving", true);
}
if (BitUtil.check(value, 6)) {
- position.set("rough-terrain", true);
+ position.set("roughTerrain", true);
}
if (BitUtil.check(value, 7)) {
- position.set("high-rpm", true);
+ position.set("highRpm", true);
}
}
@@ -215,8 +215,8 @@ public class UlbotechProtocolDecoder extends BaseProtocolDecoder {
break;
case DATA_GEOFENCE:
- position.set("geofence-in", buf.readUnsignedInt());
- position.set("geofence-alarm", buf.readUnsignedInt());
+ position.set("geofenceIn", buf.readUnsignedInt());
+ position.set("geofenceAlarm", buf.readUnsignedInt());
break;
case DATA_OBD2:
@@ -224,7 +224,7 @@ public class UlbotechProtocolDecoder extends BaseProtocolDecoder {
break;
case DATA_FUEL:
- position.set("fuel-consumption", buf.readUnsignedInt() / 10000.0);
+ position.set("fuelConsumption", buf.readUnsignedInt() / 10000.0);
break;
case DATA_OBD2_ALARM:
@@ -255,7 +255,7 @@ public class UlbotechProtocolDecoder extends BaseProtocolDecoder {
case DATA_EVENT:
position.set(Position.KEY_EVENT, buf.readUnsignedByte());
if (length > 1) {
- position.set("event-mask", buf.readUnsignedInt());
+ position.set("eventMask", buf.readUnsignedInt());
}
break;