b.smali
.class Lcom/beetalk/sdk/plugin/a/f/b;
.super Ljava/lang/Object;
.source "DeleteTagPlugin.java"
# interfaces
.implements Ljava/util/concurrent/Callable;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/beetalk/sdk/plugin/a/f/c;->a(Landroid/app/Activity;Lcom/beetalk/sdk/data/i;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Object;",
"Ljava/util/concurrent/Callable<",
"Lcom/beetalk/sdk/plugin/g;",
">;"
}
.end annotation
# instance fields
.field final synthetic a:Landroid/app/Activity;
.field final synthetic b:Lcom/beetalk/sdk/data/i;
.field final synthetic c:Lcom/beetalk/sdk/plugin/a/f/c;
# direct methods
.method constructor <init>(Lcom/beetalk/sdk/plugin/a/f/c;Landroid/app/Activity;Lcom/beetalk/sdk/data/i;)V
.registers 4
.line 1
iput-object p1, p0, Lcom/beetalk/sdk/plugin/a/f/b;->c:Lcom/beetalk/sdk/plugin/a/f/c;
iput-object p2, p0, Lcom/beetalk/sdk/plugin/a/f/b;->a:Landroid/app/Activity;
iput-object p3, p0, Lcom/beetalk/sdk/plugin/a/f/b;->b:Lcom/beetalk/sdk/data/i;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public call()Lcom/beetalk/sdk/plugin/g;
.registers 7
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Exception;
}
.end annotation
.line 2
new-instance v0, Lcom/beetalk/sdk/plugin/g;
invoke-direct {v0}, Lcom/beetalk/sdk/plugin/g;-><init>()V
.line 3
iget-object v1, p0, Lcom/beetalk/sdk/plugin/a/f/b;->c:Lcom/beetalk/sdk/plugin/a/f/c;
invoke-virtual {v1}, Lcom/beetalk/sdk/plugin/a/f/c;->b()Ljava/lang/String;
move-result-object v1
iput-object v1, v0, Lcom/beetalk/sdk/plugin/g;->c:Ljava/lang/String;
.line 4
:try_start_d
iget-object v1, p0, Lcom/beetalk/sdk/plugin/a/f/b;->a:Landroid/app/Activity;
invoke-virtual {v1}, Landroid/app/Activity;->getApplicationContext()Landroid/content/Context;
move-result-object v1
iget-object v2, p0, Lcom/beetalk/sdk/plugin/a/f/b;->b:Lcom/beetalk/sdk/data/i;
iget-object v2, v2, Lcom/beetalk/sdk/data/i;->a:Ljava/lang/String;
iget-object v3, p0, Lcom/beetalk/sdk/plugin/a/f/b;->b:Lcom/beetalk/sdk/data/i;
iget-object v3, v3, Lcom/beetalk/sdk/data/i;->b:Ljava/lang/String;
iget-object v4, p0, Lcom/beetalk/sdk/plugin/a/f/b;->a:Landroid/app/Activity;
.line 5
invoke-static {v4}, Lcom/garena/android/gpns/g/c;->a(Landroid/content/Context;)J
move-result-wide v4
invoke-static {v4, v5}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;
move-result-object v4
iget-object v5, p0, Lcom/beetalk/sdk/plugin/a/f/b;->b:Lcom/beetalk/sdk/data/i;
iget-object v5, v5, Lcom/beetalk/sdk/data/i;->c:Ljava/lang/String;
.line 6
invoke-static {v1, v2, v3, v4, v5}, Lcom/garena/android/beepost/service/a;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Z
move-result v1
if-eqz v1, :cond_31
const/4 v1, 0x0
goto :goto_3b
.line 7
:cond_31
sget-object v1, Lcom/garena/pay/android/GGErrorCode;->NETWORK_EXCEPTION:Lcom/garena/pay/android/GGErrorCode;
invoke-virtual {v1}, Lcom/garena/pay/android/GGErrorCode;->getCode()Ljava/lang/Integer;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I
move-result v1
:goto_3b
iput v1, v0, Lcom/beetalk/sdk/plugin/g;->d:I
:try_end_3d
.catch Ljava/io/IOException; {:try_start_d .. :try_end_3d} :catch_52
.catch Lorg/json/JSONException; {:try_start_d .. :try_end_3d} :catch_3e
goto :goto_65
:catch_3e
move-exception v1
.line 8
sget-object v2, Lcom/garena/pay/android/GGErrorCode;->ERROR:Lcom/garena/pay/android/GGErrorCode;
invoke-virtual {v2}, Lcom/garena/pay/android/GGErrorCode;->getCode()Ljava/lang/Integer;
move-result-object v2
invoke-virtual {v2}, Ljava/lang/Integer;->intValue()I
move-result v2
iput v2, v0, Lcom/beetalk/sdk/plugin/g;->d:I
.line 9
invoke-virtual {v1}, Lorg/json/JSONException;->getMessage()Ljava/lang/String;
move-result-object v1
iput-object v1, v0, Lcom/beetalk/sdk/plugin/g;->b:Ljava/lang/String;
goto :goto_65
:catch_52
move-exception v1
.line 10
sget-object v2, Lcom/garena/pay/android/GGErrorCode;->NETWORK_EXCEPTION:Lcom/garena/pay/android/GGErrorCode;
invoke-virtual {v2}, Lcom/garena/pay/android/GGErrorCode;->getCode()Ljava/lang/Integer;
move-result-object v2
invoke-virtual {v2}, Ljava/lang/Integer;->intValue()I
move-result v2
iput v2, v0, Lcom/beetalk/sdk/plugin/g;->d:I
.line 11
invoke-virtual {v1}, Ljava/io/IOException;->getMessage()Ljava/lang/String;
move-result-object v1
iput-object v1, v0, Lcom/beetalk/sdk/plugin/g;->b:Ljava/lang/String;
:goto_65
return-object v0
.end method
.method public bridge synthetic call()Ljava/lang/Object;
.registers 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Exception;
}
.end annotation
.line 1
invoke-virtual {p0}, Lcom/beetalk/sdk/plugin/a/f/b;->call()Lcom/beetalk/sdk/plugin/g;
move-result-object v0
return-object v0
.end method