.class Lcom/in2wow/sdk/d/a$6;
.super Ljava/lang/Object;
.source "SourceFile"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/in2wow/sdk/d/a;->c(Ljava/lang/String;Ljava/lang/String;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Lcom/in2wow/sdk/d/a;

.field private final synthetic b:Ljava/lang/String;

.field private final synthetic c:Ljava/lang/String;


# direct methods
.method constructor <init>(Lcom/in2wow/sdk/d/a;Ljava/lang/String;Ljava/lang/String;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/in2wow/sdk/d/a$6;->a:Lcom/in2wow/sdk/d/a;

    iput-object p2, p0, Lcom/in2wow/sdk/d/a$6;->b:Ljava/lang/String;

    iput-object p3, p0, Lcom/in2wow/sdk/d/a$6;->c:Ljava/lang/String;

    .line 342
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 7

    .line 345
    iget-object v0, p0, Lcom/in2wow/sdk/d/a$6;->a:Lcom/in2wow/sdk/d/a;

    invoke-static {v0}, Lcom/in2wow/sdk/d/a;->a(Lcom/in2wow/sdk/d/a;)Z

    move-result v0

    if-nez v0, :cond_0

    return-void

    .line 350
    :cond_0
    :try_start_0
    new-instance v0, Lorg/json/JSONObject;

    invoke-direct {v0}, Lorg/json/JSONObject;-><init>()V

    const-string v1, "uid"

    .line 351
    iget-object v2, p0, Lcom/in2wow/sdk/d/a$6;->a:Lcom/in2wow/sdk/d/a;

    invoke-static {v2}, Lcom/in2wow/sdk/d/a;->d(Lcom/in2wow/sdk/d/a;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string v1, "type"

    const-string v2, "client-reply"

    .line 352
    invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string v1, "command"

    .line 353
    iget-object v2, p0, Lcom/in2wow/sdk/d/a$6;->b:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string v1, "replyTo"

    .line 354
    iget-object v2, p0, Lcom/in2wow/sdk/d/a$6;->c:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 356
    new-instance v1, Lorg/json/JSONObject;

    invoke-direct {v1}, Lorg/json/JSONObject;-><init>()V

    .line 358
    iget-object v2, p0, Lcom/in2wow/sdk/d/a$6;->a:Lcom/in2wow/sdk/d/a;

    invoke-static {v2}, Lcom/in2wow/sdk/d/a;->f(Lcom/in2wow/sdk/d/a;)Lcom/in2wow/sdk/h/c;

    move-result-object v2

    invoke-virtual {v2}, Lcom/in2wow/sdk/h/c;->R()Lcom/in2wow/sdk/i/m;

    move-result-object v2

    if-eqz v2, :cond_1

    const-string v3, "stored"

    .line 360
    invoke-static {v2}, Lcom/in2wow/sdk/i/m;->a(Lcom/in2wow/sdk/i/m;)Lorg/json/JSONObject;

    move-result-object v2

    invoke-virtual {v1, v3, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    goto :goto_0

    :cond_1
    const-string v2, "stored"

    .line 363
    new-instance v3, Lorg/json/JSONObject;

    invoke-direct {v3}, Lorg/json/JSONObject;-><init>()V

    invoke-virtual {v1, v2, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 366
    :goto_0
    iget-object v2, p0, Lcom/in2wow/sdk/d/a$6;->a:Lcom/in2wow/sdk/d/a;

    invoke-static {v2}, Lcom/in2wow/sdk/d/a;->g(Lcom/in2wow/sdk/d/a;)Lcom/in2wow/sdk/b/l;

    move-result-object v2

    invoke-virtual {v2}, Lcom/in2wow/sdk/b/l;->s()Ljava/util/Map;

    move-result-object v2

    if-eqz v2, :cond_3

    .line 368
    new-instance v3, Lorg/json/JSONObject;

    invoke-direct {v3}, Lorg/json/JSONObject;-><init>()V

    .line 369
    invoke-interface {v2}, Ljava/util/Map;->keySet()Ljava/util/Set;

    move-result-object v4

    invoke-interface {v4}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object v4

    :goto_1
    invoke-interface {v4}, Ljava/util/Iterator;->hasNext()Z

    move-result v5

    if-nez v5, :cond_2

    const-string v2, "pending"

    .line 372
    invoke-virtual {v1, v2, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    goto :goto_2

    .line 369
    :cond_2
    invoke-interface {v4}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Ljava/lang/String;

    .line 370
    invoke-interface {v2, v5}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v6

    invoke-virtual {v3, v5, v6}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    goto :goto_1

    :cond_3
    const-string v2, "pending"

    .line 375
    new-instance v3, Lorg/json/JSONObject;

    invoke-direct {v3}, Lorg/json/JSONObject;-><init>()V

    invoke-virtual {v1, v2, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    :goto_2
    const-string v2, "message"

    .line 378
    invoke-virtual {v0, v2, v1}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 379
    iget-object v1, p0, Lcom/in2wow/sdk/d/a$6;->a:Lcom/in2wow/sdk/d/a;

    invoke-static {v1}, Lcom/in2wow/sdk/d/a;->e(Lcom/in2wow/sdk/d/a;)Lcom/in2wow/sdk/d/c;

    move-result-object v1

    invoke-virtual {v0}, Lorg/json/JSONObject;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v1, v0}, Lcom/in2wow/sdk/d/c;->a(Ljava/lang/String;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_3

    :catch_0
    move-exception v0

    .line 382
    sget-boolean v1, Lcom/in2wow/sdk/a/b;->e:Z

    if-eqz v1, :cond_4

    .line 383
    invoke-static {v0}, Lcom/in2wow/sdk/m/j;->a(Ljava/lang/Throwable;)V

    :cond_4
    :goto_3
    return-void
.end method
