From f0fbebebc628d990a45fe7640f0337328a7ad275 Mon Sep 17 00:00:00 2001 From: Him188 Date: Wed, 19 Feb 2020 18:29:14 +0800 Subject: [PATCH] Add `toString` --- .../network/protocol/packet/chat/receive/MessageSvc.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/protocol/packet/chat/receive/MessageSvc.kt b/mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/protocol/packet/chat/receive/MessageSvc.kt index 6fdfa39a3..236581cc5 100644 --- a/mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/protocol/packet/chat/receive/MessageSvc.kt +++ b/mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/protocol/packet/chat/receive/MessageSvc.kt @@ -102,7 +102,11 @@ internal class MessageSvc { } @UseExperimental(MiraiInternalAPI::class) - open class GetMsgSuccess(delegate: List) : Response(MsgSvc.SyncFlag.STOP, delegate) + open class GetMsgSuccess(delegate: List) : Response(MsgSvc.SyncFlag.STOP, delegate) { + override fun toString(): String { + return "MessageSvc.PbGetMsg.GetMsgSuccess(messages=List(size=${this.size}))" + } + } /** * 不要直接 expect 这个 class. 它可能还没同步完成