.class Lcom/moji/mjad/common/data/LiveAdPresenter$1;
.super Lcom/moji/mjad/common/network/AdCommonRequestCallBack;
.source "LiveAdPresenter.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/moji/mjad/common/data/LiveAdPresenter;->c()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Lcom/moji/mjad/common/data/LiveAdPresenter;


# direct methods
.method constructor <init>(Lcom/moji/mjad/common/data/LiveAdPresenter;)V
    .locals 0

    .line 76
    iput-object p1, p0, Lcom/moji/mjad/common/data/LiveAdPresenter$1;->a:Lcom/moji/mjad/common/data/LiveAdPresenter;

    invoke-direct {p0}, Lcom/moji/mjad/common/network/AdCommonRequestCallBack;-><init>()V

    return-void
.end method


# virtual methods
.method public a(Lcom/moji/mjad/enumdata/ERROR_CODE;Ljava/lang/String;)V
    .locals 0

    .line 101
    iget-object p1, p0, Lcom/moji/mjad/common/data/LiveAdPresenter$1;->a:Lcom/moji/mjad/common/data/LiveAdPresenter;

    const/4 p2, 0x1

    iput-boolean p2, p1, Lcom/moji/mjad/common/data/LiveAdPresenter;->a:Z

    .line 102
    iget-object p1, p0, Lcom/moji/mjad/common/data/LiveAdPresenter$1;->a:Lcom/moji/mjad/common/data/LiveAdPresenter;

    iget-object p1, p1, Lcom/moji/mjad/common/data/LiveAdPresenter;->d:Ljava/util/List;

    if-eqz p1, :cond_0

    .line 103
    iget-object p1, p0, Lcom/moji/mjad/common/data/LiveAdPresenter$1;->a:Lcom/moji/mjad/common/data/LiveAdPresenter;

    iget-object p1, p1, Lcom/moji/mjad/common/data/LiveAdPresenter;->d:Ljava/util/List;

    invoke-interface {p1}, Ljava/util/List;->clear()V

    .line 105
    :cond_0
    iget-object p1, p0, Lcom/moji/mjad/common/data/LiveAdPresenter$1;->a:Lcom/moji/mjad/common/data/LiveAdPresenter;

    const/4 p2, 0x0

    invoke-static {p1, p2}, Lcom/moji/mjad/common/data/LiveAdPresenter;->a(Lcom/moji/mjad/common/data/LiveAdPresenter;Z)Z

    const-string p1, "zdxlive"

    const-string p2, "    \u5b9e\u666f\u9876\u90e8banner\u8bf7\u6c42\u5931\u8d25 "

    .line 106
    invoke-static {p1, p2}, Lcom/moji/tool/log/MJLogger;->a(Ljava/lang/String;Ljava/lang/String;)V

    return-void
.end method

.method public bridge synthetic a(Ljava/lang/Object;Ljava/lang/String;)V
    .locals 0

    .line 76
    check-cast p1, Ljava/util/List;

    invoke-virtual {p0, p1, p2}, Lcom/moji/mjad/common/data/LiveAdPresenter$1;->a(Ljava/util/List;Ljava/lang/String;)V

    return-void
.end method

