From 492918ff637261e3bb743e9eb360041dc4feee5d Mon Sep 17 00:00:00 2001 From: Him188 Date: Fri, 6 Dec 2019 18:34:23 +0800 Subject: [PATCH] Make SKey packets internal --- .../network/protocol/tim/packet/login/SKey.kt | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/network/protocol/tim/packet/login/SKey.kt b/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/network/protocol/tim/packet/login/SKey.kt index 4fc2b18cb..3d61a253c 100644 --- a/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/network/protocol/tim/packet/login/SKey.kt +++ b/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/network/protocol/tim/packet/login/SKey.kt @@ -13,14 +13,18 @@ import net.mamoe.mirai.network.qqAccount import net.mamoe.mirai.utils.io.* import net.mamoe.mirai.withSession -fun BotSession.RequestSKeyPacket(): OutgoingPacket = RequestSKeyPacket(qqAccount, sessionKey) +internal fun BotSession.RequestSKeyPacket(): OutgoingPacket = RequestSKeyPacket(qqAccount, sessionKey) + +inline class SKey( + val value: String +) : Packet /** * 请求 `SKey` * SKey 用于 http api */ @AnnotatedId(KnownPacketId.S_KEY) -object RequestSKeyPacket : SessionPacketFactory() { +internal object RequestSKeyPacket : SessionPacketFactory() { operator fun invoke( bot: UInt, sessionKey: SessionKey @@ -60,8 +64,4 @@ object RequestSKeyPacket : SessionPacketFactory() { } }*/ } -} - -inline class SKey( - val value: String -) : Packet \ No newline at end of file +} \ No newline at end of file