FeedControl.smali
.class public Ltr/com/hurriyet/androidsdk/response/content/FeedControl;
.super Ljava/lang/Object;
.source "FeedControl.java"
# interfaces
.implements Ltr/com/hurriyet/androidsdk/model/content/Feed;
# instance fields
.field public adType:Ljava/lang/String;
.field public adUnitPath:Ljava/lang/String;
.field public androidAdUnitPrefix:Ljava/lang/String;
.field public cardType:I
.field public contentCount:D
.field public contentViews:Ljava/util/ArrayList;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/ArrayList<",
"Ltr/com/hurriyet/androidsdk/response/content/ContentView;",
">;"
}
.end annotation
.end field
.field public contents:Ljava/util/ArrayList;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/ArrayList<",
"Ltr/com/hurriyet/androidsdk/response/content/ContentView;",
">;"
}
.end annotation
.end field
.field public controls:Ljava/util/ArrayList;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/ArrayList<",
"Ltr/com/hurriyet/androidsdk/response/content/ContentView;",
">;"
}
.end annotation
.end field
.field public currency:Ljava/lang/String;
.field public data:Ljava/util/ArrayList;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/ArrayList<",
"Ltr/com/hurriyet/androidsdk/response/content/EconomyObjects;",
">;"
}
.end annotation
.end field
.field public heigth:Ljava/lang/String;
.field public id:I
.field public ixName:Ljava/lang/String;
.field public name:Ljava/lang/String;
.field public nativeStyles:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Ljava/lang/String;",
">;"
}
.end annotation
.end field
.field public percentageChange:D
.field public price:D
.field public properties:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Ltr/com/hurriyet/androidsdk/response/content/ContentProperty;",
">;"
}
.end annotation
.end field
.field public props:Ltr/com/hurriyet/androidsdk/response/content/ContentProperty;
.field public showToolTip:Z
.field public src:Ljava/lang/String;
.field public subtitle:Ljava/lang/String;
.field public title:Ljava/lang/String;
.field public toolTipText:Ljava/lang/String;
.field public url:Ljava/lang/String;
.field public width: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 getFirstContent()Ltr/com/hurriyet/androidsdk/response/content/ContentView;
.registers 3
.line 63
iget-object v0, p0, Ltr/com/hurriyet/androidsdk/response/content/FeedControl;->contentViews:Ljava/util/ArrayList;
if-eqz v0, :cond_15
invoke-virtual {v0}, Ljava/util/ArrayList;->isEmpty()Z
move-result v0
if-eqz v0, :cond_b
goto :goto_15
.line 66
:cond_b
iget-object v0, p0, Ltr/com/hurriyet/androidsdk/response/content/FeedControl;->contentViews:Ljava/util/ArrayList;
const/4 v1, 0x0
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v0
check-cast v0, Ltr/com/hurriyet/androidsdk/response/content/ContentView;
return-object v0
:cond_15
:goto_15
const/4 v0, 0x0
return-object v0
.end method
.method public getFirstContentViewWithSpotNode()Ltr/com/hurriyet/androidsdk/response/content/ContentView;
.registers 5
.line 70
iget-object v0, p0, Ltr/com/hurriyet/androidsdk/response/content/FeedControl;->contentViews:Ljava/util/ArrayList;
const/4 v1, 0x0
if-eqz v0, :cond_28
invoke-virtual {v0}, Ljava/util/ArrayList;->isEmpty()Z
move-result v0
if-eqz v0, :cond_c
goto :goto_28
.line 73
:cond_c
iget-object v0, p0, Ltr/com/hurriyet/androidsdk/response/content/FeedControl;->contentViews:Ljava/util/ArrayList;
invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;
move-result-object v0
:cond_12
:goto_12
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v2
if-eqz v2, :cond_28
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v2
check-cast v2, Ltr/com/hurriyet/androidsdk/response/content/ContentView;
if-nez v2, :cond_21
goto :goto_12
.line 77
:cond_21
invoke-virtual {v2}, Ltr/com/hurriyet/androidsdk/response/content/ContentView;->hasSpotVideo()Z
move-result v3
if-eqz v3, :cond_12
return-object v2
:cond_28
:goto_28
return-object v1
.end method
.method public getPropertyValue(Ljava/lang/String;)Ljava/lang/String;
.registers 6
.line 85
iget-object v0, p0, Ltr/com/hurriyet/androidsdk/response/content/FeedControl;->properties: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 88
:cond_12
iget-object v0, p0, Ltr/com/hurriyet/androidsdk/response/content/FeedControl;->properties: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/ContentProperty;
if-nez v2, :cond_27
goto :goto_18
.line 92
:cond_27
iget-object v3, v2, Ltr/com/hurriyet/androidsdk/response/content/ContentProperty;->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 93
iget-object p1, v2, Ltr/com/hurriyet/androidsdk/response/content/ContentProperty;->value:Ljava/lang/String;
return-object p1
:cond_32
:goto_32
return-object v1
.end method
.method public isPropertyValueSelected(Ljava/lang/String;Ljava/lang/String;)Z
.registers 7
.line 48
iget-object v0, p0, Ltr/com/hurriyet/androidsdk/response/content/FeedControl;->properties:Ljava/util/List;
const/4 v1, 0x0
if-eqz v0, :cond_3a
invoke-interface {v0}, Ljava/util/List;->isEmpty()Z
move-result v0
if-nez v0, :cond_3a
invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v0
if-nez v0, :cond_3a
invoke-static {p2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v0
if-eqz v0, :cond_18
goto :goto_3a
.line 51
:cond_18
iget-object v0, p0, Ltr/com/hurriyet/androidsdk/response/content/FeedControl;->properties:Ljava/util/List;
invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object v0
:cond_1e
:goto_1e
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v2
if-eqz v2, :cond_3a
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v2
check-cast v2, Ltr/com/hurriyet/androidsdk/response/content/ContentProperty;
if-nez v2, :cond_2d
goto :goto_1e
.line 55
:cond_2d
iget-object v3, v2, Ltr/com/hurriyet/androidsdk/response/content/ContentProperty;->ixName:Ljava/lang/String;
invoke-virtual {p1, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v3
if-eqz v3, :cond_1e
.line 56
invoke-virtual {v2, p2}, Ltr/com/hurriyet/androidsdk/response/content/ContentProperty;->isValueSelected(Ljava/lang/String;)Z
move-result p1
return p1
:cond_3a
:goto_3a
return v1
.end method