导航菜单

页面标题

页面副标题

Mint v5.7.3 - CampaignEvaluationJob.java 源代码

正在查看: Mint v5.7.3 应用的 CampaignEvaluationJob.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package com.moengage.trigger.evaluator.internal;

import ae.o;
import android.app.job.JobParameters;
import android.app.job.JobService;
import android.content.Context;
import com.thoughtbot.expandablerecyclerview.BuildConfig;
import kotlin.Metadata;
import kotlin.jvm.internal.m;
import kotlin.jvm.internal.n;
import va.h;
import wa.s;
import wa.t;

@Metadata(d1 = {"\u0000.\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0005\b\u0000\u0018\u00002\u00020\u00012\u00020\u0002B\u0007¢\u0006\u0004\b\u000f\u0010\u0010J\u0010\u0010\u0006\u001a\u00020\u00052\u0006\u0010\u0004\u001a\u00020\u0003H\u0016J\u0012\u0010\u0007\u001a\u00020\u00052\b\u0010\u0004\u001a\u0004\u0018\u00010\u0003H\u0016J\u0010\u0010\u000b\u001a\u00020\n2\u0006\u0010\t\u001a\u00020\bH\u0016R\u0014\u0010\u000e\u001a\u00020\f8\u0002X\u0082D¢\u0006\u0006\n\u0004\b\u000b\u0010\r¨\u0006\u0011"}, d2 = {"Lcom/moengage/trigger/evaluator/internal/CampaignEvaluationJob;", "Landroid/app/job/JobService;", "Lta/b;", "Landroid/app/job/JobParameters;", "params", BuildConfig.FLAVOR, "onStartJob", "onStopJob", "Lwa/s;", "jobMeta", "Lug/a0;", "a", BuildConfig.FLAVOR, "Ljava/lang/String;", "tag", "<init>", "()V", "trigger-evaluator_release"}, k = 1, mv = {1, 7, 1})
public final class CampaignEvaluationJob extends JobService implements ta.b {

    private final String tag = "TriggerEvaluator_1.1.0_CampaignEvaluationJob";

    @Metadata(d1 = {"\u0000\b\n\u0000\n\u0002\u0010\u000e\n\u0000\u0010\u0000\u001a\u00020\u0001H\n¢\u0006\u0002\b\u0002"}, d2 = {"<anonymous>", BuildConfig.FLAVOR, "invoke"}, k = 3, mv = {1, 7, 1}, xi = 48)
    static final class a extends n implements fh.a<String> {
        a() {
            super(0);
        }

        public final String invoke() {
            return CampaignEvaluationJob.this.tag + " jobComplete() : Job completed. Releasing lock.";
        }
    }

    @Metadata(d1 = {"\u0000\b\n\u0000\n\u0002\u0010\u000e\n\u0000\u0010\u0000\u001a\u00020\u0001H\n¢\u0006\u0002\b\u0002"}, d2 = {"<anonymous>", BuildConfig.FLAVOR, "invoke"}, k = 3, mv = {1, 7, 1}, xi = 48)
    static final class b extends n implements fh.a<String> {
        b() {
            super(0);
        }

        public final String invoke() {
            return CampaignEvaluationJob.this.tag + " jobComplete() : ";
        }
    }

    @Metadata(d1 = {"\u0000\b\n\u0000\n\u0002\u0010\u000e\n\u0000\u0010\u0000\u001a\u00020\u0001H\n¢\u0006\u0002\b\u0002"}, d2 = {"<anonymous>", BuildConfig.FLAVOR, "invoke"}, k = 3, mv = {1, 7, 1}, xi = 48)
    static final class c extends n implements fh.a<String> {
        c() {
            super(0);
        }

        public final String invoke() {
            return CampaignEvaluationJob.this.tag + " onStartJob() : ";
        }
    }

    @Metadata(d1 = {"\u0000\b\n\u0000\n\u0002\u0010\u000e\n\u0000\u0010\u0000\u001a\u00020\u0001H\n¢\u0006\u0002\b\u0002"}, d2 = {"<anonymous>", BuildConfig.FLAVOR, "invoke"}, k = 3, mv = {1, 7, 1}, xi = 48)
    static final class d extends n implements fh.a<String> {
        d() {
            super(0);
        }

        public final String invoke() {
            return CampaignEvaluationJob.this.tag + " onStartJob() : ";
        }
    }

    @Metadata(d1 = {"\u0000\b\n\u0000\n\u0002\u0010\u000e\n\u0000\u0010\u0000\u001a\u00020\u0001H\n¢\u0006\u0002\b\u0002"}, d2 = {"<anonymous>", BuildConfig.FLAVOR, "invoke"}, k = 3, mv = {1, 7, 1}, xi = 48)
    static final class e extends n implements fh.a<String> {
        e() {
            super(0);
        }

        public final String invoke() {
            return CampaignEvaluationJob.this.tag + " onStartJob() : campaignId can't be null";
        }
    }

    @Metadata(d1 = {"\u0000\b\n\u0000\n\u0002\u0010\u000e\n\u0000\u0010\u0000\u001a\u00020\u0001H\n¢\u0006\u0002\b\u0002"}, d2 = {"<anonymous>", BuildConfig.FLAVOR, "invoke"}, k = 3, mv = {1, 7, 1}, xi = 48)
    static final class f extends n implements fh.a<String> {
        f() {
            super(0);
        }

        public final String invoke() {
            return CampaignEvaluationJob.this.tag + " onStartJob() : campaignModuleName can't be null";
        }
    }

    @Metadata(d1 = {"\u0000\b\n\u0000\n\u0002\u0010\u000e\n\u0000\u0010\u0000\u001a\u00020\u0001H\n¢\u0006\u0002\b\u0002"}, d2 = {"<anonymous>", BuildConfig.FLAVOR, "invoke"}, k = 3, mv = {1, 7, 1}, xi = 48)
    static final class g extends n implements fh.a<String> {
        g() {
            super(0);
        }

        public final String invoke() {
            return CampaignEvaluationJob.this.tag + " onStopJob() : ";
        }
    }

    @Override
    public void a(s sVar) {
        m.g(sVar, "jobMeta");
        try {
            h.Companion.d(h.INSTANCE, 0, null, new a(), 3, null);
            jobFinished(sVar.getJobParameters(), sVar.getIsRescheduleRequired());
        } catch (Throwable th) {
            h.INSTANCE.b(1, th, new b());
        }
    }

    @Override
    public boolean onStartJob(JobParameters params) {
        h.Companion companion;
        String string;
        m.g(params, "params");
        try {
            companion = h.INSTANCE;
            h.Companion.d(companion, 0, null, new c(), 3, null);
            string = params.getExtras().getString("campaign_id");
        } catch (Throwable th) {
            h.INSTANCE.b(1, th, new d());
            jobFinished(params, false);
        }
        if (string == null) {
            h.Companion.d(companion, 2, null, new e(), 2, null);
            return false;
        }
        String string2 = params.getExtras().getString("campaign_module");
        if (string2 == null) {
            h.Companion.d(companion, 2, null, new f(), 2, null);
            return false;
        }
        o oVar = o.a;
        Context applicationContext = getApplicationContext();
        m.f(applicationContext, "applicationContext");
        oVar.d(applicationContext, string, string2, ce.g.SCHEDULED_JOB, new t(params, this));
        return true;
    }

    @Override
    public boolean onStopJob(JobParameters params) {
        h.Companion.d(h.INSTANCE, 0, null, new g(), 3, null);
        return false;
    }
}