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


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

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

.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/in2wow/sdk/i/c$m$a;
    }
.end annotation


# instance fields
.field private a:I

.field private b:D

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


# direct methods
.method public constructor <init>(IDLjava/util/Map;)V
    .locals 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(ID",
            "Ljava/util/Map<",
            "Ljava/lang/Integer;",
            "Lcom/in2wow/sdk/i/c$m$a;",
            ">;)V"
        }
    .end annotation

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

    const/4 v0, -0x1

    .line 802
    iput v0, p0, Lcom/in2wow/sdk/i/c$m;->a:I

    const-wide/16 v0, 0x0

    .line 803
    iput-wide v0, p0, Lcom/in2wow/sdk/i/c$m;->b:D

    const/4 v0, 0x0

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

    .line 864
    iput p1, p0, Lcom/in2wow/sdk/i/c$m;->a:I

    .line 865
    iput-wide p2, p0, Lcom/in2wow/sdk/i/c$m;->b:D

    .line 866
    iput-object p4, p0, Lcom/in2wow/sdk/i/c$m;->c:Ljava/util/Map;

    return-void
.end method

.method public static a(Lorg/json/JSONObject;)Lcom/in2wow/sdk/i/c$m;
    .locals 12
    .annotation build Landroid/annotation/SuppressLint;
        value = {
            "UseSparseArrays"
        }
    .end annotation

    const/4 v0, -0x1

    const-wide/16 v1, 0x0

    :try_start_0
    const-string v3, "freq_caps"

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

    move-result v3

    const/4 v4, 0x1

    const/4 v5, 0x0

    if-eqz v3, :cond_1

    const-string v3, "freq_caps"

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

    move-result-object v3

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

    move-result v6

    if-lez v6, :cond_1

    .line 825
    new-instance v6, Ljava/util/HashMap;

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

    move-result v7

    .line 825
    invoke-direct {v6, v7}, Ljava/util/HashMap;-><init>(I)V

    const/4 v7, 0x0

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

    move-result v8

    if-lt v7, v8, :cond_0

    goto :goto_2

    .line 829
    :cond_0
    invoke-virtual {v3, v7}, Lorg/json/JSONArray;->getJSONArray(I)Lorg/json/JSONArray;

    move-result-object v8

    .line 830
    new-instance v9, Lcom/in2wow/sdk/i/c$m$a;

    .line 831
    invoke-virtual {v8, v5}, Lorg/json/JSONArray;->getInt(I)I

    move-result v10

    invoke-virtual {v8, v4}, Lorg/json/JSONArray;->getInt(I)I

    move-result v11

    .line 830
    invoke-direct {v9, v10, v11}, Lcom/in2wow/sdk/i/c$m$a;-><init>(II)V

    .line 832
    invoke-virtual {v8, v5}, Lorg/json/JSONArray;->getInt(I)I

    move-result v8

    invoke-static {v8}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v8

    invoke-interface {v6, v8, v9}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    add-int/lit8 v7, v7, 0x1

    goto :goto_0

    .line 838
    :cond_1
    new-instance v6, Ljava/util/HashMap;

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

    const-string v3, "freq_cap"

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

    move-result v3

    if-eqz v3, :cond_2

    const-string v3, "freq_cap"

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

    move-result v3

    goto :goto_1

    :cond_2
    const/4 v3, 0x0

    :goto_1
    const-string v4, "sliding_window"

    .line 842
    invoke-virtual {p0, v4}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v4

    if-eqz v4, :cond_3

    const-string v4, "sliding_window"

    .line 843
    invoke-virtual {p0, v4}, Lorg/json/JSONObject;->getInt(Ljava/lang/String;)I

    move-result v5

    .line 845
    :cond_3
    new-instance v4, Lcom/in2wow/sdk/i/c$m$a;

    invoke-direct {v4, v5, v3}, Lcom/in2wow/sdk/i/c$m$a;-><init>(II)V

    .line 847
    invoke-static {v5}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    invoke-interface {v6, v3, v4}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    :goto_2
    const-string v3, "max_impressions"

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

    move-result v3

    if-eqz v3, :cond_4

    const-string v0, "max_impressions"

    .line 850
    invoke-virtual {p0, v0}, Lorg/json/JSONObject;->getInt(Ljava/lang/String;)I

    move-result v0

    :cond_4
    const-string v3, "min_ctr"

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

    move-result v3

    if-eqz v3, :cond_5

    const-string v1, "min_ctr"

    .line 853
    invoke-virtual {p0, v1}, Lorg/json/JSONObject;->getDouble(Ljava/lang/String;)D

    move-result-wide v1

    .line 855
    :cond_5
    new-instance p0, Lcom/in2wow/sdk/i/c$m;

    invoke-direct {p0, v0, v1, v2, v6}, Lcom/in2wow/sdk/i/c$m;-><init>(IDLjava/util/Map;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    return-object p0

    :catch_0
    const/4 p0, 0x0

    return-object p0
.end method


# virtual methods
.method public a()Ljava/util/Map;
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/Map<",
            "Ljava/lang/Integer;",
            "Lcom/in2wow/sdk/i/c$m$a;",
            ">;"
        }
    .end annotation

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

    return-object v0
.end method

.method public a(J)Z
    .locals 3

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

    invoke-interface {v0}, Ljava/util/Map;->keySet()Ljava/util/Set;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/Set;->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

    const/4 p1, 0x0

    return p1

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

    move-result-object v1

    check-cast v1, Ljava/lang/Integer;

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

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

    move-result-object v1

    check-cast v1, Lcom/in2wow/sdk/i/c$m$a;

    invoke-virtual {v1, p1, p2}, Lcom/in2wow/sdk/i/c$m$a;->b(J)Z

    move-result v1

    if-eqz v1, :cond_0

    const/4 p1, 0x1

    return p1
.end method

.method public b()I
    .locals 1

    .line 883
    iget v0, p0, Lcom/in2wow/sdk/i/c$m;->a:I

    return v0
.end method

.method public c()D
    .locals 2

    .line 887
    iget-wide v0, p0, Lcom/in2wow/sdk/i/c$m;->b:D

    return-wide v0
.end method
