- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
53 lines
1.8 KiB
Java
53 lines
1.8 KiB
Java
package com.mbridge.msdk.mbbid.common.b;
|
|
|
|
import com.mbridge.msdk.foundation.same.net.c;
|
|
import com.mbridge.msdk.foundation.same.net.d;
|
|
import com.mbridge.msdk.foundation.tools.af;
|
|
import com.mbridge.msdk.mbbid.common.BidResponsedEx;
|
|
import com.mbridge.msdk.tracker.network.h;
|
|
import java.util.List;
|
|
import org.json.JSONObject;
|
|
|
|
/* loaded from: classes4.dex */
|
|
public abstract class b extends c<JSONObject> {
|
|
private static final String a = "b";
|
|
|
|
public abstract void a(int i, String str);
|
|
|
|
public abstract void a(BidResponsedEx bidResponsedEx);
|
|
|
|
public b(String str, String str2) {
|
|
this.unitId = str2;
|
|
this.placementId = str;
|
|
}
|
|
|
|
@Override // com.mbridge.msdk.foundation.same.net.c, com.mbridge.msdk.foundation.same.net.b
|
|
public void onSuccess(d<JSONObject> dVar) {
|
|
com.mbridge.msdk.foundation.same.net.d.a aVar;
|
|
super.onSuccess(dVar);
|
|
if (dVar == null || (aVar = dVar.b) == null) {
|
|
return;
|
|
}
|
|
List<h> list = aVar.b;
|
|
JSONObject jSONObject = dVar.c;
|
|
int optInt = jSONObject.optInt("status");
|
|
if (200 == optInt) {
|
|
BidResponsedEx parseBidResponsedEx = BidResponsedEx.parseBidResponsedEx(jSONObject.optJSONObject("data"), this.unitId);
|
|
if (parseBidResponsedEx != null) {
|
|
a(parseBidResponsedEx);
|
|
return;
|
|
} else {
|
|
a(optInt, jSONObject.optString("msg"));
|
|
return;
|
|
}
|
|
}
|
|
a(optInt, jSONObject.optString("msg"));
|
|
}
|
|
|
|
@Override // com.mbridge.msdk.foundation.same.net.c, com.mbridge.msdk.foundation.same.net.b
|
|
public void onError(com.mbridge.msdk.foundation.same.net.a.a aVar) {
|
|
af.b(a, "errorCode = " + aVar.a);
|
|
a(aVar.a, com.mbridge.msdk.foundation.same.net.e.a.a(aVar));
|
|
}
|
|
}
|