w.smali

.class public Lcom/fulishe/fs/k/w;
.super Ljava/lang/Object;
.source ""


# instance fields
.field public a:I

.field public b:Ljava/lang/String;

.field public c:Ljava/lang/String;

.field public d:I

.field public e:Z


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

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

    return-void
.end method

.method public static a(Lorg/json/JSONObject;)Lcom/fulishe/fs/k/w;
    .registers 3

    if-eqz p0, :cond_28

    new-instance v0, Lcom/fulishe/fs/k/w;

    invoke-direct {v0}, Lcom/fulishe/fs/k/w;-><init>()V

    const-string v1, "seconds"

    invoke-virtual {p0, v1}, Lorg/json/JSONObject;->optInt(Ljava/lang/String;)I

    move-result v1

    iput v1, v0, Lcom/fulishe/fs/k/w;->a:I

    const-string v1, "network"

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

    move-result-object v1

    iput-object v1, v0, Lcom/fulishe/fs/k/w;->b:Ljava/lang/String;

    const-string v1, "os"

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

    move-result-object v1

    iput-object v1, v0, Lcom/fulishe/fs/k/w;->c:Ljava/lang/String;

    const-string v1, "cachetime"

    invoke-virtual {p0, v1}, Lorg/json/JSONObject;->optInt(Ljava/lang/String;)I

    move-result v1

    iput v1, v0, Lcom/fulishe/fs/k/w;->d:I

    :goto_27
    return-object v0

    :cond_28
    const/4 v0, 0x0

    goto :goto_27
.end method


# virtual methods
.method public a()V
    .registers 2

    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/fulishe/fs/k/w;->e:Z

    return-void
.end method

.method public a(II)Z
    .registers 9

    const/4 v0, 0x0

    iget-boolean v1, p0, Lcom/fulishe/fs/k/w;->e:Z

    if-eqz v1, :cond_6

    :cond_5
    :goto_5
    return v0

    :cond_6
    iget-object v1, p0, Lcom/fulishe/fs/k/w;->c:Ljava/lang/String;

    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-nez v1, :cond_5

    iget-object v1, p0, Lcom/fulishe/fs/k/w;->c:Ljava/lang/String;

    const-string v2, "android"

    invoke-virtual {v1, v2}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v1

    if-eqz v1, :cond_5

    iget v1, p0, Lcom/fulishe/fs/k/w;->a:I

    if-lez v1, :cond_5

    div-int/lit16 v2, p2, 0x3e8

    if-lt v2, v1, :cond_5

    iget-object v1, p0, Lcom/fulishe/fs/k/w;->b:Ljava/lang/String;

    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-nez v1, :cond_5

    iget-object v1, p0, Lcom/fulishe/fs/k/w;->b:Ljava/lang/String;

    const-string v2, ","

    invoke-virtual {v1, v2}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v2

    array-length v3, v2

    invoke-static {}, Lcom/fulishe/shadow/base/o;->G()Lcom/fulishe/shadow/base/m;

    move-result-object v1

    invoke-interface {v1}, Lcom/fulishe/shadow/base/m;->a()Landroid/content/Context;

    move-result-object v1

    invoke-static {v1}, Lcom/fulishe/shadow/e/t;->a(Landroid/content/Context;)I

    move-result v1

    invoke-static {}, Lcom/fulishe/shadow/base/o;->G()Lcom/fulishe/shadow/base/m;

    move-result-object v4

    invoke-interface {v4, v1}, Lcom/fulishe/shadow/base/m;->a(I)Ljava/lang/String;

    move-result-object v4

    move v1, v0

    :goto_46
    if-ge v1, v3, :cond_5

    aget-object v5, v2, v1

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

    move-result v5

    if-eqz v5, :cond_52

    const/4 v0, 0x1

    goto :goto_5

    :cond_52
    add-int/lit8 v1, v1, 0x1

    goto :goto_46
.end method

.method public b()Z
    .registers 7

    const/4 v0, 0x0

    iget-object v1, p0, Lcom/fulishe/fs/k/w;->c:Ljava/lang/String;

    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-eqz v1, :cond_a

    :cond_9
    :goto_9
    return v0

    :cond_a
    iget-object v1, p0, Lcom/fulishe/fs/k/w;->c:Ljava/lang/String;

    const-string v2, "android"

    invoke-virtual {v1, v2}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v1

    if-eqz v1, :cond_9

    iget v1, p0, Lcom/fulishe/fs/k/w;->a:I

    if-lez v1, :cond_9

    iget-object v1, p0, Lcom/fulishe/fs/k/w;->b:Ljava/lang/String;

    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-nez v1, :cond_9

    iget-object v1, p0, Lcom/fulishe/fs/k/w;->b:Ljava/lang/String;

    const-string v2, ","

    invoke-virtual {v1, v2}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v2

    array-length v3, v2

    invoke-static {}, Lcom/fulishe/shadow/base/o;->G()Lcom/fulishe/shadow/base/m;

    move-result-object v1

    invoke-interface {v1}, Lcom/fulishe/shadow/base/m;->a()Landroid/content/Context;

    move-result-object v1

    invoke-static {v1}, Lcom/fulishe/shadow/e/t;->a(Landroid/content/Context;)I

    move-result v1

    invoke-static {}, Lcom/fulishe/shadow/base/o;->G()Lcom/fulishe/shadow/base/m;

    move-result-object v4

    invoke-interface {v4, v1}, Lcom/fulishe/shadow/base/m;->a(I)Ljava/lang/String;

    move-result-object v4

    move v1, v0

    :goto_3e
    if-ge v1, v3, :cond_9

    aget-object v5, v2, v1

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

    move-result v5

    if-eqz v5, :cond_4a

    const/4 v0, 0x1

    goto :goto_9

    :cond_4a
    add-int/lit8 v1, v1, 0x1

    goto :goto_3e
.end method