4399游戏盒 v7.2.1.31版本的 MD5 值为:951717f45e3fda95c8a358caf4ca93e1
以下内容为反编译后的 GetNetworkTimeDp.java 源代码,内容仅作参考
package com.m4399.gamecenter.plugin.main.providers;
import com.framework.database.tables.HttpFailureTable;
import com.framework.net.ILoadPageEventListener;
import com.framework.providers.NetworkDataProvider;
import java.util.Map;
import kotlin.Metadata;
import kotlin.jvm.internal.DefaultConstructorMarker;
import org.json.JSONObject;
@Metadata(d1 = {"\u0000B\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010\u000e\n\u0000\n\u0002\u0010%\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\b\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0002\u0018\u0000 \u00182\u00020\u0001:\u0001\u0018B\u0005¢\u0006\u0002\u0010\u0002J,\u0010\u0003\u001a\u00020\u00042\b\u0010\u0005\u001a\u0004\u0018\u00010\u00062\u0018\u0010\u0007\u001a\u0014\u0012\u0006\u0012\u0004\u0018\u00010\t\u0012\u0006\u0012\u0004\u0018\u00010\t\u0018\u00010\bH\u0014J\b\u0010\n\u001a\u00020\u0004H\u0014J\b\u0010\u000b\u001a\u00020\fH\u0014J\b\u0010\r\u001a\u00020\u000eH\u0014J\b\u0010\u000f\u001a\u00020\u000eH\u0014J\b\u0010\u0010\u001a\u00020\fH\u0016J\u0012\u0010\u0011\u001a\u00020\u00042\b\u0010\u0012\u001a\u0004\u0018\u00010\u0013H\u0016J\b\u0010\u0014\u001a\u00020\fH\u0014J\u0012\u0010\u0015\u001a\u00020\u00042\b\u0010\u0016\u001a\u0004\u0018\u00010\u0017H\u0014¨\u0006\u0019"}, d2 = {"Lcom/m4399/gamecenter/plugin/main/providers/GetNetworkTimeDp;", "Lcom/framework/providers/NetworkDataProvider;", "()V", "buildRequestParams", "", "url", "", HttpFailureTable.COLUMN_PARAMS, "", "", "clearAllData", "enableCache", "", "getApiType", "", "getHostType", "isEmpty", "loadData", "listener", "Lcom/framework/net/ILoadPageEventListener;", "needInitNetworkDateByResponseHeader", "parseResponseData", "content", "Lorg/json/JSONObject;", "Companion", "plugin_main_base_release"}, k = 1, mv = {1, 6, 0}, xi = 48)
public final class GetNetworkTimeDp extends NetworkDataProvider {
public static final Companion INSTANCE = new Companion(null);
private static boolean dng;
@Override
protected void buildRequestParams(String url, Map<Object, Object> params) {
}
@Override
public void clearAllData() {
}
@Override
protected boolean enableCache() {
return false;
}
@Override
protected int getApiType() {
return 5;
}
@Override
public int getHostType() {
return 4;
}
@Override
public boolean isEmpty() {
return false;
}
@Override
protected boolean needInitNetworkDateByResponseHeader() {
return true;
}
@Override
public void parseResponseData(JSONObject content) {
}
@Metadata(d1 = {"\u0000\u0012\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0000\b\u0086\u0003\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002R\u000e\u0010\u0003\u001a\u00020\u0004X\u0082\u000e¢\u0006\u0002\n\u0000¨\u0006\u0005"}, d2 = {"Lcom/m4399/gamecenter/plugin/main/providers/GetNetworkTimeDp$Companion;", "", "()V", "isAlreadyGetNetworkTime", "", "plugin_main_base_release"}, k = 1, mv = {1, 6, 0}, xi = 48)
public static final class Companion {
public Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
private Companion() {
}
}
@Override
public void loadData(ILoadPageEventListener listener) {
if (!dng) {
super.loadData("https://cdn.yxhapi.com/android/box/general/v1.0/software-time.html", 1, new b(listener));
} else {
if (listener == null) {
return;
}
listener.onSuccess();
}
}
@Metadata(d1 = {"\u0000/\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0002\n\u0002\u0010\u0003\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002*\u0001\u0000\b\n\u0018\u00002\u00020\u0001J\b\u0010\u0002\u001a\u00020\u0003H\u0016J6\u0010\u0004\u001a\u00020\u00032\b\u0010\u0005\u001a\u0004\u0018\u00010\u00062\u0006\u0010\u0007\u001a\u00020\b2\b\u0010\t\u001a\u0004\u0018\u00010\n2\u0006\u0010\u000b\u001a\u00020\b2\b\u0010\f\u001a\u0004\u0018\u00010\rH\u0016J\b\u0010\u000e\u001a\u00020\u0003H\u0016¨\u0006\u000f"}, d2 = {"com/m4399/gamecenter/plugin/main/providers/GetNetworkTimeDp$loadData$tempListener$1", "Lcom/framework/net/ILoadPageEventListener;", "onBefore", "", com.m4399.gamecenter.plugin.main.helpers.l.ACTION_STATE_FAILURE, "error", "", "code", "", "content", "", "failureType", "result", "Lorg/json/JSONObject;", com.m4399.gamecenter.plugin.main.helpers.l.ACTION_STATE_SUCCESS, "plugin_main_base_release"}, k = 1, mv = {1, 6, 0}, xi = 48)
public static final class b implements ILoadPageEventListener {
final ILoadPageEventListener cUE;
b(ILoadPageEventListener iLoadPageEventListener) {
this.cUE = iLoadPageEventListener;
}
@Override
public void onBefore() {
ILoadPageEventListener iLoadPageEventListener = this.cUE;
if (iLoadPageEventListener == null) {
return;
}
iLoadPageEventListener.onBefore();
}
@Override
public void onSuccess() {
Companion companion = GetNetworkTimeDp.INSTANCE;
GetNetworkTimeDp.dng = true;
ILoadPageEventListener iLoadPageEventListener = this.cUE;
if (iLoadPageEventListener == null) {
return;
}
iLoadPageEventListener.onSuccess();
}
@Override
public void onFailure(Throwable error, int code, String content, int failureType, JSONObject result) {
ILoadPageEventListener iLoadPageEventListener = this.cUE;
if (iLoadPageEventListener == null) {
return;
}
iLoadPageEventListener.onFailure(error, code, content, failureType, result);
}
}
}