diff options
Diffstat (limited to 'src/org/traccar/Protocol.java')
-rw-r--r-- | src/org/traccar/Protocol.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/org/traccar/Protocol.java b/src/org/traccar/Protocol.java index c99fd8ecb..5f510b10b 100644 --- a/src/org/traccar/Protocol.java +++ b/src/org/traccar/Protocol.java @@ -3,6 +3,11 @@ package org.traccar; import org.traccar.database.ActiveDevice; import org.traccar.model.Command; +import com.cloudhopper.smpp.type.RecoverablePduException; +import com.cloudhopper.smpp.type.SmppChannelException; +import com.cloudhopper.smpp.type.SmppTimeoutException; +import com.cloudhopper.smpp.type.UnrecoverablePduException; + import java.util.Collection; import java.util.List; @@ -16,4 +21,9 @@ public interface Protocol { void initTrackerServers(List<TrackerServer> serverList); + Collection<String> getSupportedSmsCommands(); + + void sendSmsCommand(String phone, Command command) throws RecoverablePduException, UnrecoverablePduException, + SmppTimeoutException, SmppChannelException, InterruptedException; + } |