diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2020-03-15 15:39:12 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2020-03-15 15:39:12 -0700 |
commit | f98c3aa5b65e9fa06bcea38d96959b43f6a38245 (patch) | |
tree | 4931ddab528c6d6cc42e2cff5f820e15ddb4690f /src/main/java/org/traccar/Protocol.java | |
parent | c43208bf5339244cd9a47348ec9daa1805099718 (diff) | |
download | trackermap-server-f98c3aa5b65e9fa06bcea38d96959b43f6a38245.tar.gz trackermap-server-f98c3aa5b65e9fa06bcea38d96959b43f6a38245.tar.bz2 trackermap-server-f98c3aa5b65e9fa06bcea38d96959b43f6a38245.zip |
Simplify data commands
Diffstat (limited to 'src/main/java/org/traccar/Protocol.java')
-rw-r--r-- | src/main/java/org/traccar/Protocol.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/Protocol.java b/src/main/java/org/traccar/Protocol.java index 3b66f2598..9d257be78 100644 --- a/src/main/java/org/traccar/Protocol.java +++ b/src/main/java/org/traccar/Protocol.java @@ -15,9 +15,11 @@ */ package org.traccar; +import io.netty.channel.Channel; import org.traccar.database.ActiveDevice; import org.traccar.model.Command; +import java.net.SocketAddress; import java.util.Collection; public interface Protocol { @@ -28,7 +30,7 @@ public interface Protocol { Collection<String> getSupportedDataCommands(); - void sendDataCommand(ActiveDevice activeDevice, Command command); + void sendDataCommand(Channel channel, SocketAddress remoteAddress, Command command); Collection<String> getSupportedTextCommands(); |