.class public Lcom/in2wow/sdk/i/e;
.super Ljava/lang/Object;
.source "SourceFile"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/in2wow/sdk/i/e$a;
    }
.end annotation


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

.field private b:[Ljava/lang/String;

.field private c:[Lcom/in2wow/sdk/i/e$a;

.field private d:I

.field private e:I


# direct methods
.method public constructor <init>(Ljava/lang/String;[Ljava/lang/String;[Lcom/in2wow/sdk/i/e$a;II)V
    .locals 1

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

    const/4 v0, 0x0

    .line 14
    iput-object v0, p0, Lcom/in2wow/sdk/i/e;->a:Ljava/lang/String;

    .line 16
    iput-object v0, p0, Lcom/in2wow/sdk/i/e;->b:[Ljava/lang/String;

    .line 17
    iput-object v0, p0, Lcom/in2wow/sdk/i/e;->c:[Lcom/in2wow/sdk/i/e$a;

    const v0, 0x7fffffff

    .line 18
    iput v0, p0, Lcom/in2wow/sdk/i/e;->d:I

    const/high16 v0, -0x80000000

    .line 19
    iput v0, p0, Lcom/in2wow/sdk/i/e;->e:I

    .line 86
    iput-object p1, p0, Lcom/in2wow/sdk/i/e;->a:Ljava/lang/String;

    .line 87
    iput-object p2, p0, Lcom/in2wow/sdk/i/e;->b:[Ljava/lang/String;

    .line 88
    iput-object p3, p0, Lcom/in2wow/sdk/i/e;->c:[Lcom/in2wow/sdk/i/e$a;

    .line 89
    iput p4, p0, Lcom/in2wow/sdk/i/e;->d:I

    .line 90
    iput p5, p0, Lcom/in2wow/sdk/i/e;->e:I

    return-void
.end method

.method public static a(Lorg/json/JSONObject;)Lcom/in2wow/sdk/i/e;
    .locals 10

    const/4 v0, 0x0

    if-nez p0, :cond_0

    return-object v0

    :cond_0
    const v1, 0x7fffffff

    const/high16 v2, -0x80000000

    :try_start_0
    const-string v3, "name"

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

    move-result-object v5

    const-string v3, "rules"

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

    move-result-object p0

    if-eqz p0, :cond_4

    .line 47
    invoke-virtual {p0}, Lorg/json/JSONArray;->length()I

    move-result v3

    .line 49
    new-array v4, v3, [Lcom/in2wow/sdk/i/e$a;

    .line 53
    new-array v6, v3, [Ljava/lang/String;

    const/4 v7, 0x0

    :goto_0
    if-lt v7, v3, :cond_1

    move v8, v1

    move v9, v2

    move-object v7, v4

    goto :goto_1

    .line 58
    :cond_1
    invoke-virtual {p0, v7}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v8

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

    move-result-object v8

    if-eqz v8, :cond_3

    .line 60
    invoke-virtual {v8}, Lcom/in2wow/sdk/i/e$a;->c()Ljava/lang/String;

    move-result-object v9

    aput-object v9, v6, v7

    .line 61
    aput-object v8, v4, v7

    .line 63
    invoke-virtual {v8}, Lcom/in2wow/sdk/i/e$a;->a()I

    move-result v9

    if-le v1, v9, :cond_2

    .line 64
    invoke-virtual {v8}, Lcom/in2wow/sdk/i/e$a;->a()I

    move-result v1

    .line 67
    :cond_2
    invoke-virtual {v8}, Lcom/in2wow/sdk/i/e$a;->b()I

    move-result v9

    if-ge v2, v9, :cond_3

    .line 68
    invoke-virtual {v8}, Lcom/in2wow/sdk/i/e$a;->b()I

    move-result v2

    :cond_3
    add-int/lit8 v7, v7, 0x1

    goto :goto_0

    :cond_4
    move-object v6, v0

    move-object v7, v6

    const v8, 0x7fffffff

    const/high16 v9, -0x80000000

    .line 75
    :goto_1
    invoke-virtual {v5}, Ljava/lang/String;->length()I

    move-result p0

    if-lez p0, :cond_5

    if-eqz v7, :cond_5

    .line 76
    new-instance p0, Lcom/in2wow/sdk/i/e;

    move-object v4, p0

    invoke-direct/range {v4 .. v9}, Lcom/in2wow/sdk/i/e;-><init>(Ljava/lang/String;[Ljava/lang/String;[Lcom/in2wow/sdk/i/e$a;II)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_2

    :catch_0
    :cond_5
    move-object p0, v0

    :goto_2
    return-object p0
.end method


# virtual methods
.method public a(I)Lcom/in2wow/sdk/i/e$a;
    .locals 5

    .line 111
    iget-object v0, p0, Lcom/in2wow/sdk/i/e;->c:[Lcom/in2wow/sdk/i/e$a;

    array-length v1, v0

    const/4 v2, 0x0

    :goto_0
    if-lt v2, v1, :cond_0

    const/4 p1, 0x0

    return-object p1

    :cond_0
    aget-object v3, v0, v2

    .line 115
    invoke-virtual {v3, p1}, Lcom/in2wow/sdk/i/e$a;->a(I)Z

    move-result v4

    if-eqz v4, :cond_1

    return-object v3

    :cond_1
    add-int/lit8 v2, v2, 0x1

    goto :goto_0
.end method

.method public a()Ljava/lang/String;
    .locals 1

    .line 94
    iget-object v0, p0, Lcom/in2wow/sdk/i/e;->a:Ljava/lang/String;

    return-object v0
.end method

.method public b()[Ljava/lang/String;
    .locals 1

    .line 98
    iget-object v0, p0, Lcom/in2wow/sdk/i/e;->b:[Ljava/lang/String;

    return-object v0
.end method

.method public c()[I
    .locals 3

    .line 102
    iget v0, p0, Lcom/in2wow/sdk/i/e;->d:I

    const v1, 0x7fffffff

    if-ne v0, v1, :cond_0

    const/4 v0, 0x0

    return-object v0

    :cond_0
    const/4 v0, 0x2

    .line 105
    new-array v0, v0, [I

    const/4 v1, 0x0

    iget v2, p0, Lcom/in2wow/sdk/i/e;->d:I

    aput v2, v0, v1

    const/4 v1, 0x1

    iget v2, p0, Lcom/in2wow/sdk/i/e;->e:I

    aput v2, v0, v1

    return-object v0
.end method
