aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/protocol/TestDataManager.java
blob: c6865a0788db0160032be5c5613ea23cdfeec947 (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
package org.traccar.protocol;

import java.util.List;
import org.traccar.model.DataManager;
import org.traccar.model.Device;
import org.traccar.model.Position;

public class TestDataManager implements DataManager {

    public List getDevices() { return null; }
    public void addDevice(Device device) {}
    public void updateDevice(Device device) {}
    public void removeDevice(Device device) {}
    public Device getDeviceByImei(String imei) {
        Device device = new Device();
        device.setId(new Long(1));
        device.setImei("123456789012345");
        return device;
    }
    public Device getDeviceByPhoneNumber(String phoneNumber) { return null; }
    public Device getDeviceByUniqueId(String uniqueId) { return null; }
    public List getPositions(Long deviceId) { return null; }
    public void addPosition(Position position) {}

}