HttpUtils$a.smali
.class Lcn/jiguang/net/HttpUtils$a;
.super Landroid/os/AsyncTask;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcn/jiguang/net/HttpUtils;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0xa
name = "a"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroid/os/AsyncTask",
"<",
"Lcn/jiguang/net/HttpRequest;",
"Ljava/lang/Void;",
"Lcn/jiguang/net/HttpResponse;",
">;"
}
.end annotation
# instance fields
.field private a:Lcn/jiguang/net/HttpUtils$HttpListener;
.field private b:Landroid/content/Context;
# direct methods
.method public constructor <init>(Landroid/content/Context;Lcn/jiguang/net/HttpUtils$HttpListener;)V
.registers 3
invoke-direct {p0}, Landroid/os/AsyncTask;-><init>()V
iput-object p2, p0, Lcn/jiguang/net/HttpUtils$a;->a:Lcn/jiguang/net/HttpUtils$HttpListener;
iput-object p1, p0, Lcn/jiguang/net/HttpUtils$a;->b:Landroid/content/Context;
return-void
.end method
# virtual methods
.method protected varargs a([Lcn/jiguang/net/HttpRequest;)Lcn/jiguang/net/HttpResponse;
.registers 4
if-eqz p1, :cond_5
array-length v0, p1
if-nez v0, :cond_7
:cond_5
const/4 v0, 0x0
:goto_6
return-object v0
:cond_7
iget-object v0, p0, Lcn/jiguang/net/HttpUtils$a;->b:Landroid/content/Context;
const/4 v1, 0x0
aget-object v1, p1, v1
invoke-static {v0, v1}, Lcn/jiguang/net/HttpUtils;->httpGet(Landroid/content/Context;Lcn/jiguang/net/HttpRequest;)Lcn/jiguang/net/HttpResponse;
move-result-object v0
goto :goto_6
.end method
.method protected a(Lcn/jiguang/net/HttpResponse;)V
.registers 3
iget-object v0, p0, Lcn/jiguang/net/HttpUtils$a;->a:Lcn/jiguang/net/HttpUtils$HttpListener;
if-eqz v0, :cond_9
iget-object v0, p0, Lcn/jiguang/net/HttpUtils$a;->a:Lcn/jiguang/net/HttpUtils$HttpListener;
invoke-virtual {v0, p1}, Lcn/jiguang/net/HttpUtils$HttpListener;->a(Lcn/jiguang/net/HttpResponse;)V
:cond_9
return-void
.end method
.method protected synthetic doInBackground([Ljava/lang/Object;)Ljava/lang/Object;
.registers 3
check-cast p1, [Lcn/jiguang/net/HttpRequest;
invoke-virtual {p0, p1}, Lcn/jiguang/net/HttpUtils$a;->a([Lcn/jiguang/net/HttpRequest;)Lcn/jiguang/net/HttpResponse;
move-result-object v0
return-object v0
.end method
.method protected synthetic onPostExecute(Ljava/lang/Object;)V
.registers 2
check-cast p1, Lcn/jiguang/net/HttpResponse;
invoke-virtual {p0, p1}, Lcn/jiguang/net/HttpUtils$a;->a(Lcn/jiguang/net/HttpResponse;)V
return-void
.end method
.method protected onPreExecute()V
.registers 2
iget-object v0, p0, Lcn/jiguang/net/HttpUtils$a;->a:Lcn/jiguang/net/HttpUtils$HttpListener;
if-eqz v0, :cond_9
iget-object v0, p0, Lcn/jiguang/net/HttpUtils$a;->a:Lcn/jiguang/net/HttpUtils$HttpListener;
invoke-virtual {v0}, Lcn/jiguang/net/HttpUtils$HttpListener;->a()V
:cond_9
return-void
.end method