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
f795eeb7
Commit
f795eeb7
authored
May 09, 2020
by
Him188
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix commandName
parent
1e885dbf
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
5 deletions
+5
-5
mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/protocol/packet/chat/receive/MessageSvc.PbDeleteMsg.kt
...rk/protocol/packet/chat/receive/MessageSvc.PbDeleteMsg.kt
+1
-1
mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/protocol/packet/chat/receive/MessageSvc.PbGetMsg.kt
...twork/protocol/packet/chat/receive/MessageSvc.PbGetMsg.kt
+1
-1
mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/protocol/packet/chat/receive/MessageSvc.PbSendMsg.kt
...work/protocol/packet/chat/receive/MessageSvc.PbSendMsg.kt
+1
-1
mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/protocol/packet/chat/receive/MessageSvc.PushForceOffline.kt
...otocol/packet/chat/receive/MessageSvc.PushForceOffline.kt
+1
-1
mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/protocol/packet/chat/receive/MessageSvc.PushNotify.kt
...ork/protocol/packet/chat/receive/MessageSvc.PushNotify.kt
+1
-1
No files found.
mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/protocol/packet/chat/receive/MessageSvc.PbDeleteMsg.kt
View file @
f795eeb7
...
...
@@ -21,7 +21,7 @@ import net.mamoe.mirai.qqandroid.network.protocol.packet.OutgoingPacketFactory
import
net.mamoe.mirai.qqandroid.network.protocol.packet.buildOutgoingUniPacket
import
net.mamoe.mirai.qqandroid.utils.io.serialization.writeProtoBuf
internal
object
MessageSvcPbDeleteMsg
:
OutgoingPacketFactory
<
Nothing
?
>(
"MessageSvcPbDeleteMsg"
)
{
internal
object
MessageSvcPbDeleteMsg
:
OutgoingPacketFactory
<
Nothing
?
>(
"MessageSvc
.
PbDeleteMsg"
)
{
internal
operator
fun
invoke
(
client
:
QQAndroidClient
,
items
:
List
<
MsgSvc
.
PbDeleteMsgReq
.
MsgItem
>)
=
buildOutgoingUniPacket
(
client
)
{
...
...
mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/protocol/packet/chat/receive/MessageSvc.PbGetMsg.kt
View file @
f795eeb7
...
...
@@ -51,7 +51,7 @@ import net.mamoe.mirai.utils.*
* 获取好友消息和消息记录
*/
@OptIn
(
MiraiInternalAPI
::
class
)
internal
object
MessageSvcPbGetMsg
:
OutgoingPacketFactory
<
MessageSvcPbGetMsg
.
Response
>(
"MessageSvcPbGetMsg"
)
{
internal
object
MessageSvcPbGetMsg
:
OutgoingPacketFactory
<
MessageSvcPbGetMsg
.
Response
>(
"MessageSvc
.
PbGetMsg"
)
{
@Suppress
(
"SpellCheckingInspection"
)
operator
fun
invoke
(
client
:
QQAndroidClient
,
...
...
mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/protocol/packet/chat/receive/MessageSvc.PbSendMsg.kt
View file @
f795eeb7
...
...
@@ -37,7 +37,7 @@ import net.mamoe.mirai.utils.currentTimeSeconds
import
kotlin.math.absoluteValue
import
kotlin.random.Random
internal
object
MessageSvcPbSendMsg
:
OutgoingPacketFactory
<
MessageSvcPbSendMsg
.
Response
>(
"MessageSvcPbSendMsg"
)
{
internal
object
MessageSvcPbSendMsg
:
OutgoingPacketFactory
<
MessageSvcPbSendMsg
.
Response
>(
"MessageSvc
.
PbSendMsg"
)
{
sealed
class
Response
:
Packet
{
object
SUCCESS
:
Response
()
{
override
fun
toString
():
String
=
"MessageSvcPbSendMsg.Response.SUCCESS"
...
...
mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/protocol/packet/chat/receive/MessageSvc.PushForceOffline.kt
View file @
f795eeb7
...
...
@@ -21,7 +21,7 @@ import net.mamoe.mirai.qqandroid.utils.io.serialization.readUniPacket
* 被挤下线
*/
internal
object
MessageSvcPushForceOffline
:
OutgoingPacketFactory
<
BotOfflineEvent
.
Force
>(
"MessageSvcPushForceOffline"
)
{
OutgoingPacketFactory
<
BotOfflineEvent
.
Force
>(
"MessageSvc
.
PushForceOffline"
)
{
override
suspend
fun
ByteReadPacket
.
decode
(
bot
:
QQAndroidBot
):
BotOfflineEvent
.
Force
{
val
struct
=
this
.
readUniPacket
(
RequestPushForceOffline
.
serializer
())
return
BotOfflineEvent
.
Force
(
bot
,
title
=
struct
.
title
?:
""
,
message
=
struct
.
tips
?:
""
)
...
...
mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/protocol/packet/chat/receive/MessageSvc.PushNotify.kt
View file @
f795eeb7
...
...
@@ -23,7 +23,7 @@ import net.mamoe.mirai.utils.currentTimeSeconds
/**
* 告知要刷新好友消息
*/
internal
object
MessageSvcPushNotify
:
IncomingPacketFactory
<
RequestPushNotify
>(
"MessageSvcPushNotify"
)
{
internal
object
MessageSvcPushNotify
:
IncomingPacketFactory
<
RequestPushNotify
>(
"MessageSvc
.
PushNotify"
)
{
override
suspend
fun
ByteReadPacket
.
decode
(
bot
:
QQAndroidBot
,
sequenceId
:
Int
):
RequestPushNotify
{
discardExact
(
4
)
// don't remove
return
readUniPacket
(
RequestPushNotify
.
serializer
())
...
...
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