- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
42 lines
1.4 KiB
Java
42 lines
1.4 KiB
Java
package com.vungle.ads.internal.task;
|
|
|
|
import android.content.Context;
|
|
import com.vungle.ads.internal.util.PathProvider;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
|
|
/* loaded from: classes4.dex */
|
|
public final class VungleJobCreator implements JobCreator {
|
|
private final Context context;
|
|
private final PathProvider pathProvider;
|
|
|
|
public final Context getContext() {
|
|
return this.context;
|
|
}
|
|
|
|
public final PathProvider getPathProvider() {
|
|
return this.pathProvider;
|
|
}
|
|
|
|
public VungleJobCreator(Context context, PathProvider pathProvider) {
|
|
Intrinsics.checkNotNullParameter(context, "context");
|
|
Intrinsics.checkNotNullParameter(pathProvider, "pathProvider");
|
|
this.context = context;
|
|
this.pathProvider = pathProvider;
|
|
}
|
|
|
|
@Override // com.vungle.ads.internal.task.JobCreator
|
|
public Job create(String tag) throws UnknownTagException {
|
|
Intrinsics.checkNotNullParameter(tag, "tag");
|
|
if (tag.length() == 0) {
|
|
throw new UnknownTagException("Job tag is null");
|
|
}
|
|
if (Intrinsics.areEqual(tag, CleanupJob.TAG)) {
|
|
return new CleanupJob(this.context, this.pathProvider);
|
|
}
|
|
if (Intrinsics.areEqual(tag, ResendTpatJob.TAG)) {
|
|
return new ResendTpatJob(this.context, this.pathProvider);
|
|
}
|
|
throw new UnknownTagException("Unknown Job Type " + tag);
|
|
}
|
|
}
|