Make SKey packets internal

This commit is contained in:
Him188 2019-12-06 18:34:23 +08:00
parent ad3306a738
commit 492918ff63

View File

@ -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<SKey>() {
internal object RequestSKeyPacket : SessionPacketFactory<SKey>() {
operator fun invoke(
bot: UInt,
sessionKey: SessionKey
@ -60,8 +64,4 @@ object RequestSKeyPacket : SessionPacketFactory<SKey>() {
}
}*/
}
}
inline class SKey(
val value: String
) : Packet
}