what-the-bank/sources/com/kofax/mobile/sdk/w/af.java

99 lines
2.7 KiB
Java

package com.kofax.mobile.sdk.w;
import bolts.CancellationToken;
import o.gjJ;
/* loaded from: classes3.dex */
public class af extends ae {
private static final String Qp = " - Back";
private final b Qq;
/* loaded from: classes3.dex */
public interface b {
void a(com.kofax.mobile.sdk.e.a aVar, com.kofax.mobile.sdk.c.a aVar2);
void b(com.kofax.mobile.sdk.e.a aVar, Exception exc);
void c(com.kofax.mobile.sdk.e.a aVar, Exception exc);
void d(com.kofax.mobile.sdk.e.a aVar, com.kofax.mobile.sdk.c.a aVar2);
com.kofax.mobile.sdk.c.a hv();
com.kofax.mobile.sdk.c.a hw();
Exception oQ();
Exception oR();
}
@Override // com.kofax.mobile.sdk.w.ae, com.kofax.mobile.sdk.e.c
public /* bridge */ /* synthetic */ void a(Object obj, CancellationToken cancellationToken) {
super.a(obj, cancellationToken);
}
public af(b bVar) {
this.Qq = bVar;
}
@Override // com.kofax.mobile.sdk.w.ae
public void a(com.kofax.mobile.sdk.e.a aVar) {
com.kofax.mobile.sdk.c.a hv = this.Qq.hv();
com.kofax.mobile.sdk.c.a hw = this.Qq.hw();
Exception oQ = this.Qq.oQ();
Exception oR = this.Qq.oR();
boolean z = false;
boolean z2 = hv == null && oQ == null && hw != null;
if (hw == null && oR == null && hv != null) {
z = true;
}
if (z2) {
b(aVar, hw);
} else {
this.Qq.d(aVar, hv);
this.Qq.b(aVar, oQ);
}
if (z) {
c(aVar, hv);
} else {
this.Qq.a(aVar, hw);
this.Qq.c(aVar, oR);
}
}
private void b(com.kofax.mobile.sdk.e.a aVar, com.kofax.mobile.sdk.c.a aVar2) {
this.Qq.d(aVar, new a(gjJ.d(aVar2.getClassId(), Qp), aVar2.getConfidence()));
}
private void c(com.kofax.mobile.sdk.e.a aVar, com.kofax.mobile.sdk.c.a aVar2) {
String classId = aVar2.getClassId();
float confidence = aVar2.getConfidence();
StringBuilder sb = new StringBuilder();
sb.append(classId);
sb.append(Qp);
this.Qq.a(aVar, new a(sb.toString(), confidence));
}
/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes3.dex */
public static class a implements com.kofax.mobile.sdk.c.a {
private final float Hj;
private final String ah;
a(String str, float f) {
this.ah = str;
this.Hj = f;
}
@Override // com.kofax.mobile.sdk.c.a
public float getConfidence() {
return this.Hj;
}
@Override // com.kofax.mobile.sdk.c.a
public String getClassId() {
return this.ah;
}
}
}