mirror of
https://github.com/mamoe/mirai.git
synced 2025-02-03 16:34:33 +08:00
Make SKey packets internal
This commit is contained in:
parent
ad3306a738
commit
492918ff63
@ -13,14 +13,18 @@ import net.mamoe.mirai.network.qqAccount
|
|||||||
import net.mamoe.mirai.utils.io.*
|
import net.mamoe.mirai.utils.io.*
|
||||||
import net.mamoe.mirai.withSession
|
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`
|
||||||
* SKey 用于 http api
|
* SKey 用于 http api
|
||||||
*/
|
*/
|
||||||
@AnnotatedId(KnownPacketId.S_KEY)
|
@AnnotatedId(KnownPacketId.S_KEY)
|
||||||
object RequestSKeyPacket : SessionPacketFactory<SKey>() {
|
internal object RequestSKeyPacket : SessionPacketFactory<SKey>() {
|
||||||
operator fun invoke(
|
operator fun invoke(
|
||||||
bot: UInt,
|
bot: UInt,
|
||||||
sessionKey: SessionKey
|
sessionKey: SessionKey
|
||||||
@ -61,7 +65,3 @@ object RequestSKeyPacket : SessionPacketFactory<SKey>() {
|
|||||||
}*/
|
}*/
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
inline class SKey(
|
|
||||||
val value: String
|
|
||||||
) : Packet
|
|
Loading…
Reference in New Issue
Block a user