.method public a(Ljava/util/List;Ljava/lang/String;)V
    .locals 4
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Lcom/moji/mjad/common/data/AdCommon;",
            ">;",
            "Ljava/lang/String;",
            ")V"
        }
    .end annotation

    const-string p2, "zdxlive"

    const-string v0, "    \u5b9e\u666f\u9876\u90e8banner\u8bf7\u6c42\u6210\u529f "

    .line 79
    invoke-static {p2, v0}, Lcom/moji/tool/log/MJLogger;->a(Ljava/lang/String;Ljava/lang/String;)V

    .line 80
    new-instance p2, Ljava/util/ArrayList;

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

    const/4 v0, 0x0

    if-eqz p1, :cond_0

    .line 81
    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result v1

    if-lez v1, :cond_0

    const/4 v1, 0x0

    .line 82
    :goto_0
    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result v2

    if-ge v1, v2, :cond_0

    .line 83
    new-instance v2, Lcom/moji/mjad/common/control/CommonAdControl;

    invoke-static {}, Lcom/moji/tool/AppDelegate;->a()Landroid/content/Context;

    move-result-object v3

    invoke-direct {v2, v3}, Lcom/moji/mjad/common/control/CommonAdControl;-><init>(Landroid/content/Context;)V

    .line 84
    invoke-interface {p1, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lcom/moji/mjad/base/data/MojiRecordData;

    invoke-virtual {v2, v3}, Lcom/moji/mjad/common/control/CommonAdControl;->setAdInfo(Lcom/moji/mjad/base/data/MojiRecordData;)V

    .line 85
    invoke-interface {p2, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    .line 88
    :cond_0
    iget-object p1, p0, Lcom/moji/mjad/common/data/LiveAdPresenter$1;->a:Lcom/moji/mjad/common/data/LiveAdPresenter;

    iput-object p2, p1, Lcom/moji/mjad/common/data/LiveAdPresenter;->d:Ljava/util/List;

    .line 89
    iget-object p1, p0, Lcom/moji/mjad/common/data/LiveAdPresenter$1;->a:Lcom/moji/mjad/common/data/LiveAdPresenter;

    const/4 p2, 0x1

    iput-boolean p2, p1, Lcom/moji/mjad/common/data/LiveAdPresenter;->a:Z

    .line 90
    iget-object p1, p0, Lcom/moji/mjad/common/data/LiveAdPresenter$1;->a:Lcom/moji/mjad/common/data/LiveAdPresenter;

    invoke-static {p1}, Lcom/moji/mjad/common/data/LiveAdPresenter;->a(Lcom/moji/mjad/common/data/LiveAdPresenter;)Z

    move-result p1

    if-eqz p1, :cond_1

    iget-object p1, p0, Lcom/moji/mjad/common/data/LiveAdPresenter$1;->a:Lcom/moji/mjad/common/data/LiveAdPresenter;

    invoke-static {p1}, Lcom/moji/mjad/common/data/LiveAdPresenter;->b(Lcom/moji/mjad/common/data/LiveAdPresenter;)Lcom/moji/http/snsforum/entity/HomePageInfo;

    move-result-object p1

    if-eqz p1, :cond_1

    .line 91
    iget-object p1, p0, Lcom/moji/mjad/common/data/LiveAdPresenter$1;->a:Lcom/moji/mjad/common/data/LiveAdPresenter;

    invoke-static {p1}, Lcom/moji/mjad/common/data/LiveAdPresenter;->b(Lcom/moji/mjad/common/data/LiveAdPresenter;)Lcom/moji/http/snsforum/entity/HomePageInfo;

    move-result-object p1

    iget-object p2, p0, Lcom/moji/mjad/common/data/LiveAdPresenter$1;->a:Lcom/moji/mjad/common/data/LiveAdPresenter;

    iget-object v1, p0, Lcom/moji/mjad/common/data/LiveAdPresenter$1;->a:Lcom/moji/mjad/common/data/LiveAdPresenter;

    iget-object v1, v1, Lcom/moji/mjad/common/data/LiveAdPresenter;->d:Ljava/util/List;

    iget-object v2, p0, Lcom/moji/mjad/common/data/LiveAdPresenter$1;->a:Lcom/moji/mjad/common/data/LiveAdPresenter;

    invoke-static {v2}, Lcom/moji/mjad/common/data/LiveAdPresenter;->b(Lcom/moji/mjad/common/data/LiveAdPresenter;)Lcom/moji/http/snsforum/entity/HomePageInfo;

    move-result-object v2

    invoke-virtual {p2, v1, v2}, Lcom/moji/mjad/common/data/LiveAdPresenter;->a(Ljava/util/List;Lcom/moji/http/snsforum/entity/HomePageInfo;)Ljava/util/List;

    move-result-object p2

    iput-object p2, p1, Lcom/moji/http/snsforum/entity/HomePageInfo;->banner_list:Ljava/util/List;

    .line 92
    iget-object p1, p0, Lcom/moji/mjad/common/data/LiveAdPresenter$1;->a:Lcom/moji/mjad/common/data/LiveAdPresenter;

    invoke-static {p1}, Lcom/moji/mjad/common/data/LiveAdPresenter;->c(Lcom/moji/mjad/common/data/LiveAdPresenter;)Lcom/moji/mjad/common/data/LiveAdPresenter$ILiveAdBackAfaterFeed;

    move-result-object p1

    if-eqz p1, :cond_1

    .line 93
    iget-object p1, p0, Lcom/moji/mjad/common/data/LiveAdPresenter$1;->a:Lcom/moji/mjad/common/data/LiveAdPresenter;

    invoke-static {p1}, Lcom/moji/mjad/common/data/LiveAdPresenter;->c(Lcom/moji/mjad/common/data/LiveAdPresenter;)Lcom/moji/mjad/common/data/LiveAdPresenter$ILiveAdBackAfaterFeed;

    move-result-object p1

    iget-object p2, p0, Lcom/moji/mjad/common/data/LiveAdPresenter$1;->a:Lcom/moji/mjad/common/data/LiveAdPresenter;

    invoke-static {p2}, Lcom/moji/mjad/common/data/LiveAdPresenter;->b(Lcom/moji/mjad/common/data/LiveAdPresenter;)Lcom/moji/http/snsforum/entity/HomePageInfo;

    move-result-object p2

    iget-object p2, p2, Lcom/moji/http/snsforum/entity/HomePageInfo;->banner_list:Ljava/util/List;

    invoke-interface {p1, p2}, Lcom/moji/mjad/common/data/LiveAdPresenter$ILiveAdBackAfaterFeed;->a(Ljava/util/List;)V

    .line 96
    :cond_1
    iget-object p1, p0, Lcom/moji/mjad/common/data/LiveAdPresenter$1;->a:Lcom/moji/mjad/common/data/LiveAdPresenter;

    invoke-static {p1, v0}, Lcom/moji/mjad/common/data/LiveAdPresenter;->a(Lcom/moji/mjad/common/data/LiveAdPresenter;Z)Z

    return-void
.end method
