Package com.github.stormbit.sdk.longpoll
Class LongPoll
- java.lang.Object
-
- com.github.stormbit.sdk.longpoll.LongPoll
-
-
Method Summary
Modifier and Type Method Description voidenableLoggingUpdates(boolean enable)voidenableTyping(boolean enable)If the client need to start typing after receiving message and until client's message is sentvoidoff()If you need to set new longpoll server, or restart listening off old before.voidregisterAbstractCallback(String name, AbstractCallback callback)Add callback to the mapvoidregisterCallback(String name, Callback callback)Add callback to the mapvoidregisterChatCallback(String name, AbstractCallback callback)Add callback to the map
-
-
-
Field Detail
-
pts
public Integer pts
-
-
Method Detail
-
off
public void off()
If you need to set new longpoll server, or restart listening off old before.
-
registerCallback
public void registerCallback(String name, Callback callback)
Add callback to the map- Parameters:
name- Callback namecallback- Callback
-
registerAbstractCallback
public void registerAbstractCallback(String name, AbstractCallback callback)
Add callback to the map- Parameters:
name- Callback namecallback- Callback
-
registerChatCallback
public void registerChatCallback(String name, AbstractCallback callback)
Add callback to the map- Parameters:
name- Callback namecallback- Callback
-
enableTyping
public void enableTyping(boolean enable)
If the client need to start typing after receiving message and until client's message is sent- Parameters:
enable- true or false
-
enableLoggingUpdates
public void enableLoggingUpdates(boolean enable)
-
-