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
b4e06646
Commit
b4e06646
authored
Feb 16, 2020
by
jiahua.liu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
console UI
parent
5fee62f2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
0 deletions
+43
-0
mirai-console/src/main/kotlin/net/mamoe/mirai/console/MiraiConsoleUIFrontEnd.kt
.../kotlin/net/mamoe/mirai/console/MiraiConsoleUIFrontEnd.kt
+43
-0
No files found.
mirai-console/src/main/kotlin/net/mamoe/mirai/console/MiraiConsoleUIFrontEnd.kt
0 → 100644
View file @
b4e06646
package
net.mamoe.mirai.console
import
net.mamoe.mirai.Bot
/**
* 只需要实现一个这个 传入MiraiConsole 就可以绑定UI层与Console层
* 注意线程
*/
interface
MiraiConsoleUIFrontEnd
{
/**
* 让UI层展示一条log
* identityString: log前面的prefix
* identity:log所属的screen, Main=0; Bot=Bot.uin
*/
fun
pushLog
(
identityString
:
String
,
identity
:
Long
,
message
:
String
)
/**
* 让UI层准备接受新增的一个BOT
*/
fun
prePushBot
(
identity
:
Long
)
/**
* 让UI层接受一个新的bot
* */
fun
pushBot
(
bot
:
Bot
)
/**
* 让UI层更新BOT管理员的数据
*/
fun
pushBotAdminStatus
(
identity
:
Long
,
admins
:
List
<
Long
>
)
}
\ 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