what-the-bank/sources/o/C3527azI.java

115 lines
3.9 KiB
Java

package o;
import android.util.MalformedJsonException;
import com.google.gson.Gson;
import com.google.gson.JsonObject;
import com.google.gson.JsonParseException;
import o.C15715hv;
import o.ZI;
import org.json.JSONException;
/* renamed from: o.azI */
/* loaded from: classes4.dex */
public final class C3527azI extends cXI<InterfaceC9087ddB> {
public final C15851jD d;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
@InterfaceC13391fZD
public C3527azI(C16903sI c16903sI, C15851jD c15851jD) {
super(c16903sI);
C14957gcv.e(c16903sI, "");
C14957gcv.e(c15851jD, "");
this.d = c15851jD;
}
/* renamed from: o.azI$RVV */
/* loaded from: classes4.dex */
public static final class RVV {
private RVV() {
}
public /* synthetic */ RVV(byte b) {
this();
}
}
public final void a(Object obj) {
if (obj != null && (obj instanceof String)) {
try {
ZI.IeS ieS = new ZI.IeS(((JsonObject) new Gson().fromJson(((String) obj).toString(), JsonObject.class)).getAsJsonObject("payload"), this) { // from class: o.azM
private C3527azI c;
private JsonObject e;
@Override // o.ZI.IeS
public final void e(Object obj2) {
C3527azI.e(this.e, this.c, (InterfaceC9087ddB) obj2);
}
{
this.e = r1;
this.c = this;
}
};
if (this.f != 0) {
ieS.e(this.f);
return;
}
return;
} catch (MalformedJsonException unused) {
this.d.e.d.d();
d(this.j.c(C15715hv.tOB.common_error, C15715hv.tOB.error_generic_resource, new RunnableC3526azH(this)));
return;
} catch (JsonParseException unused2) {
this.d.e.d.d();
d(this.j.c(C15715hv.tOB.common_error, C15715hv.tOB.error_generic_resource, new RunnableC3526azH(this)));
return;
} catch (NullPointerException unused3) {
this.d.e.d.d();
d(this.j.c(C15715hv.tOB.common_error, C15715hv.tOB.error_generic_resource, new RunnableC3526azH(this)));
return;
} catch (JSONException unused4) {
this.d.e.d.d();
d(this.j.c(C15715hv.tOB.common_error, C15715hv.tOB.error_generic_resource, new RunnableC3526azH(this)));
return;
}
}
this.d.e.d.d();
d(this.j.c(C15715hv.tOB.common_error, C15715hv.tOB.error_generic_resource, new RunnableC3526azH(this)));
}
public static /* synthetic */ void a(C3527azI c3527azI) {
C14957gcv.e(c3527azI, "");
ZI.IeS ieS = new ZI.IeS() { // from class: o.azL
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9087ddB) obj).Q_();
}
};
if (c3527azI.f != 0) {
ieS.e(c3527azI.f);
}
}
public static /* synthetic */ void b(JsonObject jsonObject, InterfaceC9087ddB interfaceC9087ddB) {
String asString = jsonObject.get("rquid").getAsString();
C14957gcv.c((Object) asString, "");
interfaceC9087ddB.i_(asString);
}
public static /* synthetic */ void e(JsonObject jsonObject, C3527azI c3527azI, InterfaceC9087ddB interfaceC9087ddB) {
C14957gcv.e(c3527azI, "");
String asString = jsonObject.get("refid").getAsString();
C14957gcv.c((Object) asString, "");
if (gdZ.a(c3527azI.d.e.d.b(), "debenture", true)) {
interfaceC9087ddB.b(asString);
} else {
c3527azI.d.e.d.d();
}
interfaceC9087ddB.j_(asString);
}
static {
new RVV((byte) 0);
}
}