Class KuaishouLiveChatClient
java.lang.Object
tech.ordinaryroad.live.chat.client.commons.client.BaseLiveChatClient<Config,MsgListener>
tech.ordinaryroad.live.chat.client.servers.netty.client.base.BaseNettyClient<KuaishouLiveChatClientConfig,PayloadTypeOuterClass.PayloadType,IKuaishouMsg,IKuaishouMsgListener,KuaishouConnectionHandler,KuaishouBinaryFrameHandler>
tech.ordinaryroad.live.chat.client.kuaishou.client.KuaishouLiveChatClient
- All Implemented Interfaces:
tech.ordinaryroad.live.chat.client.commons.base.listener.IBaseConnectionListener<KuaishouConnectionHandler>,tech.ordinaryroad.live.chat.client.commons.client.IBaseLiveChatClient<IKuaishouMsgListener>
public class KuaishouLiveChatClient
extends tech.ordinaryroad.live.chat.client.servers.netty.client.base.BaseNettyClient<KuaishouLiveChatClientConfig,PayloadTypeOuterClass.PayloadType,IKuaishouMsg,IKuaishouMsgListener,KuaishouConnectionHandler,KuaishouBinaryFrameHandler>
- 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, statusChangeSupport -
Constructor Summary
ConstructorsConstructorDescriptionKuaishouLiveChatClient(KuaishouLiveChatClientConfig config, List<IKuaishouMsgListener> msgListeners, IKuaishouConnectionListener connectionListener, io.netty.channel.EventLoopGroup workerGroup) KuaishouLiveChatClient(KuaishouLiveChatClientConfig config, IKuaishouMsgListener msgListener) KuaishouLiveChatClient(KuaishouLiveChatClientConfig config, IKuaishouMsgListener msgListener, IKuaishouConnectionListener connectionListener) KuaishouLiveChatClient(KuaishouLiveChatClientConfig config, IKuaishouMsgListener msgListener, IKuaishouConnectionListener connectionListener, io.netty.channel.EventLoopGroup workerGroup) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidprotected Stringvoidinit()protected voidinitChannel(io.netty.channel.socket.SocketChannel channel) initConnectionHandler(tech.ordinaryroad.live.chat.client.commons.base.listener.IBaseConnectionListener<KuaishouConnectionHandler> clientConnectionListener) voidMethods inherited from class tech.ordinaryroad.live.chat.client.servers.netty.client.base.BaseNettyClient
checkCanSendDanmu, checkCanSendDanmu, destroy, disconnect, finishSendDanmu, getBootstrap, getWebsocketUri, getWorkerGroup, onConnected, onConnectFailed, onDisconnected, send, setStatus, tryReconnectMethods inherited from class tech.ordinaryroad.live.chat.client.commons.client.BaseLiveChatClient
addMsgListener, addMsgListeners, addStatusChangeListener, checkStatus, clickLike, clickLike, clickLike, connect, connect, disconnect, getConfig, getMsgListeners, getStatus, iteratorMsgListeners, removeAllMsgListeners, removeMsgListener, removeMsgListeners, removeStatusChangeListener, send, send, send, sendDanmu, sendDanmu, sendDanmu
-
Constructor Details
-
KuaishouLiveChatClient
public KuaishouLiveChatClient(KuaishouLiveChatClientConfig config, List<IKuaishouMsgListener> msgListeners, IKuaishouConnectionListener connectionListener, io.netty.channel.EventLoopGroup workerGroup) -
KuaishouLiveChatClient
public KuaishouLiveChatClient(KuaishouLiveChatClientConfig config, IKuaishouMsgListener msgListener, IKuaishouConnectionListener connectionListener, io.netty.channel.EventLoopGroup workerGroup) -
KuaishouLiveChatClient
public KuaishouLiveChatClient(KuaishouLiveChatClientConfig config, IKuaishouMsgListener msgListener, IKuaishouConnectionListener connectionListener) -
KuaishouLiveChatClient
public KuaishouLiveChatClient(KuaishouLiveChatClientConfig config, IKuaishouMsgListener msgListener) -
KuaishouLiveChatClient
-
-
Method Details
-
init
public void init()- Specified by:
initin interfacetech.ordinaryroad.live.chat.client.commons.client.IBaseLiveChatClient<IKuaishouMsgListener>- Overrides:
initin classtech.ordinaryroad.live.chat.client.servers.netty.client.base.BaseNettyClient<KuaishouLiveChatClientConfig,PayloadTypeOuterClass.PayloadType, IKuaishouMsg, IKuaishouMsgListener, KuaishouConnectionHandler, KuaishouBinaryFrameHandler>
-
getWebSocketUriString
- Overrides:
getWebSocketUriStringin classtech.ordinaryroad.live.chat.client.servers.netty.client.base.BaseNettyClient<KuaishouLiveChatClientConfig,PayloadTypeOuterClass.PayloadType, IKuaishouMsg, IKuaishouMsgListener, KuaishouConnectionHandler, KuaishouBinaryFrameHandler>
-
initConnectionHandler
public KuaishouConnectionHandler initConnectionHandler(tech.ordinaryroad.live.chat.client.commons.base.listener.IBaseConnectionListener<KuaishouConnectionHandler> clientConnectionListener) - Specified by:
initConnectionHandlerin classtech.ordinaryroad.live.chat.client.servers.netty.client.base.BaseNettyClient<KuaishouLiveChatClientConfig,PayloadTypeOuterClass.PayloadType, IKuaishouMsg, IKuaishouMsgListener, KuaishouConnectionHandler, KuaishouBinaryFrameHandler>
-
initChannel
protected void initChannel(io.netty.channel.socket.SocketChannel channel) - Overrides:
initChannelin classtech.ordinaryroad.live.chat.client.servers.netty.client.base.BaseNettyClient<KuaishouLiveChatClientConfig,PayloadTypeOuterClass.PayloadType, IKuaishouMsg, IKuaishouMsgListener, KuaishouConnectionHandler, KuaishouBinaryFrameHandler>
-
connect
- Specified by:
connectin interfacetech.ordinaryroad.live.chat.client.commons.client.IBaseLiveChatClient<IKuaishouMsgListener>- Overrides:
connectin classtech.ordinaryroad.live.chat.client.servers.netty.client.base.BaseNettyClient<KuaishouLiveChatClientConfig,PayloadTypeOuterClass.PayloadType, IKuaishouMsg, IKuaishouMsgListener, KuaishouConnectionHandler, KuaishouBinaryFrameHandler>
-
sendDanmu
- Specified by:
sendDanmuin interfacetech.ordinaryroad.live.chat.client.commons.client.IBaseLiveChatClient<IKuaishouMsgListener>- Overrides:
sendDanmuin classtech.ordinaryroad.live.chat.client.servers.netty.client.base.BaseNettyClient<KuaishouLiveChatClientConfig,PayloadTypeOuterClass.PayloadType, IKuaishouMsg, IKuaishouMsgListener, KuaishouConnectionHandler, KuaishouBinaryFrameHandler>
-
clickLike
- Specified by:
clickLikein interfacetech.ordinaryroad.live.chat.client.commons.client.IBaseLiveChatClient<IKuaishouMsgListener>- Overrides:
clickLikein classtech.ordinaryroad.live.chat.client.servers.netty.client.base.BaseNettyClient<KuaishouLiveChatClientConfig,PayloadTypeOuterClass.PayloadType, IKuaishouMsg, IKuaishouMsgListener, KuaishouConnectionHandler, KuaishouBinaryFrameHandler>
-