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

86 lines
2.7 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.domain.interactor.emailverification;
import com.scb.phone.domain.ScbException;
import com.scb.phone.domain.errors.RetrofitException;
import com.scb.phone.domain.interactor.emailverification.UpdateEmailUseCase;
import o.AbstractC13163fSk;
import o.C8132dC;
import o.InterfaceC13169fSq;
import o.InterfaceC13391fZD;
import o.Ogo;
import o.Xky;
import o.fSS;
import o.wRi;
import o.yRw;
/* loaded from: classes3.dex */
public class UpdateEmailUseCase extends wRi {
private final Xky b;
/* loaded from: classes3.dex */
public static class Error1047 extends ScbException {
}
/* loaded from: classes3.dex */
public static class Error3000 extends ScbException {
}
@InterfaceC13391fZD
public UpdateEmailUseCase(yRw yrw, yRw yrw2, Xky xky) {
super(yrw, yrw2);
this.b = xky;
}
public final AbstractC13163fSk<Ogo> e(String str) {
C8132dC c8132dC = new C8132dC();
c8132dC.b = str;
return e(this.b.e(c8132dC).onErrorResumeNext(new fSS() { // from class: o.XDz
@Override // o.fSS
public final Object a(Object obj) {
return UpdateEmailUseCase.d((Throwable) obj);
}
}));
}
public static /* synthetic */ InterfaceC13169fSq d(Throwable th) throws Throwable {
if (th instanceof RetrofitException) {
String str = ((RetrofitException) th).e.c.e;
if ("1047".equals(str)) {
return AbstractC13163fSk.error(new Error1047());
}
if ("3000".equals(str)) {
return AbstractC13163fSk.error(new Error3000());
}
}
return AbstractC13163fSk.error(th);
}
public final AbstractC13163fSk<Boolean> c() {
return e(this.b.k().onErrorResumeNext(new fSS() { // from class: o.pRL
@Override // o.fSS
public final Object a(Object obj) {
return UpdateEmailUseCase.b((Throwable) obj);
}
}));
}
public static /* synthetic */ InterfaceC13169fSq b(Throwable th) throws Throwable {
String str;
if (th instanceof RetrofitException) {
RetrofitException retrofitException = (RetrofitException) th;
if (retrofitException == null || retrofitException.e == null || retrofitException.e.c == null) {
str = "";
} else {
str = retrofitException.e.c.e;
}
if ("1047".equals(str)) {
return AbstractC13163fSk.error(new Error1047());
}
if ("3000".equals(str)) {
return AbstractC13163fSk.error(new Error3000());
}
}
return AbstractC13163fSk.error(th);
}
}