Rabbit-R1/original r1/java/sources/tech/rabbit/r1launcher/wss/Constant.java

52 lines
1.3 KiB
Java
Raw Normal View History

2024-05-21 16:08:36 -05:00
package tech.rabbit.r1launcher.wss;
import tech.rabbit.common.utils.SPUtils;
/* loaded from: classes3.dex */
public class Constant {
static String LOGIN_TOKEN = "login_token";
static String LOST_MODE = "lost_mode";
static String PASSCODE = "passcode";
static String USER_ID = "user_id";
public static boolean hasLoginToken() {
return !getLoginToken().isEmpty();
}
public static String getLoginToken() {
return (String) SPUtils.INSTANCE.get(LOGIN_TOKEN, "");
}
public static void saveLoginToken(String str) {
SPUtils.INSTANCE.put(LOGIN_TOKEN, str);
}
public static boolean hasPasscode() {
return !getPasscode().isEmpty();
}
public static void saveLostMode(String str) {
SPUtils.INSTANCE.put(LOST_MODE, str);
}
public static String getLostMode() {
return (String) SPUtils.INSTANCE.get(LOST_MODE, "");
}
public static String getPasscode() {
return (String) SPUtils.INSTANCE.get(PASSCODE, "");
}
public static void savePasscode(String str) {
SPUtils.INSTANCE.put(PASSCODE, str);
}
public static void setUserId(String str) {
SPUtils.INSTANCE.put(USER_ID, str);
}
public static String getUserId() {
return (String) SPUtils.INSTANCE.get(USER_ID, "");
}
}