package com.ss.android.ugc.aweme.utils;

import X.0RQ;
import X.LsC;
import com.bytedance.covode.number.Covode;
import com.bytedance.pitaya.api.PTYPackageCallback;
import com.bytedance.pitaya.api.bean.PTYError;
import com.bytedance.pitaya.api.bean.PTYPackageInfo;

public final class AdMobileAISecServiceImpl$requestPackage$1 implements PTYPackageCallback {
    public final /* synthetic */ String $businessName;
    public final /* synthetic */ LsC $callback;

    static {
        Covode.recordClassIndex(122028);
    }

    public AdMobileAISecServiceImpl$requestPackage$1(String str, LsC lsC) {
        this.$businessName = str;
        this.$callback = lsC;
    }

    public final void onResult(boolean z, PTYError pTYError, PTYPackageInfo pTYPackageInfo) {
        if (z) {
            this.$callback.invoke(new 0RQ(z));
        } else if (pTYError != null) {
            Integer.valueOf(pTYError.getCode());
            pTYError.getSummary();
        }
    }
}
