TrackUrlRequest.smali
.class public Lcom/tradplus/ads/pushcenter/http/TrackUrlRequest;
.super Lcom/tradplus/ads/volley/Request;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/tradplus/ads/pushcenter/http/TrackUrlRequest$Listener;
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/tradplus/ads/volley/Request<",
"Lcom/tradplus/ads/pushcenter/response/BaseResponse;",
">;"
}
.end annotation
# instance fields
.field private final a:Lcom/tradplus/ads/pushcenter/http/TrackUrlRequest$Listener;
# direct methods
.method public constructor <init>(Ljava/lang/String;Lcom/tradplus/ads/pushcenter/http/TrackUrlRequest$Listener;)V
.registers 6
const/4 v0, 0x0
invoke-direct {p0, v0, p1, p2}, Lcom/tradplus/ads/volley/Request;-><init>(ILjava/lang/String;Lcom/tradplus/ads/volley/Response$ErrorListener;)V
iput-object p2, p0, Lcom/tradplus/ads/pushcenter/http/TrackUrlRequest;->a:Lcom/tradplus/ads/pushcenter/http/TrackUrlRequest$Listener;
new-instance p1, Lcom/tradplus/ads/volley/DefaultRetryPolicy;
const/16 p2, 0x1388
const/4 v1, 0x1
const/high16 v2, 0x3f800000 # 1.0f
invoke-direct {p1, p2, v1, v2}, Lcom/tradplus/ads/volley/DefaultRetryPolicy;-><init>(IIF)V
invoke-virtual {p0, p1}, Lcom/tradplus/ads/volley/Request;->setRetryPolicy(Lcom/tradplus/ads/volley/RetryPolicy;)Lcom/tradplus/ads/volley/Request;
invoke-virtual {p0, v0}, Lcom/tradplus/ads/volley/Request;->setShouldCache(Z)Lcom/tradplus/ads/volley/Request;
return-void
.end method
# virtual methods
.method protected a(Lcom/tradplus/ads/volley/NetworkResponse;)Lcom/tradplus/ads/volley/Response;
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/tradplus/ads/volley/NetworkResponse;",
")",
"Lcom/tradplus/ads/volley/Response<",
"Lcom/tradplus/ads/pushcenter/response/BaseResponse;",
">;"
}
.end annotation
if-nez p1, :cond_d
:try_start_2
new-instance p1, Lcom/tradplus/ads/volley/NetworkResponse;
const-string v0, "200"
invoke-virtual {v0}, Ljava/lang/String;->getBytes()[B
move-result-object v0
invoke-direct {p1, v0}, Lcom/tradplus/ads/volley/NetworkResponse;-><init>([B)V
:cond_d
new-instance v0, Lcom/tradplus/ads/pushcenter/response/BaseResponse;
const/16 v1, 0xc8
invoke-direct {v0, v1}, Lcom/tradplus/ads/pushcenter/response/BaseResponse;-><init>(I)V
invoke-static {p1}, Lcom/tradplus/ads/volley/toolbox/HttpHeaderParser;->parseCacheHeaders(Lcom/tradplus/ads/volley/NetworkResponse;)Lcom/tradplus/ads/volley/Cache$Entry;
move-result-object p1
invoke-static {v0, p1}, Lcom/tradplus/ads/volley/Response;->success(Ljava/lang/Object;Lcom/tradplus/ads/volley/Cache$Entry;)Lcom/tradplus/ads/volley/Response;
move-result-object p1
:try_end_1c
.catch Ljava/lang/Exception; {:try_start_2 .. :try_end_1c} :catch_1d
return-object p1
:catch_1d
move-exception p1
new-instance v0, Lcom/tradplus/ads/volley/VolleyError;
invoke-virtual {p1}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;
move-result-object p1
invoke-direct {v0, p1}, Lcom/tradplus/ads/volley/VolleyError;-><init>(Ljava/lang/String;)V
invoke-static {v0}, Lcom/tradplus/ads/volley/Response;->error(Lcom/tradplus/ads/volley/VolleyError;)Lcom/tradplus/ads/volley/Response;
move-result-object p1
return-object p1
.end method
.method protected a(Lcom/tradplus/ads/pushcenter/response/BaseResponse;)V
.registers 3
iget-object v0, p0, Lcom/tradplus/ads/pushcenter/http/TrackUrlRequest;->a:Lcom/tradplus/ads/pushcenter/http/TrackUrlRequest$Listener;
invoke-interface {v0, p1}, Lcom/tradplus/ads/pushcenter/http/TrackUrlRequest$Listener;->onSuccess(Lcom/tradplus/ads/pushcenter/response/BaseResponse;)V
return-void
.end method
.method protected synthetic deliverResponse(Ljava/lang/Object;)V
.registers 2
check-cast p1, Lcom/tradplus/ads/pushcenter/response/BaseResponse;
invoke-virtual {p0, p1}, Lcom/tradplus/ads/pushcenter/http/TrackUrlRequest;->a(Lcom/tradplus/ads/pushcenter/response/BaseResponse;)V
return-void
.end method
.method public getListener()Lcom/tradplus/ads/pushcenter/http/TrackUrlRequest$Listener;
.registers 2
iget-object v0, p0, Lcom/tradplus/ads/pushcenter/http/TrackUrlRequest;->a:Lcom/tradplus/ads/pushcenter/http/TrackUrlRequest$Listener;
return-object v0
.end method