得物.apk(点击下载) / d.java


package com.sina.weibo.sdk.a;

import android.content.Context;
import com.sina.weibo.sdk.net.HttpManager;
import com.sina.weibo.sdk.net.b;
import com.sina.weibo.sdk.net.c;
import com.sina.weibo.sdk.net.e;

public final class d extends c<Void, Void, String> {
    private Context Z;

    /* renamed from: aa  reason: collision with root package name */
    private c<String> f26330aa;

    /* renamed from: ab  reason: collision with root package name */
    private Throwable f26331ab;

    /* renamed from: ac  reason: collision with root package name */
    private String f26332ac;

    /* renamed from: ad  reason: collision with root package name */
    private String f26333ad;

    /* renamed from: ae  reason: collision with root package name */
    private String f26334ae;

    public d(Context context, String str, String str2, String str3, c<String> cVar) {
        this.Z = context;
        this.f26332ac = str;
        this.f26333ad = str2;
        this.f26334ae = str3;
        this.f26330aa = cVar;
    }

    private String d(String str) {
        return HttpManager.a(this.Z, "", this.f26334ae, this.f26333ad, str);
    }

    /* access modifiers changed from: private */
    /* renamed from: n */
    public String l() {
        try {
            String valueOf = String.valueOf(System.currentTimeMillis() / 1000);
            e.a aVar = new e.a();
            aVar.i = "https://service.weibo.com/share/mobilesdk_uppic.php";
            return new b().a(aVar.a("oauth_timestamp", valueOf).a("oauth_sign", d(valueOf)).b("appKey", this.f26333ad).b("oauth_timestamp", valueOf).b("oauth_sign", d(valueOf)).b("img", this.f26332ac).e()).f();
        } catch (Throwable th2) {
            th2.printStackTrace();
            this.f26331ab = th2;
            return null;
        }
    }

    /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
    @Override // com.sina.weibo.sdk.a.c
    public final /* synthetic */ void onPostExecute(String str) {
        String str2 = str;
        Throwable th2 = this.f26331ab;
        if (th2 != null) {
            c<String> cVar = this.f26330aa;
            if (cVar != null) {
                cVar.onError(th2);
                return;
            }
            return;
        }
        c<String> cVar2 = this.f26330aa;
        if (cVar2 != null) {
            cVar2.a(str2);
        }
    }
}