.class public Lcom/moji/mjad/common/data/LiveAdPresenter;
.super Ljava/lang/Object;
.source "LiveAdPresenter.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/moji/mjad/common/data/LiveAdPresenter$ILiveAdBackAfaterFeed;
    }
.end annotation


# instance fields
.field public a:Z

.field public b:Z

.field public c:Z

.field public d:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Lcom/moji/mjad/common/control/CommonAdControl;",
            ">;"
        }
    .end annotation
.end field

.field public e:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Lcom/moji/mjad/common/control/CommonAdControl;",
            ">;"
        }
    .end annotation
.end field

.field public f:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Lcom/moji/mjad/common/control/CommonAdControl;",
            ">;"
        }
    .end annotation
.end field

.field public g:Ljava/util/Map;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Map<",
            "Ljava/lang/Integer;",
            "Lcom/moji/mjad/common/control/CommonAdControl;",
            ">;"
        }
    .end annotation
.end field

.field public h:Ljava/util/Map;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Map<",
            "Ljava/lang/Integer;",
            "Lcom/moji/mjad/common/control/CommonAdControl;",
            ">;"
        }
    .end annotation
.end field

.field public i:Ljava/util/Map;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Map<",
            "Ljava/lang/Integer;",
            "Lcom/moji/mjad/common/control/CommonAdControl;",
            ">;"
        }
    .end annotation
.end field

.field private j:Lcom/moji/http/snsforum/entity/HomePageInfo;

.field private k:Z

.field private l:Lcom/moji/mjad/common/data/LiveAdPresenter$ILiveAdBackAfaterFeed;

.field private m:Lcom/moji/preferences/ProcessPrefer;

.field private n:Z

.field private o:Z

.field private p:Z


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

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

    const/4 v0, 0x0

    .line 30
    iput-boolean v0, p0, Lcom/moji/mjad/common/data/LiveAdPresenter;->k:Z

    .line 32
    iput-boolean v0, p0, Lcom/moji/mjad/common/data/LiveAdPresenter;->a:Z

    iput-boolean v0, p0, Lcom/moji/mjad/common/data/LiveAdPresenter;->b:Z

    iput-boolean v0, p0, Lcom/moji/mjad/common/data/LiveAdPresenter;->c:Z

    .line 33
    new-instance v1, Ljava/util/ArrayList;

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

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

    .line 34
    new-instance v1, Ljava/util/ArrayList;

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

    iput-object v1, p0, Lcom/moji/mjad/common/data/LiveAdPresenter;->e:Ljava/util/List;

    .line 35
    new-instance v1, Ljava/util/ArrayList;

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

    iput-object v1, p0, Lcom/moji/mjad/common/data/LiveAdPresenter;->f:Ljava/util/List;

    .line 36
    new-instance v1, Ljava/util/HashMap;

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

    iput-object v1, p0, Lcom/moji/mjad/common/data/LiveAdPresenter;->g:Ljava/util/Map;

    .line 37
    new-instance v1, Ljava/util/HashMap;

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

    iput-object v1, p0, Lcom/moji/mjad/common/data/LiveAdPresenter;->h:Ljava/util/Map;

    .line 38
    new-instance v1, Ljava/util/HashMap;

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

    iput-object v1, p0, Lcom/moji/mjad/common/data/LiveAdPresenter;->i:Ljava/util/Map;

    .line 65
    iput-boolean v0, p0, Lcom/moji/mjad/common/data/LiveAdPresenter;->n:Z

    .line 114
    iput-boolean v0, p0, Lcom/moji/mjad/common/data/LiveAdPresenter;->o:Z

    .line 155
    iput-boolean v0, p0, Lcom/moji/mjad/common/data/LiveAdPresenter;->p:Z

    .line 43
    iput-object p1, p0, Lcom/moji/mjad/common/data/LiveAdPresenter;->l:Lcom/moji/mjad/common/data/LiveAdPresenter$ILiveAdBackAfaterFeed;

    .line 44
    new-instance p1, Lcom/moji/preferences/ProcessPrefer;

    invoke-direct {p1}, Lcom/moji/preferences/ProcessPrefer;-><init>()V

    iput-object p1, p0, Lcom/moji/mjad/common/data/LiveAdPresenter;->m:Lcom/moji/preferences/ProcessPrefer;

    return-void
