what-the-bank/sources/com/kofax/mobile/sdk/u/d.java

298 lines
7.7 KiB
Java

package com.kofax.mobile.sdk.u;
import com.kofax.kmc.ken.engines.data.BarCodeResult;
import com.kofax.mobile.sdk.extract.id.AggregateException;
import com.kofax.mobile.sdk.extract.id.DataField;
import com.kofax.mobile.sdk.extract.id.IIdExtractionListener;
import com.kofax.mobile.sdk.extract.id.IIdImageProcessingListener;
import com.kofax.mobile.sdk.extract.id.IdExtractionParameters;
import com.kofax.mobile.sdk.extract.id.IdType;
import com.kofax.mobile.sdk.extract.id.ImageField;
import com.kofax.mobile.sdk.extract.id.ListOfException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
/* loaded from: classes3.dex */
public class d implements com.kofax.mobile.sdk.e.a {
private boolean NO;
private boolean NP;
private final IdExtractionParameters Oc;
private List<DataField> Od;
private b Og;
private b Oh;
private com.kofax.mobile.sdk.c.a Oi;
private com.kofax.mobile.sdk.c.a Oj;
private List<List<DataField>> Os;
private List<List<DataField>> Ot;
private double Ou;
private List<Exception> Oe = new ArrayList();
private List<Exception> Of = new ArrayList();
private List<DataField> Ok = null;
private List<DataField> Ol = null;
private List<DataField> Om = null;
private ImageField On = null;
private ImageField Oo = null;
private List<DataField> Op = null;
private List<DataField> Oq = null;
private List<DataField> Or = null;
public d(IdExtractionParameters idExtractionParameters) {
this.Oc = idExtractionParameters;
}
@Override // com.kofax.mobile.sdk.e.a
public void a(Exception exc) {
this.Oe.add(exc);
}
@Override // com.kofax.mobile.sdk.e.a
public void b(Exception exc) {
this.Of.add(exc);
}
@Override // com.kofax.mobile.sdk.e.a
public boolean isProcessed() {
return this.Oc.isProcessed();
}
@Override // com.kofax.mobile.sdk.e.a
public String ht() {
return this.Oc.getIdType() == IdType.Passport ? com.kofax.mobile.sdk.e.a.vM : this.Oc.getProjectName();
}
@Override // com.kofax.mobile.sdk.e.a
public IIdExtractionListener getExtractionListener() {
return this.Oc.getExtractionListener();
}
@Override // com.kofax.mobile.sdk.e.a
public IIdImageProcessingListener getImageProcessingListener() {
return this.Oc.getImageProcessingListener();
}
@Override // com.kofax.mobile.sdk.e.a
public AggregateException hA() {
Exception listOfException;
Exception listOfException2;
do {
} while (this.Oe.remove((Object) null));
if (this.Oe.size() == 1) {
listOfException = this.Oe.get(0);
} else {
listOfException = this.Oe.size() > 1 ? new ListOfException(this.Oe) : null;
}
do {
} while (this.Of.remove((Object) null));
if (this.Of.size() == 1) {
listOfException2 = this.Of.get(0);
} else {
listOfException2 = this.Of.size() > 1 ? new ListOfException(this.Of) : null;
}
if (listOfException == null && listOfException2 == null) {
return null;
}
return new AggregateException(listOfException, listOfException2);
}
@Override // com.kofax.mobile.sdk.e.a
public List<BarCodeResult> hC() {
return this.Oc.getBackBarcodes();
}
@Override // com.kofax.mobile.sdk.e.a
public List<BarCodeResult> hE() {
return this.Oc.getFrontBarcodes();
}
@Override // com.kofax.mobile.sdk.e.a
public List<List<DataField>> hH() {
return Arrays.asList(this.Oq);
}
@Override // com.kofax.mobile.sdk.e.a
public List<List<DataField>> hI() {
return Arrays.asList(this.Or);
}
@Override // com.kofax.mobile.sdk.e.a
public void o(boolean z) {
this.NP = this.NP || z;
}
@Override // com.kofax.mobile.sdk.e.a
public void n(boolean z) {
this.NO = z | this.NO;
}
@Override // com.kofax.mobile.sdk.e.a
public void j(List<DataField> list) {
this.Op = list;
}
@Override // com.kofax.mobile.sdk.e.a
public boolean isOcrRead() {
return this.NP;
}
@Override // com.kofax.mobile.sdk.e.a
public boolean isBarcodeRead() {
return this.NO;
}
@Override // com.kofax.mobile.sdk.e.a
public void i(List<DataField> list) {
this.Or = list;
}
@Override // com.kofax.mobile.sdk.e.a
public List<DataField> hz() {
return this.Od;
}
@Override // com.kofax.mobile.sdk.e.a
public List<DataField> hy() {
return this.Ol;
}
@Override // com.kofax.mobile.sdk.e.a
public List<DataField> hx() {
return this.Ok;
}
@Override // com.kofax.mobile.sdk.e.a
public com.kofax.mobile.sdk.c.a hw() {
return this.Oj;
}
@Override // com.kofax.mobile.sdk.e.a
public com.kofax.mobile.sdk.c.a hv() {
return this.Oi;
}
@Override // com.kofax.mobile.sdk.e.a
public com.kofax.mobile.sdk.c.a hu() {
return this.Oi;
}
@Override // com.kofax.mobile.sdk.e.a
public b hs() {
return this.Oh;
}
@Override // com.kofax.mobile.sdk.e.a
public b hr() {
return this.Og;
}
@Override // com.kofax.mobile.sdk.e.a
public IdExtractionParameters hq() {
return this.Oc;
}
@Override // com.kofax.mobile.sdk.e.a
public List<DataField> hG() {
return this.Op;
}
@Override // com.kofax.mobile.sdk.e.a
public List<List<DataField>> hF() {
return this.Os;
}
@Override // com.kofax.mobile.sdk.e.a
public List<List<DataField>> hD() {
return this.Ot;
}
@Override // com.kofax.mobile.sdk.e.a
public List<DataField> hB() {
return this.Om;
}
@Override // com.kofax.mobile.sdk.e.a
public void h(List<DataField> list) {
this.Oq = list;
}
@Override // com.kofax.mobile.sdk.e.a
public ImageField getSignatureImageField() {
return this.Oo;
}
@Override // com.kofax.mobile.sdk.e.a
public ImageField getFaceImageField() {
return this.On;
}
@Override // com.kofax.mobile.sdk.e.a
public double getDocumentVerificationConfidenceRating() {
return this.Ou;
}
@Override // com.kofax.mobile.sdk.e.a
public void g(List<List<DataField>> list) {
this.Os = list;
}
@Override // com.kofax.mobile.sdk.e.a
public void f(List<List<DataField>> list) {
this.Ot = list;
}
@Override // com.kofax.mobile.sdk.e.a
public void e(List<DataField> list) {
this.Om = list;
}
@Override // com.kofax.mobile.sdk.e.a
public void d(List<DataField> list) {
this.Od = list;
}
@Override // com.kofax.mobile.sdk.e.a
public void d(double d) {
this.Ou = d;
}
@Override // com.kofax.mobile.sdk.e.a
public void c(List<DataField> list) {
this.Ol = list;
}
@Override // com.kofax.mobile.sdk.e.a
public void b(List<DataField> list) {
this.Ok = list;
}
@Override // com.kofax.mobile.sdk.e.a
public void b(b bVar) {
this.Oh = bVar;
}
@Override // com.kofax.mobile.sdk.e.a
public void b(ImageField imageField) {
this.Oo = imageField;
}
@Override // com.kofax.mobile.sdk.e.a
public void b(com.kofax.mobile.sdk.c.a aVar) {
this.Oj = aVar;
}
@Override // com.kofax.mobile.sdk.e.a
public void a(b bVar) {
this.Og = bVar;
}
@Override // com.kofax.mobile.sdk.e.a
public void a(ImageField imageField) {
this.On = imageField;
}
@Override // com.kofax.mobile.sdk.e.a
public void a(com.kofax.mobile.sdk.c.a aVar) {
this.Oi = aVar;
}
}