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
b10e0104
Commit
b10e0104
authored
Sep 19, 2019
by
Him188moe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Kotlin coroutine
parent
ef08b044
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
6 deletions
+3
-6
mirai-core/src/main/java/net/mamoe/mirai/contact/Contact.kt
mirai-core/src/main/java/net/mamoe/mirai/contact/Contact.kt
+1
-4
mirai-core/src/main/java/net/mamoe/mirai/contact/Group.kt
mirai-core/src/main/java/net/mamoe/mirai/contact/Group.kt
+1
-1
mirai-core/src/main/java/net/mamoe/mirai/contact/QQ.kt
mirai-core/src/main/java/net/mamoe/mirai/contact/QQ.kt
+1
-1
No files found.
mirai-core/src/main/java/net/mamoe/mirai/contact/Contact.kt
View file @
b10e0104
...
@@ -18,9 +18,6 @@ import java.util.concurrent.CompletableFuture
...
@@ -18,9 +18,6 @@ import java.util.concurrent.CompletableFuture
* @author Him188moe
* @author Him188moe
*/
*/
abstract
class
Contact
internal
constructor
(
val
bot
:
Bot
,
val
number
:
Long
)
{
abstract
class
Contact
internal
constructor
(
val
bot
:
Bot
,
val
number
:
Long
)
{
/**
* Async
*/
abstract
suspend
fun
sendMessage
(
message
:
MessageChain
)
abstract
suspend
fun
sendMessage
(
message
:
MessageChain
)
/**
/**
...
@@ -44,5 +41,5 @@ abstract class Contact internal constructor(val bot: Bot, val number: Long) {
...
@@ -44,5 +41,5 @@ abstract class Contact internal constructor(val bot: Bot, val number: Long) {
/**
/**
* Async
* Async
*/
*/
abstract
fun
sendXMLMessage
(
message
:
String
)
abstract
suspend
fun
sendXMLMessage
(
message
:
String
)
}
}
mirai-core/src/main/java/net/mamoe/mirai/contact/Group.kt
View file @
b10e0104
...
@@ -29,7 +29,7 @@ class Group(bot: Bot, number: Long) : Contact(bot, number), Closeable {
...
@@ -29,7 +29,7 @@ class Group(bot: Bot, number: Long) : Contact(bot, number), Closeable {
bot
.
network
.
message
.
sendGroupMessage
(
this
,
message
)
bot
.
network
.
message
.
sendGroupMessage
(
this
,
message
)
}
}
override
fun
sendXMLMessage
(
message
:
String
)
{
override
suspend
fun
sendXMLMessage
(
message
:
String
)
{
}
}
...
...
mirai-core/src/main/java/net/mamoe/mirai/contact/QQ.kt
View file @
b10e0104
...
@@ -22,7 +22,7 @@ class QQ(bot: Bot, number: Long) : Contact(bot, number) {
...
@@ -22,7 +22,7 @@ class QQ(bot: Bot, number: Long) : Contact(bot, number) {
bot
.
network
.
message
.
sendFriendMessage
(
this
,
message
)
bot
.
network
.
message
.
sendFriendMessage
(
this
,
message
)
}
}
override
fun
sendXMLMessage
(
message
:
String
)
{
override
suspend
fun
sendXMLMessage
(
message
:
String
)
{
}
}
...
...
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