.end method

.method static synthetic a(Lcom/moji/mjad/common/data/LiveAdPresenter;)Z
    .locals 0

    .line 28
    iget-boolean p0, p0, Lcom/moji/mjad/common/data/LiveAdPresenter;->k:Z

    return p0
.end method

.method static synthetic a(Lcom/moji/mjad/common/data/LiveAdPresenter;Z)Z
    .locals 0

    .line 28
    iput-boolean p1, p0, Lcom/moji/mjad/common/data/LiveAdPresenter;->n:Z

    return p1
.end method

.method static synthetic b(Lcom/moji/mjad/common/data/LiveAdPresenter;)Lcom/moji/http/snsforum/entity/HomePageInfo;
    .locals 0

    .line 28
    iget-object p0, p0, Lcom/moji/mjad/common/data/LiveAdPresenter;->j:Lcom/moji/http/snsforum/entity/HomePageInfo;

    return-object p0
.end method

.method static synthetic b(Lcom/moji/mjad/common/data/LiveAdPresenter;Z)Z
    .locals 0

    .line 28
    iput-boolean p1, p0, Lcom/moji/mjad/common/data/LiveAdPresenter;->o:Z

    return p1
.end method

.method static synthetic c(Lcom/moji/mjad/common/data/LiveAdPresenter;)Lcom/moji/mjad/common/data/LiveAdPresenter$ILiveAdBackAfaterFeed;
    .locals 0

    .line 28
    iget-object p0, p0, Lcom/moji/mjad/common/data/LiveAdPresenter;->l:Lcom/moji/mjad/common/data/LiveAdPresenter$ILiveAdBackAfaterFeed;

    return-object p0
.end method

.method private c()V
    .locals 3

    .line 67
    iget-boolean v0, p0, Lcom/moji/mjad/common/data/LiveAdPresenter;->n:Z

    if-eqz v0, :cond_0

    return-void

    :cond_0
    const/4 v0, 0x1

    .line 70
    iput-boolean v0, p0, Lcom/moji/mjad/common/data/LiveAdPresenter;->n:Z

    const/4 v0, 0x0

    .line 71
    iput-boolean v0, p0, Lcom/moji/mjad/common/data/LiveAdPresenter;->a:Z

    .line 72
    iget-object v0, p0, Lcom/moji/mjad/common/data/LiveAdPresenter;->m:Lcom/moji/preferences/ProcessPrefer;

    if-nez v0, :cond_1

    .line 73
    new-instance v0, Lcom/moji/preferences/ProcessPrefer;

    invoke-direct {v0}, Lcom/moji/preferences/ProcessPrefer;-><init>()V

    iput-object v0, p0, Lcom/moji/mjad/common/data/LiveAdPresenter;->m:Lcom/moji/preferences/ProcessPrefer;

    .line 76
    :cond_1
    new-instance v0, Lcom/moji/mjad/MojiAdRequest;

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

    move-result-object v1

    invoke-direct {v0, v1}, Lcom/moji/mjad/MojiAdRequest;-><init>(Landroid/content/Context;)V

    invoke-static {}, Lcom/moji/areamanagement/MJAreaManager;->a()Lcom/moji/common/area/AreaInfo;

    move-result-object v1

    if-nez v1, :cond_2

    const/4 v1, -0x1

    goto :goto_0

    :cond_2
    invoke-static {}, Lcom/moji/areamanagement/MJAreaManager;->a()Lcom/moji/common/area/AreaInfo;

    move-result-object v1

    iget v1, v1, Lcom/moji/common/area/AreaInfo;->cityId:I

    :goto_0
    new-instance v2, Lcom/moji/mjad/common/data/LiveAdPresenter$1;

    invoke-direct {v2, p0}, Lcom/moji/mjad/common/data/LiveAdPresenter$1;-><init>(Lcom/moji/mjad/common/data/LiveAdPresenter;)V

    invoke-virtual {v0, v1, v2}, Lcom/moji/mjad/MojiAdRequest;->a(ILcom/moji/mjad/common/network/AdCommonRequestCallBack;)V

    return-void
