mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-08 09:10:11 +08:00
Cleanup
This commit is contained in:
parent
7e51a9daf1
commit
41a94f9dd2
@ -267,9 +267,7 @@ internal object LoginPacket : PacketFactory<LoginPacket.LoginPacketResponse>("wt
|
|||||||
|
|
||||||
sealed class LoginPacketResponse : Packet {
|
sealed class LoginPacketResponse : Packet {
|
||||||
object Success : LoginPacketResponse() {
|
object Success : LoginPacketResponse() {
|
||||||
override fun toString(): String {
|
override fun toString(): String = "LoginPacketResponse.Success"
|
||||||
return "LoginPacketResponse.Success"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
data class Error(
|
data class Error(
|
||||||
@ -283,24 +281,24 @@ internal object LoginPacket : PacketFactory<LoginPacket.LoginPacketResponse>("wt
|
|||||||
class Slider(
|
class Slider(
|
||||||
val url: String
|
val url: String
|
||||||
) : Captcha() {
|
) : Captcha() {
|
||||||
override fun toString(): String {
|
override fun toString(): String = "LoginPacketResponse.Captcha.Slider"
|
||||||
return "LoginPacketResponse.Captcha.Slider"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
class Picture(
|
class Picture(
|
||||||
val data: IoBuffer,
|
val data: IoBuffer,
|
||||||
val sign: ByteArray
|
val sign: ByteArray
|
||||||
) : Captcha() {
|
) : Captcha() {
|
||||||
override fun toString(): String {
|
override fun toString(): String = "LoginPacketResponse.Captcha.Picture"
|
||||||
return "LoginPacketResponse.Captcha.Picture"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class UnsafeLogin(val url: String) : LoginPacketResponse()
|
data class UnsafeLogin(val url: String) : LoginPacketResponse()
|
||||||
|
|
||||||
class SMSVerifyCodeNeeded(val t402: ByteArray, val t403: ByteArray) : LoginPacketResponse()
|
class SMSVerifyCodeNeeded(val t402: ByteArray, val t403: ByteArray) : LoginPacketResponse(){
|
||||||
|
override fun toString(): String {
|
||||||
|
return "LoginPacketResponse.SMSVerifyCodeNeeded"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@InternalAPI
|
@InternalAPI
|
||||||
|
Loading…
Reference in New Issue
Block a user