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


# instance fields
.field private a:J

.field private b:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Lcom/in2wow/sdk/i/i;",
            ">;"
        }
    .end annotation
.end field

.field private c:Ljava/util/Map;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Map<",
            "Ljava/lang/String;",
            "Lcom/in2wow/sdk/i/i;",
            ">;"
        }
    .end annotation
.end field


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

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

    const/4 v0, 0x0

    .line 12
    iput-object v0, p0, Lcom/in2wow/sdk/i/k;->b:Ljava/util/List;

    .line 13
    iput-object v0, p0, Lcom/in2wow/sdk/i/k;->c:Ljava/util/Map;

    .line 33
    new-instance v0, Ljava/util/ArrayList;

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

    iput-object v0, p0, Lcom/in2wow/sdk/i/k;->b:Ljava/util/List;

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

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

    iput-object v0, p0, Lcom/in2wow/sdk/i/k;->c:Ljava/util/Map;

    const-wide/16 v0, 0x0

    .line 35
    iput-wide v0, p0, Lcom/in2wow/sdk/i/k;->a:J

    return-void
.end method

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

    .line 16
    :try_start_0
    new-instance v0, Lcom/in2wow/sdk/i/k;

    invoke-direct {v0}, Lcom/in2wow/sdk/i/k;-><init>()V

    const-string v1, "updated_time"

    .line 17
    invoke-virtual {p0, v1}, Lorg/json/JSONObject;->getLong(Ljava/lang/String;)J

    move-result-wide v1

    iput-wide v1, v0, Lcom/in2wow/sdk/i/k;->a:J

    const-string v1, "groups"

    .line 18
    invoke-virtual {p0, v1}, Lorg/json/JSONObject;->getJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object p0

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

    move-result v1

    const/4 v2, 0x0

    :goto_0
    if-lt v2, v1, :cond_0

    return-object v0

    .line 21
    :cond_0
    invoke-virtual {p0, v2}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v3

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

    move-result-object v3

    if-eqz v3, :cond_1

    .line 24
    invoke-virtual {v0, v3}, Lcom/in2wow/sdk/i/k;->a(Lcom/in2wow/sdk/i/i;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

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

    goto :goto_0

    :catch_0
    const/4 p0, 0x0

    return-object p0
.end method


# virtual methods
.method public a()J
    .locals 2

    .line 38
    iget-wide v0, p0, Lcom/in2wow/sdk/i/k;->a:J

    return-wide v0
.end method

.method public a(Ljava/lang/String;)Lcom/in2wow/sdk/i/i;
    .locals 3

    .line 50
    iget-object v0, p0, Lcom/in2wow/sdk/i/k;->b:Ljava/util/List;

    if-eqz v0, :cond_2

    if-eqz p1, :cond_2

    .line 51
    iget-object v0, p0, Lcom/in2wow/sdk/i/k;->b:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v0

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

    move-result v1

    if-nez v1, :cond_1

    goto :goto_0

    :cond_1
    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/in2wow/sdk/i/i;

    .line 52
    invoke-virtual {v1}, Lcom/in2wow/sdk/i/i;->a()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v2, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_0

    return-object v1

    :cond_2
    :goto_0
    const/4 p1, 0x0

    return-object p1
.end method

.method public a(Lcom/in2wow/sdk/i/i;)V
    .locals 3

    .line 44
    iget-object v0, p0, Lcom/in2wow/sdk/i/k;->b:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 45
    invoke-virtual {p1}, Lcom/in2wow/sdk/i/i;->d()Ljava/util/List;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v0

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

    move-result v1

    if-nez v1, :cond_0

    return-void

    :cond_0
    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/in2wow/sdk/i/h;

    .line 46
    iget-object v2, p0, Lcom/in2wow/sdk/i/k;->c:Ljava/util/Map;

    invoke-virtual {v1}, Lcom/in2wow/sdk/i/h;->a()Ljava/lang/String;

    move-result-object v1

    invoke-interface {v2, v1, p1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    goto :goto_0
.end method

.method public b(Ljava/lang/String;)Lcom/in2wow/sdk/i/i;
    .locals 1

    .line 60
    iget-object v0, p0, Lcom/in2wow/sdk/i/k;->c:Ljava/util/Map;

    if-eqz v0, :cond_0

    .line 61
    iget-object v0, p0, Lcom/in2wow/sdk/i/k;->c: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/i/i;

    return-object p1

    :cond_0
    const/4 p1, 0x0

    return-object p1
.end method
