public class ChatLogic extends ChatEventSource implements java.io.Serializable
ChatEventSource.ChatEvent
Modifier and Type | Field and Description |
---|---|
(package private) Context |
appContext |
(package private) UDPCommunicator |
comm
This object handles the UDP communication between the client and the chat server
|
(package private) Logger |
log |
private Handler |
receiveHandler |
private Handler |
requestHandler |
private static long |
serialVersionUID |
eventListenerList
Constructor and Description |
---|
ChatLogic(Context context) |
Modifier and Type | Method and Description |
---|---|
void |
initLogger(java.lang.String username) |
Utils.ChatEventType |
parseJSON(JSONObject jsonMap) |
addChatEventListener, removeChatEventListener
private static final long serialVersionUID
Context appContext
private Handler requestHandler
private Handler receiveHandler
UDPCommunicator comm
Logger log
public void initLogger(java.lang.String username)
public Utils.ChatEventType parseJSON(JSONObject jsonMap) throws JSONException
JSONException