From 644842e191cb55e8e34fe7aa331bdb96a39362a0 Mon Sep 17 00:00:00 2001 From: Him188 <Him188@mamoe.net> Date: Mon, 10 Feb 2020 13:54:01 +0800 Subject: [PATCH] Remove useless LoginResult --- .../net.mamoe.mirai/data/LoginResult.kt | 74 ------------------- 1 file changed, 74 deletions(-) delete mode 100644 mirai-core/src/commonMain/kotlin/net.mamoe.mirai/data/LoginResult.kt diff --git a/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/data/LoginResult.kt b/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/data/LoginResult.kt deleted file mode 100644 index 643a6e5cf..000000000 --- a/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/data/LoginResult.kt +++ /dev/null @@ -1,74 +0,0 @@ -/* - * Copyright 2020 Mamoe Technologies and contributors. - * - * 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version 3 许可证的约束, 可以在以下链接找到该许可证. - * Use of this source code is governed by the GNU AGPLv3 license that can be found through the following link. - * - * https://github.com/mamoe/mirai/blob/master/LICENSE - */ - -@file:Suppress("unused") - -package net.mamoe.mirai.data - -import net.mamoe.mirai.utils.BotConfiguration - -/** - * 登录失败的原因 - */ -enum class LoginResult(val id: Byte) { - /** - * 密码错误 - */ - WRONG_PASSWORD(1), - - /** - * 被冻结 - */ - BLOCKED(2), - - /** - * QQ 号码输入有误 - */ - UNKNOWN_QQ_NUMBER(3), - - /** - * 账号开启了设备锁. 暂不支持设备锁登录 - */ - DEVICE_LOCK(4), - - /** - * 账号被回收 - */ - TAKEN_BACK(5), - - /** - * 未知. 更换服务器或等几分钟再登录可能解决. - */ - UNKNOWN(6), - - /** - * 包数据错误 - */ - INTERNAL_ERROR(7), - - /** - * 超时 - */ - TIMEOUT(8), - - /** - * 网络不可用 - */ - NETWORK_UNAVAILABLE(9), - - /** - * 需要验证码且 [BotConfiguration.failOnCaptcha] 为 `true` - */ - CAPTCHA(10), - - /** - * 该号码长期未登录, 为了保证账号安全, 已被系统设置成保护状态, 请用手机 TIM 最新版本登录, 登录成功后即可自动解除保护模式 - */ // TIM的错误代码为 00020 - PROTECTED(11), -} \ No newline at end of file