Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
Mirai
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
Mirai
Commits
c4b42a31
Commit
c4b42a31
authored
Dec 14, 2019
by
Him188
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rearrange class memebrs
parent
146615e6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
31 deletions
+39
-31
mirai-core/src/commonMain/kotlin/net.mamoe.mirai/Bot.kt
mirai-core/src/commonMain/kotlin/net.mamoe.mirai/Bot.kt
+39
-31
No files found.
mirai-core/src/commonMain/kotlin/net.mamoe.mirai/Bot.kt
View file @
c4b42a31
...
...
@@ -54,37 +54,7 @@ interface Bot : CoroutineScope {
override
val
coroutineContext
:
CoroutineContext
/**
* 网络模块
*/
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
>
// region contacts
/**
* 与这个机器人相关的 QQ 列表. 机器人与 QQ 不一定是好友
...
...
@@ -124,5 +94,43 @@ interface Bot : CoroutineScope {
*/
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
()
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment