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

89 lines
2.6 KiB
Java

package com.facetec.sdk;
import android.os.Parcel;
import android.os.Parcelable;
import android.util.Base64;
import java.util.ArrayList;
/* loaded from: classes.dex */
public final class FaceTecIDScanResult implements Parcelable {
public static final Parcelable.Creator<FaceTecIDScanResult> CREATOR = new Parcelable.Creator<FaceTecIDScanResult>() { // from class: com.facetec.sdk.FaceTecIDScanResult.1
@Override // android.os.Parcelable.Creator
public /* bridge */ /* synthetic */ FaceTecIDScanResult[] newArray(int i) {
return new FaceTecIDScanResult[i];
}
@Override // android.os.Parcelable.Creator
public /* synthetic */ FaceTecIDScanResult createFromParcel(Parcel parcel) {
return new FaceTecIDScanResult(parcel);
}
};
private final FaceTecIDScanStatus a;
String b;
ArrayList<String> c;
ArrayList<String> d;
byte[] e;
@Override // android.os.Parcelable
public final int describeContents() {
return 0;
}
@Override // android.os.Parcelable
public final void writeToParcel(Parcel parcel, int i) {
parcel.writeSerializable(this.a);
cb.a(this.c, parcel);
cb.a(this.d, parcel);
cb.a(this.e, parcel);
cb.a(this.b, parcel);
}
protected FaceTecIDScanResult(Parcel parcel) {
this.c = new ArrayList<>();
this.d = new ArrayList<>();
this.a = (FaceTecIDScanStatus) parcel.readSerializable();
this.c = (ArrayList) cb.c(parcel);
this.d = (ArrayList) cb.c(parcel);
this.e = (byte[]) cb.c(parcel);
this.b = (String) cb.c(parcel);
}
/* JADX INFO: Access modifiers changed from: package-private */
public FaceTecIDScanResult(FaceTecIDScanStatus faceTecIDScanStatus) {
this.c = new ArrayList<>();
this.d = new ArrayList<>();
this.a = faceTecIDScanStatus;
}
public final String getIDScanBase64() {
byte[] bArr = new byte[0];
byte[] bArr2 = this.e;
if (bArr2 != null) {
bArr = bArr2;
}
return Base64.encodeToString(bArr, 2);
}
public final FaceTecIDScanStatus getStatus() {
return this.a;
}
public final String getSessionId() {
return this.b;
}
public final byte[] getIDScan() {
byte[] bArr = new byte[0];
byte[] bArr2 = this.e;
return bArr2 != null ? bArr2 : bArr;
}
public final ArrayList<String> getFrontImagesCompressedBase64() {
return this.c;
}
public final ArrayList<String> getBackImagesCompressedBase64() {
return this.d;
}
}