mirror of
https://github.com/LamGC/ContentGrabbingJi.git
synced 2025-04-29 14:17:33 +00:00
[Change] Framework-API 添加 Bot UUID 作为在多账户框架组件中识别单个 Bot 账户的标识;
[Change] SenderFactory 添加 'getBotUUID' 方法用于获取 Factory 相关联的 Bot 账户;
This commit is contained in:
parent
22ec7c6741
commit
e494412344
@ -21,6 +21,8 @@ import net.lamgc.cgj.bot.framework.message.MessageSender;
|
||||
import net.lamgc.cgj.bot.framework.message.MessageSource;
|
||||
import org.pf4j.ExtensionPoint;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* 消息源发送器构造工厂.
|
||||
* <p> 该接口实现将由对应框架实现, 每个框架仅允许实现一个.
|
||||
@ -28,6 +30,13 @@ import org.pf4j.ExtensionPoint;
|
||||
*/
|
||||
public interface SenderFactory extends ExtensionPoint {
|
||||
|
||||
/**
|
||||
* 获取 Bot 唯一识别码.
|
||||
* <p> Bot 账户相同时, Bot 的 UUID 应唯一且不变.
|
||||
* @return 返回 Bot 唯一识别码.
|
||||
*/
|
||||
UUID getBotUUID();
|
||||
|
||||
/**
|
||||
* 获取所属平台.
|
||||
* @return 返回平台信息对象.
|
||||
|
Loading…
Reference in New Issue
Block a user