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

41 lines
1.5 KiB
Java

package com.kofax.mobile.sdk.f;
import com.kofax.kmc.klo.logistics.data.Document;
import com.kofax.kmc.klo.logistics.data.Field;
import com.kofax.kmc.kut.utilities.appstats.type.AppStatsEventIDType;
import com.kofax.mobile.sdk._internal.IBus;
import o.InterfaceC13006fNs;
import o.InterfaceC13391fZD;
/* loaded from: classes3.dex */
public class d {
private IBus _bus;
private com.kofax.mobile.sdk.g.d xf = new com.kofax.mobile.sdk.g.d();
private com.kofax.mobile.sdk.g.e xg = new com.kofax.mobile.sdk.g.e();
@InterfaceC13391fZD
public d(IBus iBus) {
this._bus = iBus;
iBus.register(this);
}
@InterfaceC13006fNs
public void a(com.kofax.mobile.sdk.q.a aVar) {
Document document = aVar.Jk;
this.xf.a(AppStatsEventIDType.APP_STATS_DOCUMENT_CREATE_EVENT, document.getDocumentId(), document.getDocumentType().getTypeName());
}
@InterfaceC13006fNs
public void a(com.kofax.mobile.sdk.q.b bVar) {
Field field = bVar.Jm;
com.kofax.mobile.sdk.g.e eVar = this.xg;
AppStatsEventIDType appStatsEventIDType = AppStatsEventIDType.APP_STATS_FIELD_CHANGE_EVENT;
String str = bVar.Jl;
String str2 = bVar.Jn;
String value = field.getValue();
String name = field.getFieldType().getName();
boolean booleanValue = field.isValid().booleanValue();
eVar.a(appStatsEventIDType, str, str2, value, name, booleanValue ? 1 : 0, field.getErrorDescription());
}
}