diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-01-18 12:36:57 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2016-01-18 12:36:57 +1300 |
commit | ae06bf5aee294905b52404220f4706534f93fc53 (patch) | |
tree | df921378427891e9320438c0d86aebec64fd3306 /src/org/traccar/protocol/OsmAndProtocolDecoder.java | |
parent | 14a1d5989a66d824d4ff23f02c6b95c0db9e8541 (diff) | |
download | trackermap-server-ae06bf5aee294905b52404220f4706534f93fc53.tar.gz trackermap-server-ae06bf5aee294905b52404220f4706534f93fc53.tar.bz2 trackermap-server-ae06bf5aee294905b52404220f4706534f93fc53.zip |
Support valid parameter for OsmAnd
Diffstat (limited to 'src/org/traccar/protocol/OsmAndProtocolDecoder.java')
-rw-r--r-- | src/org/traccar/protocol/OsmAndProtocolDecoder.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/org/traccar/protocol/OsmAndProtocolDecoder.java b/src/org/traccar/protocol/OsmAndProtocolDecoder.java index 56a7bc5b5..775d1ed3d 100644 --- a/src/org/traccar/protocol/OsmAndProtocolDecoder.java +++ b/src/org/traccar/protocol/OsmAndProtocolDecoder.java @@ -33,6 +33,7 @@ import org.jboss.netty.handler.codec.http.QueryStringDecoder; import org.traccar.BaseProtocolDecoder; import org.traccar.model.Event; import org.traccar.model.Position; +import sun.net.www.content.audio.basic; public class OsmAndProtocolDecoder extends BaseProtocolDecoder { @@ -67,6 +68,9 @@ public class OsmAndProtocolDecoder extends BaseProtocolDecoder { } position.setDeviceId(getDeviceId()); break; + case "valid": + position.setValid(Boolean.parseBoolean(value)); + break; case "timestamp": try { long timestamp = Long.parseLong(value); |