45 lines
1.2 KiB
Java
45 lines
1.2 KiB
Java
package com.kofax.mobile.sdk.extract.server;
|
|
|
|
import android.content.Context;
|
|
import com.kofax.mobile.sdk._internal.dagger.Injector;
|
|
|
|
/* loaded from: classes3.dex */
|
|
public class ServerBuilder {
|
|
|
|
/* loaded from: classes3.dex */
|
|
public enum ServerType {
|
|
RTTI,
|
|
KTA
|
|
}
|
|
|
|
/* renamed from: com.kofax.mobile.sdk.extract.server.ServerBuilder$1, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
static /* synthetic */ class AnonymousClass1 {
|
|
static final int[] afU;
|
|
|
|
static {
|
|
int[] iArr = new int[ServerType.values().length];
|
|
afU = iArr;
|
|
try {
|
|
iArr[ServerType.RTTI.ordinal()] = 1;
|
|
} catch (NoSuchFieldError unused) {
|
|
}
|
|
try {
|
|
afU[ServerType.KTA.ordinal()] = 2;
|
|
} catch (NoSuchFieldError unused2) {
|
|
}
|
|
}
|
|
}
|
|
|
|
public static IServerExtractor build(Context context, ServerType serverType) {
|
|
int i = AnonymousClass1.afU[serverType.ordinal()];
|
|
if (i == 1) {
|
|
return Injector.getInjector(context).getRttiExtraction();
|
|
}
|
|
if (i != 2) {
|
|
return null;
|
|
}
|
|
return Injector.getInjector(context).getKtaExtraction();
|
|
}
|
|
}
|