米游社.apk(点击下载) / d.java


package com.sina.weibo.sdk.a;

import android.content.Context;
import com.sina.weibo.sdk.b.e;
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;
import com.tencent.open.SocialConstants;

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

    /* renamed from: aa  reason: collision with root package name */
    private Throwable f40600aa;

    /* renamed from: ab  reason: collision with root package name */
    private String f40601ab;

    /* renamed from: ac  reason: collision with root package name */
    private String f40602ac;
    private String appKey;
    private Context context;

    public d(Context context2, String str, String str2, String str3, c<String> cVar) {
        this.context = context2;
        this.f40601ab = str;
        this.appKey = str2;
        this.f40602ac = str3;
        this.Z = cVar;
    }

    private String e(String str) {
        return HttpManager.a(this.context, e.r(), this.f40602ac, this.appKey, str);
    }

    /* access modifiers changed from: private */
    /* renamed from: q */
    public String o() {
        try {
            String valueOf = String.valueOf(System.currentTimeMillis() / 1000);
            e.a aVar = new e.a();
            aVar.f40623i = "https://service.weibo.com/share/mobilesdk_uppic.php";
            return new b().a(aVar.a("aid", com.sina.weibo.sdk.b.e.r()).a("oauth_timestamp", valueOf).a("oauth_sign", e(valueOf)).b("appKey", this.appKey).b("aid", com.sina.weibo.sdk.b.e.r()).b("oauth_timestamp", valueOf).b("oauth_sign", e(valueOf)).b(SocialConstants.PARAM_IMG_URL, this.f40601ab).h()).i();
        } catch (Throwable th2) {
            th2.printStackTrace();
            this.f40600aa = 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.f40600aa;
        if (th2 != null) {
            c<String> cVar = this.Z;
            if (cVar != null) {
                cVar.onError(th2);
                return;
            }
            return;
        }
        c<String> cVar2 = this.Z;
        if (cVar2 != null) {
            cVar2.a(str2);
        }
    }
}