PushCenterHttpUtils$2.smali
.class Lcom/tradplus/ads/pushcenter/http/PushCenterHttpUtils$2;
.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;->pushGroupMessage(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:I
.field final synthetic c:Lorg/json/JSONArray;
.field final synthetic d:Lcom/tradplus/ads/pushcenter/http/PushCenterHttpUtils;
# direct methods
.method constructor <init>(Lcom/tradplus/ads/pushcenter/http/PushCenterHttpUtils;IILorg/json/JSONArray;)V
.registers 5
iput-object p1, p0, Lcom/tradplus/ads/pushcenter/http/PushCenterHttpUtils$2;->d:Lcom/tradplus/ads/pushcenter/http/PushCenterHttpUtils;
iput p2, p0, Lcom/tradplus/ads/pushcenter/http/PushCenterHttpUtils$2;->a:I
iput p3, p0, Lcom/tradplus/ads/pushcenter/http/PushCenterHttpUtils$2;->b:I
iput-object p4, p0, Lcom/tradplus/ads/pushcenter/http/PushCenterHttpUtils$2;->c: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$2;->a:I
invoke-virtual {p1, v0}, Lcom/tradplus/ads/pushcenter/utils/PushMessageUtils;->getCacheType(I)Ljava/lang/String;
move-result-object p1
const-string v0, "group 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$2;->d: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$2;->c:Lorg/json/JSONArray;
iget v2, p0, Lcom/tradplus/ads/pushcenter/http/PushCenterHttpUtils$2;->a:I
invoke-virtual {p1, v0, v1, v2}, Lcom/tradplus/ads/pushcenter/PushCenter;->sendGroupMessageToCenter(Landroid/content/Context;Lorg/json/JSONArray;I)V
iget-object p1, p0, Lcom/tradplus/ads/pushcenter/http/PushCenterHttpUtils$2;->d:Lcom/tradplus/ads/pushcenter/http/PushCenterHttpUtils;
const/4 v0, 0x0
invoke-static {p1, v0}, Lcom/tradplus/ads/pushcenter/http/PushCenterHttpUtils;->a(Lcom/tradplus/ads/pushcenter/http/PushCenterHttpUtils;Z)Z
return-void
.end method
.method public onResponse(Lcom/tradplus/ads/pushcenter/response/BaseResponse;)V
.registers 4
iget-object v0, p0, Lcom/tradplus/ads/pushcenter/http/PushCenterHttpUtils$2;->d:Lcom/tradplus/ads/pushcenter/http/PushCenterHttpUtils;
const/4 v1, 0x0
invoke-static {v0, v1}, Lcom/tradplus/ads/pushcenter/http/PushCenterHttpUtils;->a(Lcom/tradplus/ads/pushcenter/http/PushCenterHttpUtils;Z)Z
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "group 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$2;->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
iget-object p1, p0, Lcom/tradplus/ads/pushcenter/http/PushCenterHttpUtils$2;->d:Lcom/tradplus/ads/pushcenter/http/PushCenterHttpUtils;
invoke-static {p1}, Lcom/tradplus/ads/pushcenter/http/PushCenterHttpUtils;->b(Lcom/tradplus/ads/pushcenter/http/PushCenterHttpUtils;)Lcom/tradplus/ads/pushcenter/http/PushCenterHttpUtils$OnPushStatusListener;
move-result-object p1
if-eqz p1, :cond_3f
iget p1, p0, Lcom/tradplus/ads/pushcenter/http/PushCenterHttpUtils$2;->b:I
const/16 v0, 0x64
if-ne p1, v0, :cond_3f
iget-object p1, p0, Lcom/tradplus/ads/pushcenter/http/PushCenterHttpUtils$2;->d:Lcom/tradplus/ads/pushcenter/http/PushCenterHttpUtils;
invoke-static {p1}, Lcom/tradplus/ads/pushcenter/http/PushCenterHttpUtils;->b(Lcom/tradplus/ads/pushcenter/http/PushCenterHttpUtils;)Lcom/tradplus/ads/pushcenter/http/PushCenterHttpUtils$OnPushStatusListener;
move-result-object p1
invoke-interface {p1}, Lcom/tradplus/ads/pushcenter/http/PushCenterHttpUtils$OnPushStatusListener;->onPushEnd()V
:cond_3f
return-void
.end method