All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.blr19c.falowp.bot.system.adapter.BotAdapter.kt Maven / Gradle / Ivy

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)
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy