package com.tencent.mm.plugin.wepkg.model;

import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.plugin.wepkg.downloader.WePkgDownloader;
import com.tencent.mm.plugin.wepkg.downloader.WePkgDownloader.IWepkgUpdateCallback;
import com.tencent.mm.plugin.wepkg.downloader.WePkgDownloader.IWepkgUpdateCallback.RetCode;
import com.tencent.mm.sdk.platformtools.ab;
import com.tencent.mm.sdk.platformtools.bo;
import com.tencent.ytcommon.BuildConfig;

class h$1 implements Runnable {
    final /* synthetic */ String iRf;
    final /* synthetic */ String mXE;
    final /* synthetic */ String uGc;
    final /* synthetic */ int uHY;
    final /* synthetic */ WepkgDownloadProcessTask uXs;
    final /* synthetic */ a uXt;
    final /* synthetic */ String uXu;
    final /* synthetic */ long uXv;
    final /* synthetic */ int uXw;
    final /* synthetic */ String val$downloadUrl;

    h$1(WepkgDownloadProcessTask wepkgDownloadProcessTask, a aVar, int i, String str, String str2, String str3, long j, String str4, String str5, int i2) {
        this.uXs = wepkgDownloadProcessTask;
        this.uXt = aVar;
        this.uHY = i;
        this.mXE = str;
        this.uXu = str2;
        this.val$downloadUrl = str3;
        this.uXv = j;
        this.uGc = str4;
        this.iRf = str5;
        this.uXw = i2;
    }

    public final void run() {
        AppMethodBeat.i(63567);
        AnonymousClass1 anonymousClass1 = new IWepkgUpdateCallback() {
            public final void a(String str, String str2, RetCode retCode) {
                AppMethodBeat.i(63566);
                ab.i("MicroMsg.Wepkg.WepkgProcessTaskPerformer", "onPkgUpdatingCallback errCode:%s", new Object[]{retCode});
                h$1.this.uXs.cSY = str;
                h$1.this.uXs.gSP = str2;
                h$1.this.uXs.uXg = retCode;
                if (h$1.this.uXt != null) {
                    h$1.this.uXt.a(h$1.this.uXs);
                }
                AppMethodBeat.o(63566);
            }
        };
        if (this.uHY == 1) {
            WePkgDownloader.dgx().a(this.mXE, anonymousClass1);
            AppMethodBeat.o(63567);
            return;
        }
        WePkgDownloader.dgx().a(this.uHY, bo.nullAsNil(this.mXE), BuildConfig.FLAVOR, bo.nullAsNil(this.uXu), bo.nullAsNil(this.val$downloadUrl), this.uXv, bo.nullAsNil(this.uGc), BuildConfig.FLAVOR, bo.nullAsNil(this.iRf), this.uXw, anonymousClass1);
        AppMethodBeat.o(63567);
    }
}
