Package | Description |
---|---|
com.forte.qqrobot |
主要是core所需要的包
|
com.forte.qqrobot.bot | |
com.forte.qqrobot.listener.invoker | |
com.forte.qqrobot.sender |
此包下定义所有sender相关方法接口并提供一个汇总接口。
其中, SenderGetList
SenderSendList
SenderSetList
这三个接口均继承SenderList 接口,其余接口均作为汇总或增强接口,不会直接使用。
接口中所有返回值为布尔类型的方法若无特殊标注则均代表方法的执行成功与否。 |
com.forte.qqrobot.sender.senderlist |
Modifier and Type | Method and Description |
---|---|
protected Function<MsgGet,RootSenderList> |
BaseApplication.getRootSenderFunction(BotManager botManager)
根据
BaseApplication.getSender(MsgGet, BotManager) , BaseApplication.getSetter(MsgGet, BotManager) , BaseApplication.getGetter(MsgGet, BotManager) 三个函数构建一个RootSenderList
参数分别为一个BotManager和一个MsgGet对象
如果组件不是分为三个部分而构建,则可以考虑重写此函数
此函数最终会被送入组件实现的runServer中 |
Constructor and Description |
---|
MsgProcessor(ResultSelectType selectType,
ListenerManager listenerManager,
Function<MsgGet,RootSenderList> rootSenderFunc)
构造
|
Constructor and Description |
---|
BotSender(RootSenderList rootSender) |
Modifier and Type | Method and Description |
---|---|
default ListenResult[] |
MsgReceiver.onMsg(MsgGet msgget,
RootSenderList sender)
接收到一条消息, 获取所有的监听回执
|
Modifier and Type | Method and Description |
---|---|
default ListenResult[] |
MsgReceiver.onMsg(MsgGet msgget,
Function<MsgGet,RootSenderList> senderListFunc)
根据函数构建三大送信器
|
Modifier and Type | Class and Description |
---|---|
class |
ProxyRootSender
实现了RootSenderList,并通过三个真实的senderList做代理。
|
Modifier and Type | Class and Description |
---|---|
class |
BaseRootSenderList
送信器整合,全部抛出异常
|
Copyright © 2020. All rights reserved.