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


package com.sina.weibo.sdk.a;

import com.sina.weibo.sdk.auth.Oauth2AccessToken;
import com.sina.weibo.sdk.net.b;
import com.sina.weibo.sdk.net.c;
import com.sina.weibo.sdk.net.e;

public final class e extends c<Void, Void, String> {

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

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

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

    /* renamed from: af  reason: collision with root package name */
    private Oauth2AccessToken f26338af;

    public e(String str, Oauth2AccessToken oauth2AccessToken, c<String> cVar) {
        this.f26337ad = str;
        this.f26338af = oauth2AccessToken;
        this.f26335aa = cVar;
    }

    /* access modifiers changed from: private */
    /* renamed from: n */
    public String l() {
        try {
            e.a aVar = new e.a();
            aVar.i = "https://api.weibo.com/oauth2/access_token";
            return new b().a(aVar.b("client_id", this.f26337ad).b("appKey", this.f26337ad).b("grant_type", "refresh_token").b("refresh_token", this.f26338af.getRefreshToken()).e()).f();
        } catch (Throwable th2) {
            th2.printStackTrace();
            this.f26336ab = 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.f26336ab;
        if (th2 != null) {
            c<String> cVar = this.f26335aa;
            if (cVar != null) {
                cVar.onError(th2);
                return;
            }
            return;
        }
        c<String> cVar2 = this.f26335aa;
        if (cVar2 != null) {
            cVar2.a(str2);
        }
    }
}