public abstract class SocketHandler
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected org.json.JSONObject |
allContent |
protected JDAImpl |
api |
protected long |
responseNumber |
Constructor and Description |
---|
SocketHandler(JDAImpl api) |
Modifier and Type | Method and Description |
---|---|
void |
handle(long responseTotal,
org.json.JSONObject o) |
protected abstract java.lang.String |
handleInternally(org.json.JSONObject content)
Handles a given data-json of the Event handled by this Handler.
|
protected final JDAImpl api
protected long responseNumber
protected org.json.JSONObject allContent
public SocketHandler(JDAImpl api)
public final void handle(long responseTotal, org.json.JSONObject o)
protected abstract java.lang.String handleInternally(org.json.JSONObject content)
content
- the content of the event to handle