Class BilibiliLiveChatClient
java.lang.Object
tech.ordinaryroad.live.chat.client.commons.client.BaseLiveChatClient<Config,MsgListener>
tech.ordinaryroad.live.chat.client.servers.netty.client.base.BaseNettyClient<BilibiliLiveChatClientConfig,BilibiliCmdEnum,IBilibiliMsg,IBilibiliMsgListener,BilibiliConnectionHandler,BilibiliBinaryFrameHandler>
tech.ordinaryroad.live.chat.client.bilibili.client.BilibiliLiveChatClient
- All Implemented Interfaces:
tech.ordinaryroad.live.chat.client.commons.client.IBaseLiveChatClient<IBilibiliMsgListener>
public class BilibiliLiveChatClient
extends BaseNettyClient<BilibiliLiveChatClientConfig,BilibiliCmdEnum,IBilibiliMsg,IBilibiliMsgListener,BilibiliConnectionHandler,BilibiliBinaryFrameHandler>
B站直播间弹幕客户端
- Author:
- mjz
-
Field Summary
Fields inherited from class tech.ordinaryroad.live.chat.client.servers.netty.client.base.BaseNettyClient
clientConnectionListenerFields inherited from class tech.ordinaryroad.live.chat.client.commons.client.BaseLiveChatClient
cancelReconnect, msgListeners, statusChangeSupport -
Constructor Summary
ConstructorsConstructorDescriptionBilibiliLiveChatClient(BilibiliLiveChatClientConfig config, List<IBilibiliMsgListener> msgListeners, IBilibiliConnectionListener connectionListener, io.netty.channel.EventLoopGroup workerGroup) BilibiliLiveChatClient(BilibiliLiveChatClientConfig config, IBilibiliMsgListener msgListener) BilibiliLiveChatClient(BilibiliLiveChatClientConfig config, IBilibiliMsgListener msgListener, IBilibiliConnectionListener connectionListener) BilibiliLiveChatClient(BilibiliLiveChatClientConfig config, IBilibiliMsgListener msgListener, IBilibiliConnectionListener connectionListener, io.netty.channel.EventLoopGroup workerGroup) -
Method Summary
Modifier and TypeMethodDescriptioninitConnectionHandler(tech.ordinaryroad.live.chat.client.commons.base.listener.IBaseConnectionListener<BilibiliConnectionHandler> clientConnectionListener) voidMethods inherited from class tech.ordinaryroad.live.chat.client.servers.netty.client.base.BaseNettyClient
checkCanSendDanmn, connect, destroy, disconnect, finishSendDanmu, getBootstrap, getWebsocketUri, getWebSocketUriString, getWorkerGroup, init, iteratorMsgListeners, onConnected, onConnectFailed, onDisconnected, send, setStatus, tryReconnectMethods inherited from class tech.ordinaryroad.live.chat.client.commons.client.BaseLiveChatClient
addMsgListener, addMsgListeners, addStatusChangeListener, checkStatus, connect, connect, disconnect, getConfig, getStatus, removeAllMsgListeners, removeMsgListener, removeMsgListeners, removeStatusChangeListener, send, send, send, sendDanmu, sendDanmu, sendDanmu
-
Constructor Details
-
BilibiliLiveChatClient
public BilibiliLiveChatClient(BilibiliLiveChatClientConfig config, List<IBilibiliMsgListener> msgListeners, IBilibiliConnectionListener connectionListener, io.netty.channel.EventLoopGroup workerGroup) -
BilibiliLiveChatClient
public BilibiliLiveChatClient(BilibiliLiveChatClientConfig config, IBilibiliMsgListener msgListener, IBilibiliConnectionListener connectionListener, io.netty.channel.EventLoopGroup workerGroup) -
BilibiliLiveChatClient
public BilibiliLiveChatClient(BilibiliLiveChatClientConfig config, IBilibiliMsgListener msgListener, IBilibiliConnectionListener connectionListener) -
BilibiliLiveChatClient
public BilibiliLiveChatClient(BilibiliLiveChatClientConfig config, IBilibiliMsgListener msgListener) -
BilibiliLiveChatClient
-
-
Method Details
-
initConnectionHandler
public BilibiliConnectionHandler initConnectionHandler(tech.ordinaryroad.live.chat.client.commons.base.listener.IBaseConnectionListener<BilibiliConnectionHandler> clientConnectionListener) -
initBinaryFrameHandler
-
sendDanmu
- Specified by:
sendDanmuin interfacetech.ordinaryroad.live.chat.client.commons.client.IBaseLiveChatClient<IBilibiliMsgListener>- Overrides:
sendDanmuin classBaseNettyClient<BilibiliLiveChatClientConfig,BilibiliCmdEnum, IBilibiliMsg, IBilibiliMsgListener, BilibiliConnectionHandler, BilibiliBinaryFrameHandler>
-