This commit is contained in:
Him188 2020-01-30 02:27:07 +08:00
parent 7e51a9daf1
commit 41a94f9dd2

View File

@ -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