aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/Protocol.java
blob: f6a4fbebbcea6048bc85018f95b5d89d3b45e05d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package org.traccar;

import org.traccar.database.ActiveDevice;
import org.traccar.model.Command;

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 Exception;

}