PushCenter$11.smali
.class Lcom/tradplus/ads/pushcenter/PushCenter$11;
.super Ljava/lang/Object;
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/tradplus/ads/pushcenter/PushCenter;->sendMessageToCenter(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:Lorg/json/JSONArray;
.field final synthetic b:I
.field final synthetic c:Lcom/tradplus/ads/pushcenter/PushCenter;
# direct methods
.method constructor <init>(Lcom/tradplus/ads/pushcenter/PushCenter;Lorg/json/JSONArray;I)V
.registers 4
iput-object p1, p0, Lcom/tradplus/ads/pushcenter/PushCenter$11;->c:Lcom/tradplus/ads/pushcenter/PushCenter;
iput-object p2, p0, Lcom/tradplus/ads/pushcenter/PushCenter$11;->a:Lorg/json/JSONArray;
iput p3, p0, Lcom/tradplus/ads/pushcenter/PushCenter$11;->b:I
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public run()V
.registers 6
invoke-static {}, Lcom/tradplus/ads/mobileads/api/TPMessageManager;->getInstance()Lcom/tradplus/ads/mobileads/api/TPMessageManager;
move-result-object v0
invoke-virtual {v0}, Lcom/tradplus/ads/mobileads/api/TPMessageManager;->isCanUploadMessage()Z
move-result v0
if-nez v0, :cond_b
return-void
:cond_b
iget-object v0, p0, Lcom/tradplus/ads/pushcenter/PushCenter$11;->a:Lorg/json/JSONArray;
if-eqz v0, :cond_3c
invoke-virtual {v0}, Lorg/json/JSONArray;->length()I
move-result v0
if-lez v0, :cond_3c
const/4 v0, 0x0
:goto_16
iget-object v1, p0, Lcom/tradplus/ads/pushcenter/PushCenter$11;->a:Lorg/json/JSONArray;
invoke-virtual {v1}, Lorg/json/JSONArray;->length()I
move-result v1
if-ge v0, v1, :cond_3c
const/4 v1, 0x0
:try_start_1f
iget-object v2, p0, Lcom/tradplus/ads/pushcenter/PushCenter$11;->a:Lorg/json/JSONArray;
invoke-virtual {v2, v0}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;
move-result-object v1
:try_end_25
.catch Lorg/json/JSONException; {:try_start_1f .. :try_end_25} :catch_26
goto :goto_2a
:catch_26
move-exception v2
invoke-virtual {v2}, Lorg/json/JSONException;->printStackTrace()V
:goto_2a
invoke-static {}, Lcom/tradplus/ads/pushcenter/utils/PushMessageUtils;->getInstance()Lcom/tradplus/ads/pushcenter/utils/PushMessageUtils;
move-result-object v2
iget-object v3, p0, Lcom/tradplus/ads/pushcenter/PushCenter$11;->c:Lcom/tradplus/ads/pushcenter/PushCenter;
invoke-static {v3}, Lcom/tradplus/ads/pushcenter/PushCenter;->a(Lcom/tradplus/ads/pushcenter/PushCenter;)Landroid/content/Context;
move-result-object v3
iget v4, p0, Lcom/tradplus/ads/pushcenter/PushCenter$11;->b:I
invoke-virtual {v2, v3, v1, v4}, Lcom/tradplus/ads/pushcenter/utils/PushMessageUtils;->setPushMessageArray(Landroid/content/Context;Lorg/json/JSONObject;I)V
add-int/lit8 v0, v0, 0x1
goto :goto_16
:cond_3c
return-void
.end method