RbChat v4.56630229版本的 MD5 值为:d137f4b55d6b64b50641a810905f5957
以下内容为反编译后的 ConfigEntity.java 源代码,内容仅作参考
package net.x52im.mobileimsdk.android.conf;
import com.blankj.utilcode.constant.TimeConstants;
import com.x52im.rbchat.Const;
import io.agora.rtc2.internal.RtcEngineEvent;
import net.x52im.mobileimsdk.android.core.KeepAliveDaemon;
public class ConfigEntity {
public static int localPort = 0;
public static String serverIP = "192.168.0.190";
public static int serverPort = 8901;
public enum SenseMode {
MODE_3S,
MODE_5S,
MODE_10S,
MODE_15S,
MODE_30S,
MODE_60S,
MODE_120S
}
public static class AnonymousClass1 {
static final int[] $SwitchMap$net$x52im$mobileimsdk$android$conf$ConfigEntity$SenseMode;
static {
int[] iArr = new int[SenseMode.values().length];
$SwitchMap$net$x52im$mobileimsdk$android$conf$ConfigEntity$SenseMode = iArr;
try {
iArr[SenseMode.MODE_3S.ordinal()] = 1;
} catch (NoSuchFieldError unused) {
}
try {
$SwitchMap$net$x52im$mobileimsdk$android$conf$ConfigEntity$SenseMode[SenseMode.MODE_5S.ordinal()] = 2;
} catch (NoSuchFieldError unused2) {
}
try {
$SwitchMap$net$x52im$mobileimsdk$android$conf$ConfigEntity$SenseMode[SenseMode.MODE_10S.ordinal()] = 3;
} catch (NoSuchFieldError unused3) {
}
try {
$SwitchMap$net$x52im$mobileimsdk$android$conf$ConfigEntity$SenseMode[SenseMode.MODE_15S.ordinal()] = 4;
} catch (NoSuchFieldError unused4) {
}
try {
$SwitchMap$net$x52im$mobileimsdk$android$conf$ConfigEntity$SenseMode[SenseMode.MODE_30S.ordinal()] = 5;
} catch (NoSuchFieldError unused5) {
}
try {
$SwitchMap$net$x52im$mobileimsdk$android$conf$ConfigEntity$SenseMode[SenseMode.MODE_60S.ordinal()] = 6;
} catch (NoSuchFieldError unused6) {
}
try {
$SwitchMap$net$x52im$mobileimsdk$android$conf$ConfigEntity$SenseMode[SenseMode.MODE_120S.ordinal()] = 7;
} catch (NoSuchFieldError unused7) {
}
}
}
public static void setSenseMode(SenseMode senseMode) {
int i;
int i2 = 5000;
switch (AnonymousClass1.$SwitchMap$net$x52im$mobileimsdk$android$conf$ConfigEntity$SenseMode[senseMode.ordinal()]) {
case 1:
i = 5000;
i2 = 3000;
break;
case 2:
i = 8000;
break;
case 3:
i2 = 10000;
i = RtcEngineEvent.EvtType.EVT_RECAP_INDICATION;
break;
case 4:
i2 = 15000;
i = 20000;
break;
case 5:
i2 = 30000;
i = 35000;
break;
case 6:
i2 = TimeConstants.MIN;
i = 65000;
break;
case 7:
i2 = Const.CHATTING_MESSAGE_SHOW_TIME_INTERVAL;
i = 125000;
break;
default:
i = 0;
i2 = 0;
break;
}
if (i2 > 0) {
KeepAliveDaemon.KEEP_ALIVE_INTERVAL = i2;
}
if (i > 0) {
KeepAliveDaemon.NETWORK_CONNECTION_TIME_OUT = i;
}
}
}