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

125 lines
3.5 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package o;
import com.scb.phone.domain.errors.RetrofitException;
import o.C15715hv;
import o.InterfaceC9419djQ;
import o.ZI;
import o.bXF;
import o.cXH;
import o.wRi;
/* loaded from: classes4.dex */
public final class bXF extends ZI<InterfaceC9419djQ.IeS> {
private final C17499xL a;
public String b;
private final Cld c;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
@InterfaceC13391fZD
public bXF(Cld cld, C17499xL c17499xL, C16903sI c16903sI) {
super(c16903sI);
C14957gcv.e(cld, "");
C14957gcv.e(c17499xL, "");
C14957gcv.e(c16903sI, "");
this.c = cld;
this.a = c17499xL;
}
@Override // o.ZI
public final void w_() {
Cld cld = this.c;
if (!cld.h.isDisposed()) {
cld.h.dispose();
}
super.w_();
}
/* loaded from: classes4.dex */
final class LWm extends wRi.LWm<Dqc> {
private bXF e;
public LWm(bXF bxf) {
this.e = bxf;
}
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final /* synthetic */ void onNext(Object obj) {
final Dqc dqc = (Dqc) obj;
C14957gcv.e(dqc, "");
bXF.a(this.e);
final bXF bxf = this.e;
ZI.IeS ieS = new ZI.IeS(bxf, dqc) { // from class: o.bXN
private Dqc b;
private bXF e;
@Override // o.ZI.IeS
public final void e(Object obj2) {
bXF.LWm.e(this.e, this.b, (InterfaceC9419djQ.IeS) obj2);
}
{
this.e = bxf;
this.b = dqc;
}
};
if (bxf.f != 0) {
ieS.e(bxf.f);
}
}
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final void onError(Throwable th) {
ggV ggv;
C14957gcv.e(th, "");
if (!(th instanceof RetrofitException)) {
this.e.c(C15715hv.tOB.error_generic_resource);
return;
}
VCl vCl = ((RetrofitException) th).e;
if (C14957gcv.b((Object) ((vCl == null || (ggv = vCl.c) == null) ? null : ggv.e), (Object) "3063")) {
bXF bxf = this.e;
ZI.IeS ieS = new ZI.IeS() { // from class: o.bXH
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9419djQ.IeS) obj).d();
}
};
if (bxf.f != 0) {
ieS.e(bxf.f);
return;
}
return;
}
this.e.c(C15715hv.tOB.error_generic_resource);
}
public static /* synthetic */ void e(bXF bxf, Dqc dqc, InterfaceC9419djQ.IeS ieS) {
C14957gcv.e(bxf, "");
C14957gcv.e(dqc, "");
C0972Sq c = bxf.a.c(dqc);
ieS.b(c.a, c.e, c.b);
}
}
public static final /* synthetic */ void a(bXF bxf) {
if (bxf.f != 0) {
bxf.f.ar_();
}
}
public final void c() {
if (this.f != 0) {
this.f.y();
}
Cld cld = this.c;
String str = this.b;
if (str == null) {
C14957gcv.a("");
str = null;
}
cld.c(new C3765bG(str, cXH.HBt.Sts.COMPLETED.toString(), null));
Cld cld2 = this.c;
cld2.d(cld2.i, new LWm(this));
}
}