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

85 lines
3.1 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.kofax.mobile.sdk.g;
import com.kofax.kmc.kut.utilities.appstats.AppStatsClientEventLogger;
import com.kofax.kmc.kut.utilities.appstats.dao.AppStatsDao;
import com.kofax.kmc.kut.utilities.appstats.dao.ImageDao;
import com.kofax.kmc.kut.utilities.appstats.type.AppStatsDsOpType;
import com.kofax.kmc.kut.utilities.appstats.type.AppStatsEventIDType;
/* loaded from: classes3.dex */
public class f extends a {
private static final String TAG = "f";
private ImageDao xO;
public void a(AppStatsEventIDType appStatsEventIDType, b bVar) {
a(appStatsEventIDType, new AppStatsClientEventLogger(this, bVar) { // from class: com.kofax.mobile.sdk.g.f.1
final b xP;
final f xQ;
{
this.xQ = this;
this.xP = bVar;
}
@Override // com.kofax.kmc.kut.utilities.appstats.AppStatsClientEventLogger
public void logEvent(AppStatsEventIDType appStatsEventIDType2) {
int i = AnonymousClass2.xL[appStatsEventIDType2.ordinal()];
if (i == 1) {
this.xQ.a(appStatsEventIDType2);
this.xQ.a(this.xP);
} else if (i == 2) {
this.xQ.a(appStatsEventIDType2);
this.xQ.b(this.xP);
}
}
});
}
/* renamed from: com.kofax.mobile.sdk.g.f$2, reason: invalid class name */
/* loaded from: classes3.dex */
static /* synthetic */ class AnonymousClass2 {
static final int[] xL;
static {
int[] iArr = new int[AppStatsEventIDType.values().length];
xL = iArr;
try {
iArr[AppStatsEventIDType.APP_STATS_IMAGE_CREATED.ordinal()] = 1;
} catch (NoSuchFieldError unused) {
}
try {
xL[AppStatsEventIDType.APP_STATS_IMAGE_ADD_TO_DOCUMENT.ordinal()] = 2;
} catch (NoSuchFieldError unused2) {
}
}
}
protected void a(b bVar) {
ImageDao imageDao = new ImageDao();
this.xO = imageDao;
imageDao.setId(bVar.getImageID());
this.xO.setEventTime(this.asFriend.currentEventTime());
this.xO.setDsOperation(AppStatsDsOpType.APP_STATS_DS_INSERT);
this.xO.setFileSize((int) bVar.getFileSize());
this.xO.setSource(bVar.getSource());
ImageDao imageDao2 = this.xO;
imageDao2.setSessionKey(imageDao2.getAppStatsSessionKey());
a(new AppStatsDao[]{this.xO});
}
/* JADX INFO: Access modifiers changed from: private */
public void b(b bVar) {
ImageDao imageDao = new ImageDao();
this.xO = imageDao;
imageDao.setDsOperation(AppStatsDsOpType.APP_STATS_DS_UPDATE);
this.xO.setDocumentId(bVar.getDocumentID());
this.xO.setId(bVar.getImageID());
this.xO.setEventTime(bVar.iB());
this.xO.setFileSize((int) bVar.getFileSize());
this.xO.setSource(bVar.getSource());
ImageDao imageDao2 = this.xO;
imageDao2.setSessionKey(imageDao2.getAppStatsSessionKey());
a(new AppStatsDao[]{this.xO});
}
}