aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/model/DataManager.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/model/DataManager.java')
-rw-r--r--src/org/traccar/model/DataManager.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/org/traccar/model/DataManager.java b/src/org/traccar/model/DataManager.java
index a7338b3c4..a7dbd6719 100644
--- a/src/org/traccar/model/DataManager.java
+++ b/src/org/traccar/model/DataManager.java
@@ -23,18 +23,18 @@ import java.util.List;
public interface DataManager {
/**
- * Read device list
+ * Manage devices
*/
public List getDevices() throws Exception;
-
- /**
- * Get device by imei
- */
+ public void addDevice(Device device) throws Exception;
+ public void addUpdate(Device device) throws Exception;
+ public void addRemove(Device device) throws Exception;
public Device getDeviceByImei(String imei) throws Exception;
/**
- * Write position
+ * Manage positions
*/
- public void setPosition(Position position) throws Exception;
+ public List getPositions(Long deviceId) throws Exception;
+ public void addPosition(Position position) throws Exception;
}