PushCenterHttpUtils$1.smali
.class Lcom/tradplus/ads/pushcenter/http/PushCenterHttpUtils$1;
.super Ljava/lang/Object;
# interfaces
.implements Lcom/tradplus/ads/pushcenter/http/MessageRequest$Listener;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/tradplus/ads/pushcenter/http/PushCenterHttpUtils;->push(Landroid/content/Context;Lorg/json/JSONArray;I)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = null
.end annotation
# instance fields
.field final synthetic a:I
.field final synthetic b:Lorg/json/JSONArray;
.field final synthetic c:Lcom/tradplus/ads/pushcenter/http/PushCenterHttpUtils;
# direct methods
.method constructor <init>(Lcom/tradplus/ads/pushcenter/http/PushCenterHttpUtils;ILorg/json/JSONArray;)V
.registers 4
iput-object p1, p0, Lcom/tradplus/ads/pushcenter/http/PushCenterHttpUtils$1;->c:Lcom/tradplus/ads/pushcenter/http/PushCenterHttpUtils;
iput p2, p0, Lcom/tradplus/ads/pushcenter/http/PushCenterHttpUtils$1;->a:I
iput-object p3, p0, Lcom/tradplus/ads/pushcenter/http/PushCenterHttpUtils$1;->b:Lorg/json/JSONArray;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public onErrorResponse(Lcom/tradplus/ads/volley/VolleyError;)V
.registers 5
invoke-static {}, Lcom/tradplus/ads/pushcenter/utils/PushMessageUtils;->getInstance()Lcom/tradplus/ads/pushcenter/utils/PushMessageUtils;
move-result-object p1
iget v0, p0, Lcom/tradplus/ads/pushcenter/http/PushCenterHttpUtils$1;->a:I
invoke-virtual {p1, v0}, Lcom/tradplus/ads/pushcenter/utils/PushMessageUtils;->getCacheType(I)Ljava/lang/String;
move-result-object p1
const-string v0, "push failed"
invoke-static {v0, p1}, Lcom/tradplus/ads/common/util/LogUtil;->ownShow(Ljava/lang/String;Ljava/lang/String;)V
invoke-static {}, Lcom/tradplus/ads/pushcenter/PushCenter;->getInstance()Lcom/tradplus/ads/pushcenter/PushCenter;
move-result-object p1
iget-object v0, p0, Lcom/tradplus/ads/pushcenter/http/PushCenterHttpUtils$1;->c:Lcom/tradplus/ads/pushcenter/http/PushCenterHttpUtils;
invoke-static {v0}, Lcom/tradplus/ads/pushcenter/http/PushCenterHttpUtils;->a(Lcom/tradplus/ads/pushcenter/http/PushCenterHttpUtils;)Landroid/content/Context;
move-result-object v0
iget-object v1, p0, Lcom/tradplus/ads/pushcenter/http/PushCenterHttpUtils$1;->b:Lorg/json/JSONArray;
iget v2, p0, Lcom/tradplus/ads/pushcenter/http/PushCenterHttpUtils$1;->a:I
invoke-virtual {p1, v0, v1, v2}, Lcom/tradplus/ads/pushcenter/PushCenter;->sendMessageToCenter(Landroid/content/Context;Lorg/json/JSONArray;I)V
return-void
.end method
.method public onResponse(Lcom/tradplus/ads/pushcenter/response/BaseResponse;)V
.registers 4
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "getStatusCode = "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p1}, Lcom/tradplus/ads/pushcenter/response/BaseResponse;->getStatusCode()I
move-result p1
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
invoke-static {}, Lcom/tradplus/ads/pushcenter/utils/PushMessageUtils;->getInstance()Lcom/tradplus/ads/pushcenter/utils/PushMessageUtils;
move-result-object v0
iget v1, p0, Lcom/tradplus/ads/pushcenter/http/PushCenterHttpUtils$1;->a:I
invoke-virtual {v0, v1}, Lcom/tradplus/ads/pushcenter/utils/PushMessageUtils;->getCacheType(I)Ljava/lang/String;
move-result-object v0
invoke-static {p1, v0}, Lcom/tradplus/ads/common/util/LogUtil;->ownShow(Ljava/lang/String;Ljava/lang/String;)V
return-void
.end method