what-the-bank/sources/com/scb/phone/domain/interactor/ReviewInfoCase.java

60 lines
1.9 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.domain.interactor;
import com.scb.phone.domain.ScbException;
import com.scb.phone.domain.errors.RetrofitException;
import com.scb.phone.domain.interactor.ReviewInfoCase;
import o.AbstractC13163fSk;
import o.C7426co;
import o.InterfaceC10882eRo;
import o.InterfaceC13391fZD;
import o.Xky;
import o.Zch;
import o.fSS;
import o.guD;
import o.wRi;
import o.yRw;
/* loaded from: classes3.dex */
public final class ReviewInfoCase extends wRi {
public final InterfaceC10882eRo c;
public final Xky d;
/* loaded from: classes3.dex */
public static class FailUpdateRMException extends ScbException {
}
/* loaded from: classes3.dex */
public static class JobIncomeDangerousException extends ScbException {
}
@InterfaceC13391fZD
public ReviewInfoCase(yRw yrw, yRw yrw2, InterfaceC10882eRo interfaceC10882eRo, Xky xky) {
super(yrw, yrw2);
this.c = interfaceC10882eRo;
this.d = xky;
}
public final AbstractC13163fSk<Zch> c(String str, String str2) {
return e(this.c.c(str, str2).onErrorResumeNext(new fSS() { // from class: o.ekA
@Override // o.fSS
public final Object a(Object obj) {
Throwable th = (Throwable) obj;
if (th instanceof RetrofitException) {
String str3 = ((RetrofitException) th).e.c.e;
if ("9100".equals(str3)) {
return AbstractC13163fSk.error(new ReviewInfoCase.JobIncomeDangerousException());
}
if ("3046".equals(str3)) {
return AbstractC13163fSk.error(new ReviewInfoCase.FailUpdateRMException());
}
}
return AbstractC13163fSk.error(th);
}
}));
}
public final AbstractC13163fSk<guD> e(C7426co c7426co) {
return e(this.c.b(c7426co));
}
}