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

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/in2wow/sdk/d/a;->b(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$5;->a:Lcom/in2wow/sdk/d/a;

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

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

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

    return-void
.end method


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

    .line 304
    iget-object v0, p0, Lcom/in2wow/sdk/d/a$5;->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 309
    :cond_0
    :try_start_0
    new-instance v0, Lorg/json/JSONObject;

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

    const-string v1, "uid"

    .line 310
    iget-object v2, p0, Lcom/in2wow/sdk/d/a$5;->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 311
    invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string v1, "command"

    .line 312
    iget-object v2, p0, Lcom/in2wow/sdk/d/a$5;->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 313
    iget-object v2, p0, Lcom/in2wow/sdk/d/a$5;->c:Ljava/lang/String;

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

    .line 314
    new-instance v1, Lorg/json/JSONArray;

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

    .line 315
    invoke-static {}, Lcom/in2wow/sdk/m/o;->e()Z

    move-result v2

    if-eqz v2, :cond_2

    .line 316
    new-instance v2, Ljava/io/File;

    iget-object v3, p0, Lcom/in2wow/sdk/d/a$5;->a:Lcom/in2wow/sdk/d/a;

    invoke-static {v3}, Lcom/in2wow/sdk/d/a;->c(Lcom/in2wow/sdk/d/a;)Landroid/content/Context;

    move-result-object v3

    invoke-static {v3}, Lcom/in2wow/sdk/m/o;->a(Landroid/content/Context;)Lcom/in2wow/sdk/m/o;

    move-result-object v3

    invoke-virtual {v3}, Lcom/in2wow/sdk/m/o;->a()Ljava/lang/String;

    move-result-object v3

    invoke-direct {v2, v3}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 317
    invoke-virtual {v2}, Ljava/io/File;->exists()Z

    move-result v3

    if-eqz v3, :cond_2

    .line 318
    invoke-virtual {v2}, Ljava/io/File;->listFiles()[Ljava/io/File;

    move-result-object v2

    array-length v3, v2

    const/4 v4, 0x0

    :goto_0
    if-lt v4, v3, :cond_1

    goto :goto_1

    :cond_1
    aget-object v5, v2, v4

    .line 319
    new-instance v6, Lorg/json/JSONObject;

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

    const-string v7, "name"

    .line 320
    invoke-virtual {v5}, Ljava/io/File;->getName()Ljava/lang/String;

    move-result-object v8

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

    const-string v7, "size"

    .line 321
    invoke-virtual {v5}, Ljava/io/File;->length()J

    move-result-wide v8

    invoke-virtual {v6, v7, v8, v9}, Lorg/json/JSONObject;->put(Ljava/lang/String;J)Lorg/json/JSONObject;

    const-string v7, "updated_time"

    .line 322
    invoke-virtual {v5}, Ljava/io/File;->lastModified()J

    move-result-wide v8

    invoke-virtual {v6, v7, v8, v9}, Lorg/json/JSONObject;->put(Ljava/lang/String;J)Lorg/json/JSONObject;

    .line 324
    invoke-virtual {v1, v6}, Lorg/json/JSONArray;->put(Ljava/lang/Object;)Lorg/json/JSONArray;

    add-int/lit8 v4, v4, 0x1

    goto :goto_0

    :cond_2
    :goto_1
    const-string v2, "message"

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

    .line 330
    iget-object v1, p0, Lcom/in2wow/sdk/d/a$5;->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_2

    :catch_0
    move-exception v0

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

    if-eqz v1, :cond_3

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

    :cond_3
    :goto_2
    return-void
.end method
