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.android; /*from ww w . j a v a 2 s . c o m*/ 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 AndroidChat extends Chat { private HttpDispatchServiceAsync server = new AndroidDispatchServiceAsync(); @SuppressWarnings("hiding") @Override public <R extends Result> void executeServerAction(Action<R> action) { server.execute(action, new AsyncCallbackHandler<R>(this)); } }