diff options
Diffstat (limited to 'src/org/traccar/web/client/model/DataServiceAsync.java')
-rw-r--r-- | src/org/traccar/web/client/model/DataServiceAsync.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/org/traccar/web/client/model/DataServiceAsync.java b/src/org/traccar/web/client/model/DataServiceAsync.java index c0478fb8..689e6993 100644 --- a/src/org/traccar/web/client/model/DataServiceAsync.java +++ b/src/org/traccar/web/client/model/DataServiceAsync.java @@ -21,6 +21,7 @@ import java.util.List; import org.traccar.web.shared.model.ApplicationSettings; import org.traccar.web.shared.model.Device; import org.traccar.web.shared.model.Position; +import org.traccar.web.shared.model.User; import com.google.gwt.user.client.rpc.AsyncCallback; @@ -28,11 +29,13 @@ public interface DataServiceAsync { void authenticated(AsyncCallback<Boolean> callback); - void login(String login, String password, AsyncCallback<Boolean> callback); + void login(String login, String password, AsyncCallback<User> callback); void logout(AsyncCallback<Boolean> callback); - void register(String login, String password, AsyncCallback<Boolean> callback); + void register(String login, String password, AsyncCallback<User> callback); + + void updateUser(User user, AsyncCallback<User> callback); void getDevices(AsyncCallback<List<Device>> callback); |