diff options
author | Edward Valley <ed.valley@yandex.com> | 2019-07-05 02:42:01 -0400 |
---|---|---|
committer | Edward Valley <ed.valley@yandex.com> | 2019-07-05 02:42:01 -0400 |
commit | 11568839d89fa5bf58da0a654248f9b7696ee406 (patch) | |
tree | 4961aa62e4649b160810d946f5e1f5c83e6b7ff3 /src/main/java/org/traccar/protocol/LaipacProtocolEncoder.java | |
parent | 0e4e396fee573aa8d00a0f970085266ffdb45e93 (diff) | |
download | trackermap-server-11568839d89fa5bf58da0a654248f9b7696ee406.tar.gz trackermap-server-11568839d89fa5bf58da0a654248f9b7696ee406.tar.bz2 trackermap-server-11568839d89fa5bf58da0a654248f9b7696ee406.zip |
Changes after second review
Diffstat (limited to 'src/main/java/org/traccar/protocol/LaipacProtocolEncoder.java')
-rw-r--r-- | src/main/java/org/traccar/protocol/LaipacProtocolEncoder.java | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/src/main/java/org/traccar/protocol/LaipacProtocolEncoder.java b/src/main/java/org/traccar/protocol/LaipacProtocolEncoder.java index fac82d2fd..6f540fa3e 100644 --- a/src/main/java/org/traccar/protocol/LaipacProtocolEncoder.java +++ b/src/main/java/org/traccar/protocol/LaipacProtocolEncoder.java @@ -15,29 +15,19 @@ */ package org.traccar.protocol; -import org.traccar.Protocol; import org.traccar.StringProtocolEncoder; import org.traccar.model.Command; import org.traccar.helper.Checksum; public class LaipacProtocolEncoder extends StringProtocolEncoder { - private final Protocol protocol; - private final String defaultDevicePassword; - - public LaipacProtocolEncoder(Protocol protocol) { - this.protocol = protocol; - defaultDevicePassword = "00000000"; - } - - protected String getProtocolName() { - return protocol.getName(); + public LaipacProtocolEncoder() { } @Override protected Object encodeCommand(Command command) { - initDevicePassword(command, defaultDevicePassword); + initDevicePassword(command, LaipacProtocolDecoder.DEFAULT_DEVICE_PASSWORD); String commandSentence = null; |