From 1ea84785846e31184a0da41d653680d52290f8b0 Mon Sep 17 00:00:00 2001 From: Him188 <Him188@mamoe.net> Date: Fri, 6 Dec 2019 23:46:20 +0800 Subject: [PATCH] Make all packets and network stuff internal --- .../androidMain/kotlin/net/mamoe/mirai/network/BotSession.kt | 2 +- .../src/jvmMain/kotlin/net/mamoe/mirai/network/BotSessionJvm.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mirai-core/src/androidMain/kotlin/net/mamoe/mirai/network/BotSession.kt b/mirai-core/src/androidMain/kotlin/net/mamoe/mirai/network/BotSession.kt index 6435d38d3..6b9513b18 100644 --- a/mirai-core/src/androidMain/kotlin/net/mamoe/mirai/network/BotSession.kt +++ b/mirai-core/src/androidMain/kotlin/net/mamoe/mirai/network/BotSession.kt @@ -20,7 +20,7 @@ import java.io.InputStream * @author Him188moe */ @UseExperimental(MiraiInternalAPI::class) -actual class BotSession actual constructor( +actual class BotSession internal actual constructor( bot: Bot, sessionKey: SessionKey, socket: DataPacketSocketAdapter, diff --git a/mirai-core/src/jvmMain/kotlin/net/mamoe/mirai/network/BotSessionJvm.kt b/mirai-core/src/jvmMain/kotlin/net/mamoe/mirai/network/BotSessionJvm.kt index 7277f4955..d775b216e 100644 --- a/mirai-core/src/jvmMain/kotlin/net/mamoe/mirai/network/BotSessionJvm.kt +++ b/mirai-core/src/jvmMain/kotlin/net/mamoe/mirai/network/BotSessionJvm.kt @@ -23,7 +23,7 @@ import javax.imageio.ImageIO */ @UseExperimental(MiraiInternalAPI::class) @Suppress("unused") -actual class BotSession actual constructor( +actual class BotSession internal actual constructor( bot: Bot, sessionKey: SessionKey, socket: DataPacketSocketAdapter,