improvements in ui

This commit is contained in:
2024-07-19 06:52:25 +03:00
parent 2b018add7c
commit ce306c995e
9 changed files with 156 additions and 57 deletions
@@ -3,7 +3,8 @@ package dev.meloda.fast.network
enum class VkOAuthErrorType(val value: String) {
WRONG_OTP_FORMAT("otp_format_is_incorrect"),
WRONG_OTP("wrong_otp"),
PASSWORD_BRUTEFORCE_ATTEMPT("password_bruteforce_attempt");
PASSWORD_BRUTEFORCE_ATTEMPT("password_bruteforce_attempt"),
USERNAME_OR_PASSWORD_IS_INCORRECT("username_or_password_is_incorrect");
companion object {
fun parse(value: String): VkOAuthErrorType = entries.firstOrNull { it.value == value }