Package | Description |
---|---|
com.forte.qqrobot |
主要是core所需要的包
|
com.forte.qqrobot.beans.function | |
com.forte.qqrobot.bot | |
com.forte.qqrobot.sender |
此包下定义所有sender相关方法接口并提供一个汇总接口。
其中, SenderGetList
SenderSendList
SenderSetList
这三个接口均继承SenderList 接口,其余接口均作为汇总或增强接口,不会直接使用。
接口中所有返回值为布尔类型的方法若无特殊标注则均代表方法的执行成功与否。 |
Modifier and Type | Method and Description |
---|---|
BotInfo |
BaseConfiguration.getDefaultBotInfo()
获取当前记录的默认bot的信息
|
protected BotInfo[] |
BaseApplication.verifyBot(Map<String,List<BotInfo>> confBotInfos)
启动时候的初始验证函数
|
protected abstract BotInfo |
BaseApplication.verifyBot(String code,
BotInfo info)
start之前,会先对账号进行验证。将会使用此方法对注册的bot账号信息进行验证。
|
Modifier and Type | Method and Description |
---|---|
Map<String,List<BotInfo>> |
BaseConfiguration.getAdvanceBotInfo()
获取预先注册的bot信息。
|
Modifier and Type | Method and Description |
---|---|
static BotRuntime |
BotRuntime.initRuntime(Collection<ListenerInfo> listenerInfos,
BotInfo[] botInfos,
BaseConfiguration configuration,
Supplier<BotManager> botManagerSupplier)
初始化runtime对象
|
void |
BaseConfiguration.setDefaultBotInfo(BotInfo botInfo) |
protected abstract BotInfo |
BaseApplication.verifyBot(String code,
BotInfo info)
start之前,会先对账号进行验证。将会使用此方法对注册的bot账号信息进行验证。
|
Modifier and Type | Method and Description |
---|---|
protected BotInfo[] |
BaseApplication.verifyBot(Map<String,List<BotInfo>> confBotInfos)
启动时候的初始验证函数
|
Modifier and Type | Method and Description |
---|---|
BotInfo |
ToBotInfoImpl.toBotInfo(String code,
String urlPath) |
BotInfo |
ToBotInfo.toBotInfo(String code,
String urlPath) |
BotInfo |
ToBotInfoImpl.toBotInfo(String code,
String ip,
int port,
String path) |
BotInfo |
ToBotInfo.toBotInfo(String code,
String ip,
int port,
String path) |
Modifier and Type | Method and Description |
---|---|
default ToBotInfo |
ToBotInfo.getInstance(ExFunction<String,Integer,String,String> toFullPath,
BiFunction<String,String,BotInfo> toBot) |
Modifier and Type | Class and Description |
---|---|
class |
BotInfoImpl
一个已注册的机器人的信息
一个简单的信息封装类,一般为登录后验证完全部的登录信息后。
|
Modifier and Type | Method and Description |
---|---|
BotInfo[] |
BotManagerImpl.bots()
获取全部的bots信息
|
BotInfo[] |
BotManager.bots()
获取全部的bot信息
|
BotInfo |
BotManagerImpl.defaultBot()
大多数情况下,可能不一定必须指定一个bot,则此方法规定获取一个默认的bot
|
BotInfo |
BotManager.defaultBot()
大多数情况下,可能不一定必须指定一个bot,则此方法规定获取一个默认的bot
|
BotInfo |
BotManagerImpl.getBot(String botCode)
通过bot的code获取一个Bot的信息
|
BotInfo |
BotManager.getBot(String botCode)
通过bot的code获取一个Bot的信息
参数有可能为null
|
Modifier and Type | Method and Description |
---|---|
boolean |
BotManagerImpl.registerBot(BotInfo info)
注册一个botInfo。在实现的时候需要注意线程安全问题,概率较小,但是不是没有可能
|
boolean |
BotManager.registerBot(BotInfo info)
注册一个botInfo。在实现的时候需要注意线程安全问题,概率较小,但是不是没有可能
|
Modifier and Type | Method and Description |
---|---|
BotInfo |
MsgSender.bot()
获取一个默认的Bot对象
|
BotInfo |
MsgSender.bot(String botCode)
获取一个指定的Bot对象
|
Copyright © 2020. All rights reserved.