aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/Protocol.java
blob: 5f510b10b3e52e70e5aba9e6c5a91e4ba7e80669 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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;

public interface Protocol {

    String getName();

    Collection<String> getSupportedCommands();

    void sendCommand(ActiveDevice activeDevice, Command command);

    void initTrackerServers(List<TrackerServer> serverList);

    Collection<String> getSupportedSmsCommands();

    void sendSmsCommand(String phone, Command command) throws RecoverablePduException, UnrecoverablePduException,
            SmppTimeoutException, SmppChannelException, InterruptedException;

}