.end method

.method static synthetic c(Lcom/moji/mjad/common/data/LiveAdPresenter;Z)Z
    .locals 0

    .line 28
    iput-boolean p1, p0, Lcom/moji/mjad/common/data/LiveAdPresenter;->p:Z

    return p1
.end method

.method private d()V
    .locals 4

    .line 116
    iget-boolean v0, p0, Lcom/moji/mjad/common/data/LiveAdPresenter;->o:Z

    if-eqz v0, :cond_0

    return-void

    :cond_0
    const/4 v0, 0x1

    .line 119
    iput-boolean v0, p0, Lcom/moji/mjad/common/data/LiveAdPresenter;->o:Z

    const/4 v0, 0x0

    .line 120
    iput-boolean v0, p0, Lcom/moji/mjad/common/data/LiveAdPresenter;->b:Z

    .line 121
    iget-object v0, p0, Lcom/moji/mjad/common/data/LiveAdPresenter;->m:Lcom/moji/preferences/ProcessPrefer;

    if-nez v0, :cond_1

    .line 122
    new-instance v0, Lcom/moji/preferences/ProcessPrefer;

    invoke-direct {v0}, Lcom/moji/preferences/ProcessPrefer;-><init>()V

    iput-object v0, p0, Lcom/moji/mjad/common/data/LiveAdPresenter;->m:Lcom/moji/preferences/ProcessPrefer;

    .line 124
    :cond_1
    new-instance v0, Lcom/moji/mjad/MojiAdRequest;

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

    move-result-object v1

    invoke-direct {v0, v1}, Lcom/moji/mjad/MojiAdRequest;-><init>(Landroid/content/Context;)V

    invoke-static {}, Lcom/moji/areamanagement/MJAreaManager;->a()Lcom/moji/common/area/AreaInfo;

    move-result-object v1

    sget-object v2, Lcom/moji/launchserver/AdCommonInterface$AdPosition;->POS_TIME_SCENE_ICON:Lcom/moji/launchserver/AdCommonInterface$AdPosition;

    new-instance v3, Lcom/moji/mjad/common/data/LiveAdPresenter$2;

    invoke-direct {v3, p0}, Lcom/moji/mjad/common/data/LiveAdPresenter$2;-><init>(Lcom/moji/mjad/common/data/LiveAdPresenter;)V

    invoke-virtual {v0, v1, v2, v3}, Lcom/moji/mjad/MojiAdRequest;->a(Lcom/moji/common/area/AreaInfo;Lcom/moji/launchserver/AdCommonInterface$AdPosition;Lcom/moji/mjad/common/CommonAdCallback;)V

    return-void
.end method


