Back to project page libgdx-chat-example.
The source code is released under:
Apache License
If you think the Android project libgdx-chat-example listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package org.stofkat.chat.java; /* w w w . j a v a2 s . com*/ import org.stofkat.chat.common.actions.Action; import org.stofkat.chat.common.results.Result; import org.stofkat.chat.core.Chat; import org.stofkat.chat.http.dispatch.AsyncCallbackHandler; import org.stofkat.chat.http.dispatch.HttpDispatchServiceAsync; public class DesktopChat extends Chat { private HttpDispatchServiceAsync server = new DesktopDispatchServiceAsync(); @Override public <R extends Result> void executeServerAction(Action<R> action) { server.execute(action, new AsyncCallbackHandler<R>(this)); } }