com.blr19c.falowp.bot.system.adapter.BotAdapter.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of falowp-bot-system Show documentation
Show all versions of falowp-bot-system Show documentation
FalowpBot system infrastructure
The newest version!
package com.blr19c.falowp.bot.system.adapter
/**
* 协议适配器
*
* @param name 协议名称
*/
annotation class BotAdapter(val name: String)
/**
* 协议适配器
*/
interface BotAdapterInterface {
suspend fun start(register: BotAdapterRegister)
}
/**
* 协议适配器注册
*/
class BotAdapterRegister(private val registerList: MutableList) {
fun finish(botAdapterInterface: BotAdapterInterface) {
registerList.add(botAdapterInterface)
}
}