# virtual methods
.method public a(Ljava/util/List;Lcom/moji/http/snsforum/entity/HomePageInfo;)Ljava/util/List;
    .locals 10
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Lcom/moji/mjad/common/control/CommonAdControl;",
            ">;",
            "Lcom/moji/http/snsforum/entity/HomePageInfo;",
            ")",
            "Ljava/util/List<",
            "Lcom/moji/http/snsforum/entity/HomePageInfo$Banner;",
            ">;"
        }
    .end annotation

    if-nez p2, :cond_0

    const/4 p1, 0x0

    return-object p1

    :cond_0
    if-eqz p2, :cond_2

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

    if-eqz v0, :cond_2

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

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

    move-result-object v0

    .line 203
    :cond_1
    :goto_0
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_2

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

    move-result-object v1

    check-cast v1, Lcom/moji/http/snsforum/entity/HomePageInfo$Banner;

    iget-boolean v1, v1, Lcom/moji/http/snsforum/entity/HomePageInfo$Banner;->isAd:Z

    if-eqz v1, :cond_1

    .line 205
    invoke-interface {v0}, Ljava/util/Iterator;->remove()V

    goto :goto_0

    :cond_2
    if-eqz p1, :cond_9

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

    move-result v0

    if-eqz v0, :cond_9

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

    if-nez v0, :cond_3

    goto/16 :goto_4

    .line 214
    :cond_3
    new-instance v0, Ljava/util/ArrayList;

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

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

    .line 216
    iget-object v1, p0, Lcom/moji/mjad/common/data/LiveAdPresenter;->g:Ljava/util/Map;

    invoke-interface {v1}, Ljava/util/Map;->clear()V

    if-eqz p2, :cond_8

    const/4 p2, 0x0

    const/4 v1, 0x0

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

    move-result v2

    const/4 v3, 0x1

    if-ge v1, v2, :cond_6

    const/4 v2, 0x0

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

    move-result v4

    sub-int/2addr v4, v3

    if-ge v2, v4, :cond_5

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

    move-result-object v4

    check-cast v4, Lcom/moji/mjad/common/control/CommonAdControl;

    invoke-virtual {v4}, Lcom/moji/mjad/common/control/CommonAdControl;->getAdInfo()Lcom/moji/mjad/base/data/MojiClickData;

    move-result-object v4

    check-cast v4, Lcom/moji/mjad/common/data/AdCommon;

    iget-wide v4, v4, Lcom/moji/mjad/common/data/AdCommon;->index:J

    add-int/lit8 v6, v2, 0x1

    invoke-interface {p1, v6}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v7

    check-cast v7, Lcom/moji/mjad/common/control/CommonAdControl;

    invoke-virtual {v7}, Lcom/moji/mjad/common/control/CommonAdControl;->getAdInfo()Lcom/moji/mjad/base/data/MojiClickData;

    move-result-object v7

    check-cast v7, Lcom/moji/mjad/common/data/AdCommon;

    iget-wide v7, v7, Lcom/moji/mjad/common/data/AdCommon;->index:J

    cmp-long v9, v4, v7

    if-lez v9, :cond_4

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

    move-result-object v4

    check-cast v4, Lcom/moji/mjad/common/control/CommonAdControl;

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

    move-result-object v5

    invoke-interface {p1, v2, v5}, Ljava/util/List;->set(ILjava/lang/Object;)Ljava/lang/Object;

    .line 225
    invoke-interface {p1, v6, v4}, Ljava/util/List;->set(ILjava/lang/Object;)Ljava/lang/Object;

    :cond_4
    move v2, v6

    goto :goto_2

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

    goto :goto_1

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

    move-result v1

    if-ge p2, v1, :cond_8

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

    move-result-object v1

    check-cast v1, Lcom/moji/mjad/common/control/CommonAdControl;

    .line 232
    invoke-virtual {v1}, Lcom/moji/mjad/common/control/CommonAdControl;->getAdInfo()Lcom/moji/mjad/base/data/MojiClickData;

    move-result-object v2

    check-cast v2, Lcom/moji/mjad/common/data/AdCommon;

    iget-wide v4, v2, Lcom/moji/mjad/common/data/AdCommon;->index:J

    long-to-int v2, v4

    sub-int/2addr v2, v3

    .line 233
    new-instance v4, Lcom/moji/http/snsforum/entity/HomePageInfo$Banner;

    new-instance v5, Lcom/moji/http/snsforum/entity/HomePageInfo;

    invoke-direct {v5}, Lcom/moji/http/snsforum/entity/HomePageInfo;-><init>()V

    invoke-virtual {v5}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    invoke-direct {v4, v5}, Lcom/moji/http/snsforum/entity/HomePageInfo$Banner;-><init>(Lcom/moji/http/snsforum/entity/HomePageInfo;)V

    .line 234
    iput-boolean v3, v4, Lcom/moji/http/snsforum/entity/HomePageInfo$Banner;->isAd:Z

    if-ltz v2, :cond_7

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

    move-result v5

    if-ge v2, v5, :cond_7

    .line 236
    invoke-interface {v0, v2, v4}, Ljava/util/List;->add(ILjava/lang/Object;)V

    .line 237
    iget-object v4, p0, Lcom/moji/mjad/common/data/LiveAdPresenter;->g:Ljava/util/Map;

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

    move-result-object v2

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

    :cond_7
    add-int/lit8 p2, p2, 0x1

    goto :goto_3

    :cond_8
    return-object v0

    .line 211
    :cond_9
    :goto_4
    iget-object p1, p0, Lcom/moji/mjad/common/data/LiveAdPresenter;->g:Ljava/util/Map;

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

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

    return-object p1
