what-the-bank/sources/com/facetec/sdk/bx.java

41 lines
973 B
Java

package com.facetec.sdk;
import java.io.IOException;
/* loaded from: classes.dex */
public final class bx extends ek implements ha {
private gt a;
private dx c;
private gv e;
public bx(dx dxVar, gt gtVar, gv gvVar) {
this.c = dxVar;
this.a = gtVar;
this.e = gvVar;
}
@Override // com.facetec.sdk.ek
public final void b(ga gaVar, Object obj) throws IOException {
if (obj == null) {
gaVar.h();
} else {
this.e.c(gaVar, obj == q.ID_SCAN_MATCH ? 5 : obj == q.FACE_SCAN ? 3 : obj == q.ID_SCAN_ONLY ? 4 : -1);
}
}
@Override // com.facetec.sdk.ek
public final Object a(fu fuVar) throws IOException {
int b = this.a.b(fuVar);
if (b == 1) {
return q.ID_SCAN_MATCH;
}
if (b == 10) {
return q.ID_SCAN_ONLY;
}
if (b != 11) {
return null;
}
return q.FACE_SCAN;
}
}