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


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/in2wow/sdk/a/a;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x9
    name = "b"
.end annotation


# instance fields
.field public a:Ljava/lang/String;

.field public b:Ljava/util/Map;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Map<",
            "Lcom/in2wow/sdk/i/c$k;",
            "Lcom/in2wow/sdk/a/a$a;",
            ">;"
        }
    .end annotation
.end field


# direct methods
.method public constructor <init>()V
    .locals 1

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

    const/4 v0, 0x0

    .line 254
    iput-object v0, p0, Lcom/in2wow/sdk/a/a$b;->a:Ljava/lang/String;

    .line 255
    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    iput-object v0, p0, Lcom/in2wow/sdk/a/a$b;->b:Ljava/util/Map;

    return-void
.end method

.method public static a(Lorg/json/JSONObject;)Lcom/in2wow/sdk/a/a$b;
    .locals 6

    const/4 v0, 0x0

    if-nez p0, :cond_0

    return-object v0

    .line 269
    :cond_0
    invoke-virtual {p0}, Lorg/json/JSONObject;->names()Lorg/json/JSONArray;

    move-result-object v1

    .line 270
    new-instance v2, Lcom/in2wow/sdk/a/a$b;

    invoke-direct {v2}, Lcom/in2wow/sdk/a/a$b;-><init>()V

    const-string v3, "name"

    .line 271
    invoke-virtual {p0, v3}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    iput-object v3, v2, Lcom/in2wow/sdk/a/a$b;->a:Ljava/lang/String;

    .line 272
    iget-object v3, v2, Lcom/in2wow/sdk/a/a$b;->a:Ljava/lang/String;

    if-eqz v3, :cond_4

    if-nez v1, :cond_1

    goto :goto_2

    :cond_1
    const/4 v0, 0x0

    .line 275
    :goto_0
    invoke-virtual {v1}, Lorg/json/JSONArray;->length()I

    move-result v3

    if-lt v0, v3, :cond_2

    return-object v2

    .line 277
    :cond_2
    :try_start_0
    invoke-virtual {v1, v0}, Lorg/json/JSONArray;->getString(I)Ljava/lang/String;

    move-result-object v3

    const-string v4, "name"

    .line 278
    invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v4

    if-eqz v4, :cond_3

    goto :goto_1

    .line 281
    :cond_3
    iget-object v4, v2, Lcom/in2wow/sdk/a/a$b;->b:Ljava/util/Map;

    invoke-virtual {v3}, Ljava/lang/String;->toUpperCase()Ljava/lang/String;

    move-result-object v5

    invoke-static {v5}, Lcom/in2wow/sdk/i/c$k;->valueOf(Ljava/lang/String;)Lcom/in2wow/sdk/i/c$k;

    move-result-object v5

    invoke-virtual {p0, v3}, Lorg/json/JSONObject;->getJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v3

    invoke-static {v3}, Lcom/in2wow/sdk/a/a$a;->a(Lorg/json/JSONObject;)Lcom/in2wow/sdk/a/a$a;

    move-result-object v3

    invoke-interface {v4, v5, v3}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_1

    :catch_0
    move-exception v3

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

    :goto_1
    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    :cond_4
    :goto_2
    return-object v0
.end method


# virtual methods
.method public a(Lcom/in2wow/sdk/i/c$k;)Lcom/in2wow/sdk/a/a$a;
    .locals 1

    .line 290
    iget-object v0, p0, Lcom/in2wow/sdk/a/a$b;->b:Ljava/util/Map;

    invoke-interface {v0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Lcom/in2wow/sdk/a/a$a;

    return-object p1
.end method
