mirror of
https://github.com/mamoe/mirai.git
synced 2025-03-29 17:20:11 +08:00
Rearrange class memebrs
This commit is contained in:
parent
146615e660
commit
c4b42a31f7
@ -54,37 +54,7 @@ interface Bot : CoroutineScope {
|
|||||||
|
|
||||||
override val coroutineContext: CoroutineContext
|
override val coroutineContext: CoroutineContext
|
||||||
|
|
||||||
/**
|
// region contacts
|
||||||
* 网络模块
|
|
||||||
*/
|
|
||||||
val network: BotNetworkHandler<*>
|
|
||||||
|
|
||||||
/**
|
|
||||||
* [关闭][BotNetworkHandler.close]网络处理器, 取消所有运行在 [BotNetworkHandler] 下的协程.
|
|
||||||
* 然后重新启动并尝试登录
|
|
||||||
*/
|
|
||||||
fun tryReinitializeNetworkHandler(
|
|
||||||
configuration: BotConfiguration,
|
|
||||||
cause: Throwable? = null
|
|
||||||
): Job
|
|
||||||
|
|
||||||
/**
|
|
||||||
* [关闭][BotNetworkHandler.close]网络处理器, 取消所有运行在 [BotNetworkHandler] 下的协程.
|
|
||||||
* 然后重新启动并尝试登录
|
|
||||||
*/
|
|
||||||
suspend fun reinitializeNetworkHandler(
|
|
||||||
configuration: BotConfiguration,
|
|
||||||
cause: Throwable? = null
|
|
||||||
): LoginResult
|
|
||||||
|
|
||||||
/**
|
|
||||||
* [关闭][BotNetworkHandler.close]网络处理器, 取消所有运行在 [BotNetworkHandler] 下的协程.
|
|
||||||
* 然后重新启动并尝试登录
|
|
||||||
*/
|
|
||||||
fun reinitializeNetworkHandlerAsync(
|
|
||||||
configuration: BotConfiguration,
|
|
||||||
cause: Throwable? = null
|
|
||||||
): Deferred<LoginResult>
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 与这个机器人相关的 QQ 列表. 机器人与 QQ 不一定是好友
|
* 与这个机器人相关的 QQ 列表. 机器人与 QQ 不一定是好友
|
||||||
@ -124,5 +94,43 @@ interface Bot : CoroutineScope {
|
|||||||
*/
|
*/
|
||||||
suspend fun getGroup(id: Long): Group
|
suspend fun getGroup(id: Long): Group
|
||||||
|
|
||||||
|
// endregion
|
||||||
|
|
||||||
|
// region network
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 网络模块
|
||||||
|
*/
|
||||||
|
val network: BotNetworkHandler<*>
|
||||||
|
|
||||||
|
/**
|
||||||
|
* [关闭][BotNetworkHandler.close]网络处理器, 取消所有运行在 [BotNetworkHandler] 下的协程.
|
||||||
|
* 然后重新启动并尝试登录
|
||||||
|
*/
|
||||||
|
fun tryReinitializeNetworkHandler(
|
||||||
|
configuration: BotConfiguration,
|
||||||
|
cause: Throwable? = null
|
||||||
|
): Job
|
||||||
|
|
||||||
|
/**
|
||||||
|
* [关闭][BotNetworkHandler.close]网络处理器, 取消所有运行在 [BotNetworkHandler] 下的协程.
|
||||||
|
* 然后重新启动并尝试登录
|
||||||
|
*/
|
||||||
|
suspend fun reinitializeNetworkHandler(
|
||||||
|
configuration: BotConfiguration,
|
||||||
|
cause: Throwable? = null
|
||||||
|
): LoginResult
|
||||||
|
|
||||||
|
/**
|
||||||
|
* [关闭][BotNetworkHandler.close]网络处理器, 取消所有运行在 [BotNetworkHandler] 下的协程.
|
||||||
|
* 然后重新启动并尝试登录
|
||||||
|
*/
|
||||||
|
fun reinitializeNetworkHandlerAsync(
|
||||||
|
configuration: BotConfiguration,
|
||||||
|
cause: Throwable? = null
|
||||||
|
): Deferred<LoginResult>
|
||||||
|
|
||||||
|
// endregion
|
||||||
|
|
||||||
fun close()
|
fun close()
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user