类 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
- 所有已实现的接口:
tech.ordinaryroad.live.chat.client.commons.base.listener.IBaseConnectionListener<BilibiliConnectionHandler>,tech.ordinaryroad.live.chat.client.commons.client.IBaseLiveChatClient<IBilibiliMsgListener>
public class BilibiliLiveChatClient
extends tech.ordinaryroad.live.chat.client.servers.netty.client.base.BaseNettyClient<BilibiliLiveChatClientConfig,BilibiliCmdEnum,IBilibiliMsg,IBilibiliMsgListener,BilibiliConnectionHandler,BilibiliBinaryFrameHandler>
B站直播间弹幕客户端
- 作者:
- mjz
-
字段概要
从类继承的字段 tech.ordinaryroad.live.chat.client.servers.netty.client.base.BaseNettyClient
clientConnectionListener从类继承的字段 tech.ordinaryroad.live.chat.client.commons.client.BaseLiveChatClient
cancelReconnect, statusChangeSupport -
构造器概要
构造器构造器说明BilibiliLiveChatClient(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) -
方法概要
修饰符和类型方法说明voidprotected Stringvoidinit()protected voidinitChannel(io.netty.channel.socket.SocketChannel channel) initConnectionHandler(tech.ordinaryroad.live.chat.client.commons.base.listener.IBaseConnectionListener<BilibiliConnectionHandler> clientConnectionListener) void从类继承的方法 tech.ordinaryroad.live.chat.client.servers.netty.client.base.BaseNettyClient
checkCanSendDanmu, checkCanSendDanmu, connect, destroy, disconnect, finishSendDanmu, getBootstrap, getWebsocketUri, getWorkerGroup, onConnected, onConnectFailed, onDisconnected, send, setStatus, tryReconnect从类继承的方法 tech.ordinaryroad.live.chat.client.commons.client.BaseLiveChatClient
addMsgListener, addMsgListeners, addStatusChangeListener, addStatusChangeListener, checkStatus, clickLike, clickLike, clickLike, connect, connect, disconnect, getConfig, getMsgListeners, getStatus, iteratorMsgListeners, removeAllMsgListeners, removeMsgListener, removeMsgListeners, removeStatusChangeListener, removeStatusChangeListener, send, send, send, sendDanmu, sendDanmu, sendDanmu
-
构造器详细资料
-
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
-
-
方法详细资料
-
init
public void init()- 指定者:
init在接口中tech.ordinaryroad.live.chat.client.commons.client.IBaseLiveChatClient<IBilibiliMsgListener>- 覆盖:
init在类中tech.ordinaryroad.live.chat.client.servers.netty.client.base.BaseNettyClient<BilibiliLiveChatClientConfig,BilibiliCmdEnum, IBilibiliMsg, IBilibiliMsgListener, BilibiliConnectionHandler, BilibiliBinaryFrameHandler>
-
initChannel
protected void initChannel(io.netty.channel.socket.SocketChannel channel) - 覆盖:
initChannel在类中tech.ordinaryroad.live.chat.client.servers.netty.client.base.BaseNettyClient<BilibiliLiveChatClientConfig,BilibiliCmdEnum, IBilibiliMsg, IBilibiliMsgListener, BilibiliConnectionHandler, BilibiliBinaryFrameHandler>
-
initConnectionHandler
public BilibiliConnectionHandler initConnectionHandler(tech.ordinaryroad.live.chat.client.commons.base.listener.IBaseConnectionListener<BilibiliConnectionHandler> clientConnectionListener) - 指定者:
initConnectionHandler在类中tech.ordinaryroad.live.chat.client.servers.netty.client.base.BaseNettyClient<BilibiliLiveChatClientConfig,BilibiliCmdEnum, IBilibiliMsg, IBilibiliMsgListener, BilibiliConnectionHandler, BilibiliBinaryFrameHandler>
-
getWebSocketUriString
- 覆盖:
getWebSocketUriString在类中tech.ordinaryroad.live.chat.client.servers.netty.client.base.BaseNettyClient<BilibiliLiveChatClientConfig,BilibiliCmdEnum, IBilibiliMsg, IBilibiliMsgListener, BilibiliConnectionHandler, BilibiliBinaryFrameHandler>
-
sendDanmu
- 指定者:
sendDanmu在接口中tech.ordinaryroad.live.chat.client.commons.client.IBaseLiveChatClient<IBilibiliMsgListener>- 覆盖:
sendDanmu在类中tech.ordinaryroad.live.chat.client.servers.netty.client.base.BaseNettyClient<BilibiliLiveChatClientConfig,BilibiliCmdEnum, IBilibiliMsg, IBilibiliMsgListener, BilibiliConnectionHandler, BilibiliBinaryFrameHandler>
-
clickLike
- 指定者:
clickLike在接口中tech.ordinaryroad.live.chat.client.commons.client.IBaseLiveChatClient<IBilibiliMsgListener>- 覆盖:
clickLike在类中tech.ordinaryroad.live.chat.client.servers.netty.client.base.BaseNettyClient<BilibiliLiveChatClientConfig,BilibiliCmdEnum, IBilibiliMsg, IBilibiliMsgListener, BilibiliConnectionHandler, BilibiliBinaryFrameHandler>
-