package org.traccar.web.client.model; import java.util.Date; import java.util.List; import org.traccar.web.shared.model.Device; import org.traccar.web.shared.model.Position; import com.google.gwt.user.client.rpc.AsyncCallback; public interface DataServiceAsync { void authenticate(String login, String password, AsyncCallback callback); void authenticated(AsyncCallback callback); void register(String login, String password, AsyncCallback callback); void getDevices(AsyncCallback> callback); void addDevice(Device device, AsyncCallback callback); void updateDevice(Device device, AsyncCallback callback); void removeDevice(Device device, AsyncCallback callback); void getLatestPositions(AsyncCallback> callback); void getPositions(Device device, Date from, Date to, AsyncCallback> callback); }