.end method

.method public a(Ljava/util/List;Ljava/util/List;)Ljava/util/List;
    .locals 9
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Lcom/moji/mjad/common/control/CommonAdControl;",
            ">;",
            "Ljava/util/List<",
            "Lcom/moji/http/snsforum/entity/HomePageInfo$Module;",
            ">;)",
            "Ljava/util/List<",
            "Lcom/moji/http/snsforum/entity/HomePageInfo$Module;",
            ">;"
        }
    .end annotation

    .line 245
    iget-object v0, p0, Lcom/moji/mjad/common/data/LiveAdPresenter;->i:Ljava/util/Map;

    invoke-interface {v0}, Ljava/util/Map;->clear()V

    if-eqz p1, :cond_5

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

    move-result v0

    if-eqz v0, :cond_5

    if-eqz p2, :cond_5

    invoke-interface {p2}, Ljava/util/List;->size()I

    move-result v0

    if-nez v0, :cond_0

    goto :goto_2

    :cond_0
    const/4 v0, 0x0

    const/4 v1, 0x0

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

    move-result v2

    if-ge v1, v2, :cond_2

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

    move-result-object v2

    check-cast v2, Lcom/moji/http/snsforum/entity/HomePageInfo$Module;

    iget-boolean v2, v2, Lcom/moji/http/snsforum/entity/HomePageInfo$Module;->isAd:Z

    if-eqz v2, :cond_1

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

    move-result-object v2

    check-cast v2, Lcom/moji/http/snsforum/entity/HomePageInfo$Module;

    .line 253
    iput-boolean v0, v2, Lcom/moji/http/snsforum/entity/HomePageInfo$Module;->isAd:Z

    .line 254
    invoke-interface {p2, v1, v2}, Ljava/util/List;->set(ILjava/lang/Object;)Ljava/lang/Object;

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

    goto :goto_0

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

    move-result v1

    if-ge v0, v1, :cond_4

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

    move-result-object v1

    check-cast v1, Lcom/moji/mjad/common/control/CommonAdControl;

    invoke-virtual {v1}, Lcom/moji/mjad/common/control/CommonAdControl;->getAdInfo()Lcom/moji/mjad/base/data/MojiClickData;

    move-result-object v1

    check-cast v1, Lcom/moji/mjad/common/data/AdCommon;

    .line 260
    iget-wide v2, v1, Lcom/moji/mjad/common/data/AdCommon;->index:J

    const-wide/16 v4, 0x1

    sub-long/2addr v2, v4

    invoke-interface {p2}, Ljava/util/List;->size()I

    move-result v6

    int-to-long v6, v6

    cmp-long v8, v2, v6

    if-gez v8, :cond_3

    iget-wide v2, v1, Lcom/moji/mjad/common/data/AdCommon;->index:J

    sub-long/2addr v2, v4

    const-wide/16 v4, 0x0

    cmp-long v6, v2, v4

    if-ltz v6, :cond_3

    .line 261
    invoke-interface {p2, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/moji/http/snsforum/entity/HomePageInfo$Module;

    const/4 v3, 0x1

    .line 262
    iput-boolean v3, v2, Lcom/moji/http/snsforum/entity/HomePageInfo$Module;->isAd:Z

    .line 263
    iget-wide v4, v1, Lcom/moji/mjad/common/data/AdCommon;->index:J

    long-to-int v4, v4

    sub-int/2addr v4, v3

    invoke-interface {p2, v4, v2}, Ljava/util/List;->set(ILjava/lang/Object;)Ljava/lang/Object;

    .line 264
    iget-object v2, p0, Lcom/moji/mjad/common/data/LiveAdPresenter;->i:Ljava/util/Map;

    iget-wide v4, v1, Lcom/moji/mjad/common/data/AdCommon;->index:J

    long-to-int v1, v4

    sub-int/2addr v1, v3

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

    move-result-object v1

    invoke-interface {p1, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v3

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

    :cond_3
    add-int/lit8 v0, v0, 0x1

    goto :goto_1

    :cond_4
    return-object p2

    :cond_5
    :goto_2
    return-object p2
.end method

.method public a()V
    .locals 0

    .line 56
    invoke-direct {p0}, Lcom/moji/mjad/common/data/LiveAdPresenter;->c()V

    .line 57
    invoke-virtual {p0}, Lcom/moji/mjad/common/data/LiveAdPresenter;->b()V

    .line 58
    invoke-direct {p0}, Lcom/moji/mjad/common/data/LiveAdPresenter;->d()V

    return-void
.end method

.method public a(Lcom/moji/http/snsforum/entity/HomePageInfo;)V
    .locals 0

    .line 48
    iput-object p1, p0, Lcom/moji/mjad/common/data/LiveAdPresenter;->j:Lcom/moji/http/snsforum/entity/HomePageInfo;

    return-void
.end method

.method public a(Z)V
    .locals 0

    .line 52
    iput-boolean p1, p0, Lcom/moji/mjad/common/data/LiveAdPresenter;->k:Z

    return-void
.end method

.method public b(Ljava/util/List;Ljava/util/List;)Ljava/util/List;
    .locals 9
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Lcom/moji/mjad/common/control/CommonAdControl;",
            ">;",
            "Ljava/util/List<",
            "Lcom/moji/http/snsforum/entity/City;",
            ">;)",
            "Ljava/util/List<",
            "Lcom/moji/http/snsforum/entity/City;",
            ">;"
        }
    .end annotation

    .line 277
    iget-object v0, p0, Lcom/moji/mjad/common/data/LiveAdPresenter;->h:Ljava/util/Map;

    invoke-interface {v0}, Ljava/util/Map;->clear()V

    if-eqz p1, :cond_5

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

    move-result v0

    if-eqz v0, :cond_5

    if-eqz p2, :cond_5

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

    move-result v0

    if-nez v0, :cond_0

    goto :goto_2

    :cond_0
    const/4 v0, 0x0

    const/4 v1, 0x0

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

    move-result v2

    if-ge v1, v2, :cond_2

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

    move-result-object v2

    check-cast v2, Lcom/moji/http/snsforum/entity/City;

    iget-boolean v2, v2, Lcom/moji/http/snsforum/entity/City;->isAd:Z

    if-eqz v2, :cond_1

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

    move-result-object v2

    check-cast v2, Lcom/moji/http/snsforum/entity/City;

    .line 286
    iput-boolean v0, v2, Lcom/moji/http/snsforum/entity/City;->isAd:Z

    .line 287
    invoke-interface {p2, v1, v2}, Ljava/util/List;->set(ILjava/lang/Object;)Ljava/lang/Object;

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

    goto :goto_0

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

    move-result v1

    if-ge v0, v1, :cond_4

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

    move-result-object v1

    check-cast v1, Lcom/moji/mjad/common/control/CommonAdControl;

    invoke-virtual {v1}, Lcom/moji/mjad/common/control/CommonAdControl;->getAdInfo()Lcom/moji/mjad/base/data/MojiClickData;

    move-result-object v1

    check-cast v1, Lcom/moji/mjad/common/data/AdCommon;

    .line 293
    iget-wide v2, v1, Lcom/moji/mjad/common/data/AdCommon;->index:J

    const-wide/16 v4, 0x1

    sub-long/2addr v2, v4

    invoke-interface {p2}, Ljava/util/List;->size()I

    move-result v6

    int-to-long v6, v6

    cmp-long v8, v2, v6

    if-gez v8, :cond_3

    iget-wide v2, v1, Lcom/moji/mjad/common/data/AdCommon;->index:J

    sub-long/2addr v2, v4

    const-wide/16 v4, 0x0

    cmp-long v6, v2, v4

    if-ltz v6, :cond_3

    .line 294
    invoke-interface {p2, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/moji/http/snsforum/entity/City;

    const/4 v3, 0x1

    .line 295
    iput-boolean v3, v2, Lcom/moji/http/snsforum/entity/City;->isAd:Z

    .line 296
    iget-wide v4, v1, Lcom/moji/mjad/common/data/AdCommon;->index:J

    long-to-int v4, v4

    sub-int/2addr v4, v3

    invoke-interface {p2, v4, v2}, Ljava/util/List;->set(ILjava/lang/Object;)Ljava/lang/Object;

    .line 297
    iget-object v2, p0, Lcom/moji/mjad/common/data/LiveAdPresenter;->h:Ljava/util/Map;

    iget-wide v4, v1, Lcom/moji/mjad/common/data/AdCommon;->index:J

    long-to-int v1, v4

    sub-int/2addr v1, v3

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

    move-result-object v1

    invoke-interface {p1, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v3

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

    :cond_3
    add-int/lit8 v0, v0, 0x1

    goto :goto_1

    :cond_4
    return-object p2

    :cond_5
    :goto_2
    return-object p2
.end method

.method public b()V
    .locals 4

    .line 157
    iget-boolean v0, p0, Lcom/moji/mjad/common/data/LiveAdPresenter;->p:Z

    if-eqz v0, :cond_0

    return-void

    :cond_0
    const/4 v0, 0x1

    .line 159
    iput-boolean v0, p0, Lcom/moji/mjad/common/data/LiveAdPresenter;->p:Z

    const/4 v0, 0x0

    .line 160
    iput-boolean v0, p0, Lcom/moji/mjad/common/data/LiveAdPresenter;->c:Z

    .line 161
    iget-object v0, p0, Lcom/moji/mjad/common/data/LiveAdPresenter;->m:Lcom/moji/preferences/ProcessPrefer;

    if-nez v0, :cond_1

    .line 162
    new-instance v0, Lcom/moji/preferences/ProcessPrefer;

    invoke-direct {v0}, Lcom/moji/preferences/ProcessPrefer;-><init>()V

    iput-object v0, p0, Lcom/moji/mjad/common/data/LiveAdPresenter;->m:Lcom/moji/preferences/ProcessPrefer;

    .line 164
    :cond_1
    new-instance v0, Lcom/moji/mjad/MojiAdRequest;

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

    move-result-object v1

    invoke-direct {v0, v1}, Lcom/moji/mjad/MojiAdRequest;-><init>(Landroid/content/Context;)V

    invoke-static {}, Lcom/moji/areamanagement/MJAreaManager;->a()Lcom/moji/common/area/AreaInfo;

    move-result-object v1

    sget-object v2, Lcom/moji/launchserver/AdCommonInterface$AdPosition;->POS_TIME_CITY_CLASSIFCATION:Lcom/moji/launchserver/AdCommonInterface$AdPosition;

    new-instance v3, Lcom/moji/mjad/common/data/LiveAdPresenter$3;

    invoke-direct {v3, p0}, Lcom/moji/mjad/common/data/LiveAdPresenter$3;-><init>(Lcom/moji/mjad/common/data/LiveAdPresenter;)V

    invoke-virtual {v0, v1, v2, v3}, Lcom/moji/mjad/MojiAdRequest;->a(Lcom/moji/common/area/AreaInfo;Lcom/moji/launchserver/AdCommonInterface$AdPosition;Lcom/moji/mjad/common/CommonAdCallback;)V

    return-void
.end method
