mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-09 18:00:33 +08:00
Straightforward toString
This commit is contained in:
parent
553283ef7d
commit
a45470a0b9
@ -14,7 +14,9 @@ import net.mamoe.mirai.utils.io.toUHexString
|
||||
data class UnknownEventPacket(
|
||||
val id: UShort,
|
||||
val body: ByteReadPacket
|
||||
) : EventPacket
|
||||
) : EventPacket {
|
||||
override fun toString(): String = "UnknownEventPacket(id=${id.toUHexString()})"
|
||||
}
|
||||
|
||||
//TODO This class should be declared with `inline`, but a CompilationException will be thrown
|
||||
class UnknownEventParserAndHandler(override val id: UShort) : EventParserAndHandler<UnknownEventPacket> {
|
||||
|
@ -255,6 +255,7 @@ object SubmitPasswordPacket : PacketFactory<SubmitPasswordPacket.LoginResponse,
|
||||
inline class SessionResponseDecryptionKey(private val delegate: IoBuffer) : Decrypter {
|
||||
override fun decrypt(packet: ByteReadPacket): ByteReadPacket = packet.decryptBy(delegate)
|
||||
|
||||
override fun toString(): String = "SessionResponseDecryptionKey"
|
||||
companion object Type : DecrypterType<SessionResponseDecryptionKey>
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user