4399游戏盒 v7.2.1.31版本的 MD5 值为:951717f45e3fda95c8a358caf4ca93e1
以下内容为反编译后的 BaseConfigKey.java 源代码,内容仅作参考
package com.m4399.gamecenter.plugin.main.config;
import com.framework.config.ConfigValueType;
import com.framework.config.IConfigX;
import com.framework.config.ISysConfigKey;
import com.framework.database.tables.CachesTable;
import kotlin.Metadata;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
@Metadata(d1 = {"\u0000&\n\u0002\u0018\u0002\n\u0002\u0010\u0010\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0000\n\u0002\b\u0014\b\u0086\u0001\u0018\u0000 \u001c2\b\u0012\u0004\u0012\u00020\u00000\u00012\u00020\u00022\u00020\u0003:\u0001\u001cB%\b\u0012\u0012\b\u0010\u0004\u001a\u0004\u0018\u00010\u0005\u0012\b\u0010\u0006\u001a\u0004\u0018\u00010\u0007\u0012\b\u0010\b\u001a\u0004\u0018\u00010\t¢\u0006\u0002\u0010\nB\u001b\b\u0012\u0012\b\u0010\u0004\u001a\u0004\u0018\u00010\u0005\u0012\b\u0010\u0006\u001a\u0004\u0018\u00010\u0007¢\u0006\u0002\u0010\u000bJ\n\u0010\f\u001a\u0004\u0018\u00010\tH\u0016J\b\u0010\r\u001a\u00020\u0005H\u0016J\n\u0010\u000e\u001a\u0004\u0018\u00010\u0005H\u0016J\n\u0010\u000f\u001a\u0004\u0018\u00010\u0007H\u0016R\u0010\u0010\b\u001a\u0004\u0018\u00010\tX\u0082\u000e¢\u0006\u0002\n\u0000R\u0010\u0010\u0004\u001a\u0004\u0018\u00010\u0005X\u0082\u000e¢\u0006\u0002\n\u0000R\u0010\u0010\u0006\u001a\u0004\u0018\u00010\u0007X\u0082\u000e¢\u0006\u0002\n\u0000j\u0002\b\u0010j\u0002\b\u0011j\u0002\b\u0012j\u0002\b\u0013j\u0002\b\u0014j\u0002\b\u0015j\u0002\b\u0016j\u0002\b\u0017j\u0002\b\u0018j\u0002\b\u0019j\u0002\b\u001aj\u0002\b\u001b¨\u0006\u001d"}, d2 = {"Lcom/m4399/gamecenter/plugin/main/config/BaseConfigKey;", "", "Lcom/framework/config/ISysConfigKey;", "Lcom/framework/config/IConfigX;", CachesTable.COLUMN_KEY, "", "valueType", "Lcom/framework/config/ConfigValueType;", "defaultValue", "", "(Ljava/lang/String;ILjava/lang/String;Lcom/framework/config/ConfigValueType;Ljava/lang/Object;)V", "(Ljava/lang/String;ILjava/lang/String;Lcom/framework/config/ConfigValueType;)V", "getDefaultValue", "getFileName", "getKey", "getValueType", "USER_BACK_TOKEN", "IS_NEW_DEVICE", "URLS_REAL_NAME", "URLS_BIND_PHONE", "URLS_REAL_NAME_GUARDIAN", "REAL_NAME_GUARDIAN_DIALOG_CONFIG", "ID_AUTH_SWITCH_CONFIG", "DEVICE_TOTAL_MEMORY", "IMAGE_URL_PREFIX", "IS_OPEN_TOAST_ANTI_ADDICTION", "IS_OPEN_ERROR_FAST_GAME", "TYPE_INSTALL_ROM", "Companion", "plugin_main_base_release"}, k = 1, mv = {1, 6, 0}, xi = 48)
public enum BaseConfigKey implements IConfigX, ISysConfigKey {
USER_BACK_TOKEN("pref.user.back.token", ConfigValueType.String, ""),
IS_NEW_DEVICE("pref.is.new.device", ConfigValueType.Boolean, false),
URLS_REAL_NAME("urls.real.name", ConfigValueType.String, ""),
URLS_BIND_PHONE("urls.bind.phone", ConfigValueType.String, ""),
URLS_REAL_NAME_GUARDIAN("urls.real.name.guardian", ConfigValueType.String, ""),
REAL_NAME_GUARDIAN_DIALOG_CONFIG("real.name.guardian.dialog.config", ConfigValueType.String, ""),
ID_AUTH_SWITCH_CONFIG("", ConfigValueType.String, ""),
DEVICE_TOTAL_MEMORY("pref.device.total.memory", ConfigValueType.Long, 0L),
IMAGE_URL_PREFIX("pref.pre.image.url.prefix", ConfigValueType.String, "https://f02.img4399.com/box~abox_general_config/"),
IS_OPEN_TOAST_ANTI_ADDICTION("pref.is.open.toast.anti.addiction", ConfigValueType.Boolean, false),
IS_OPEN_ERROR_FAST_GAME("pref.is.open.error.fast.game", ConfigValueType.Boolean, false),
TYPE_INSTALL_ROM("pref.type.intall.rom", ConfigValueType.String, null);
public static final Companion INSTANCE = new Companion(null);
private Object defaultValue;
private String key;
private ConfigValueType valueType;
@Override
public String getFileName() {
return "com.m4399.gamecenter.plugin.main.base";
}
BaseConfigKey(String str, ConfigValueType configValueType, Object obj) {
this.key = str;
this.valueType = configValueType;
this.defaultValue = obj;
}
@Metadata(d1 = {"\u0000\u0018\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0000\b\u0086\u0003\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002J\u0012\u0010\u0003\u001a\u0004\u0018\u00010\u00042\u0006\u0010\u0005\u001a\u00020\u0006H\u0016¨\u0006\u0007"}, d2 = {"Lcom/m4399/gamecenter/plugin/main/config/BaseConfigKey$Companion;", "", "()V", "keyOf", "Lcom/m4399/gamecenter/plugin/main/config/BaseConfigKey;", CachesTable.COLUMN_KEY, "", "plugin_main_base_release"}, k = 1, mv = {1, 6, 0}, xi = 48)
public static final class Companion {
public Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
private Companion() {
}
public BaseConfigKey keyOf(String key) {
Intrinsics.checkNotNullParameter(key, "key");
BaseConfigKey[] values = BaseConfigKey.values();
int length = values.length;
int i = 0;
while (i < length) {
BaseConfigKey baseConfigKey = values[i];
i++;
if (Intrinsics.areEqual(baseConfigKey.key, key)) {
return baseConfigKey;
}
}
return null;
}
}
@Override
public ConfigValueType getValueType() {
return this.valueType;
}
@Override
public String getKey() {
return this.key;
}
@Override
public Object getDefaultValue() {
return this.defaultValue;
}
}