ContentProperty.smali

.class public Ltr/com/hurriyet/androidsdk/response/content/ContentProperty;
.super Ljava/lang/Object;
.source "ContentProperty.java"

# interfaces
.implements Ljava/io/Serializable;
.implements Ltr/com/hurriyet/androidsdk/model/content/Feed;


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

.field public iconUrl:Ljava/lang/String;

.field public ixName:Ljava/lang/String;

.field public name:Ljava/lang/String;

.field public property:Ltr/com/hurriyet/androidsdk/response/content/PropertyValue;

.field public selectValues:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Ltr/com/hurriyet/androidsdk/response/content/SelectValue;",
            ">;"
        }
    .end annotation
.end field

.field public title:Ljava/lang/String;

.field public url:Ljava/lang/String;

.field public value:Ljava/lang/String;


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

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

    return-void
.end method


# virtual methods
.method public isValueSelected(Ljava/lang/String;)Z
    .registers 6

    .line 25
    iget-object v0, p0, Ltr/com/hurriyet/androidsdk/response/content/ContentProperty;->selectValues:Ljava/util/List;

    const/4 v1, 0x0

    if-eqz v0, :cond_32

    invoke-interface {v0}, Ljava/util/List;->isEmpty()Z

    move-result v0

    if-nez v0, :cond_32

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

    move-result v0

    if-eqz v0, :cond_12

    goto :goto_32

    .line 28
    :cond_12
    iget-object v0, p0, Ltr/com/hurriyet/androidsdk/response/content/ContentProperty;->selectValues:Ljava/util/List;

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

    move-result-object v0

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

    move-result v2

    if-eqz v2, :cond_32

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

    move-result-object v2

    check-cast v2, Ltr/com/hurriyet/androidsdk/response/content/SelectValue;

    if-nez v2, :cond_27

    goto :goto_18

    .line 32
    :cond_27
    iget-object v3, v2, Ltr/com/hurriyet/androidsdk/response/content/SelectValue;->ixName:Ljava/lang/String;

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

    move-result v3

    if-eqz v3, :cond_18

    .line 33
    iget-boolean p1, v2, Ltr/com/hurriyet/androidsdk/response/content/SelectValue;->selected:Z

    return p1

    :cond_32
    :goto_32
    return v1
.end method